From b6b75de59ba284b0497e450d2bbe76523d1ee523 Mon Sep 17 00:00:00 2001 From: Patrick Ohly Date: Tue, 7 May 2013 16:39:50 +0200 Subject: 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. --- src/dbus/server/dbus-sync.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/dbus/server/dbus-sync.cpp') diff --git a/src/dbus/server/dbus-sync.cpp b/src/dbus/server/dbus-sync.cpp index 87ebdc19..5303234d 100644 --- a/src/dbus/server/dbus-sync.cpp +++ b/src/dbus/server/dbus-sync.cpp @@ -90,6 +90,9 @@ DBusSync::DBusSync(const SessionCommon::SyncParams ¶ms, SYNC_NONE, 0, 0, 0); } + + // Forward the SourceSyncedSignal via D-Bus. + m_sourceSyncedSignal.connect(boost::bind(m_helper.emitSourceSynced, _1, _2)); } DBusSync::~DBusSync() -- cgit v1.2.3