diff options
author | Patrick Ohly <patrick.ohly@intel.com> | 2013-05-07 16:39:50 +0200 |
---|---|---|
committer | Patrick Ohly <patrick.ohly@intel.com> | 2013-05-16 11:24:48 +0200 |
commit | b6b75de59ba284b0497e450d2bbe76523d1ee523 (patch) | |
tree | f4e30e372d6eb766b9d0c36c82adf4eb230c6243 /src/syncevo/SyncContext.cpp | |
parent | d3eee8a0390558795ace8be503b44d76be385b13 (diff) |
PIM: new return value for SyncPeer(), new SyncProgress signal (FDO #63417)
The SyncPeer() result is derived from the sync statistics. To have
them available, the "sync done" signal must include the SyncReport.
Start and end of a sync could already be detected; "modified" signals
while a sync runs depends on a new signal inside the SyncContext when
switching from one cycle to the next and at the end of the last one.
Diffstat (limited to 'src/syncevo/SyncContext.cpp')
-rw-r--r-- | src/syncevo/SyncContext.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/syncevo/SyncContext.cpp b/src/syncevo/SyncContext.cpp index a0344fa3..54964837 100644 --- a/src/syncevo/SyncContext.cpp +++ b/src/syncevo/SyncContext.cpp @@ -1768,6 +1768,8 @@ void SyncContext::displaySourceProgress(sysync::TProgressEventEnum type, source.recordFirstSync(extra1 == 2); source.recordResumeSync(extra2 == 1); } else if (SyncMode(mode) != SYNC_NONE) { + // Broadcast statistics before moving into next cycle. + m_sourceSyncedSignal(source.getName(), source); // may happen when the source is used in multiple // SyncML sessions; only remember the initial sync // mode in that case and count all following syncs @@ -3234,6 +3236,7 @@ SyncMLStatus SyncContext::sync(SyncReport *report) // but some items failed, we report a "partial failure" // status. BOOST_FOREACH(SyncSource *source, sourceList) { + m_sourceSyncedSignal(source->getName(), *source); if (source->getStatus() == STATUS_OK && (source->getItemStat(SyncSource::ITEM_LOCAL, SyncSource::ITEM_ANY, |