24 #ifndef SYNCCLIENTINTERFACE_H 25 #define SYNCCLIENTINTERFACE_H 30 #include <SyncProfile.h> 31 #include <SyncResults.h> 32 #include <SyncSchedule.h> 37 class SyncClientInterfacePrivate;
77 bool startSync(
const QString &aProfileId)
const;
87 void abortSync(
const QString &aProfileId)
const;
233 void profileChanged(QString aProfileId,
int aChangeType, QString aChangedProfile);
267 void syncStatus(QString aProfileId,
int aStatus,
268 QString aMessage,
int aStatusDetails);
285 int aTransferType , QString aMimeType,
int aCommittedItems );
SyncInterface Class - Main Entry Point for SyncFW Clients.
Definition: SyncClientInterface.h:49
QString syncProfile(const QString &aProfileId)
Gets a sync profile.
Definition: SyncClientInterface.cpp:98
QStringList syncProfilesByType(const QString &aType)
Gets a profiles matching the profile type.
Definition: SyncClientInterface.cpp:108
void resultsAvailable(QString aProfileId, Buteo::SyncResults aResults)
Notifies about the results of a recent sync for a profile.
Definition: moc_SyncClientInterface.cpp:249
Class for handling sync schedule settings.
Definition: SyncSchedule.h:52
void backupInProgress()
Notifies about Backup start.
Definition: moc_SyncClientInterface.cpp:218
bool getBackUpRestoreState()
This function returns true if backup/restore in progress else false.
Definition: SyncClientInterface.cpp:76
~SyncClientInterface()
Destructor.
Definition: SyncClientInterface.cpp:35
QStringList getRunningSyncList()
Gets the list of profile names of currently running syncs.
Definition: SyncClientInterface.cpp:51
Private implementation class for SyncClientInterface.
Definition: SyncClientInterfacePrivate.h:39
Contains information about a completed synchronization session.
Definition: SyncResults.h:58
Definition: AccountsHelper.h:31
Buteo::SyncResults getLastSyncResult(const QString &aProfileId)
To get lastSyncResult.
Definition: SyncClientInterface.cpp:86
void restoreInProgress()
Notifies about Restore start.
Definition: moc_SyncClientInterface.cpp:230
bool startSync(const QString &aProfileId) const
Requests to starts synchronizing using a profile Id.
Definition: SyncClientInterface.cpp:41
void backupDone()
Notifies about Backup done.
Definition: moc_SyncClientInterface.cpp:224
QList< QString > allVisibleSyncProfiles()
Gets all visible sync profiles.
Definition: SyncClientInterface.cpp:92
SyncClientInterface()
Constructor.
Definition: SyncClientInterface.cpp:29
void abortSync(const QString &aProfileId) const
Stops synchronizing the profile with the given Id.
Definition: SyncClientInterface.cpp:46
bool updateProfile(Buteo::SyncProfile &aSyncProfile)
This function should be called when sync profile information has been changed by the client...
Definition: SyncClientInterface.cpp:61
void syncStatus(QString aProfileId, int aStatus, QString aMessage, int aStatusDetails)
Notifies about a change in synchronization status.
Definition: moc_SyncClientInterface.cpp:256
void restoreDone()
Notifies about Restore Done.
Definition: moc_SyncClientInterface.cpp:236
bool setSyncSchedule(QString &aProfileId, SyncSchedule &aSchedule)
Sets Sync Schedule to the profile.
Definition: SyncClientInterface.cpp:66
bool saveSyncResults(const QString &aProfileId, const Buteo::SyncResults &aSyncResults)
Save SyncResults to log.xml file.
Definition: SyncClientInterface.cpp:71
bool isValid()
Use this function to understand if the creation of dbus connection to msyncd succeeded or not...
Definition: SyncClientInterface.cpp:81
A top level synchronization profile.
Definition: SyncProfile.h:47
bool removeProfile(QString &aProfileId)
This function should be called when sync profile has to be deleted.
Definition: SyncClientInterface.cpp:56
void transferProgress(QString aProfileId, int aTransferDatabase, int aTransferType, QString aMimeType, int aCommittedItems)
Notifies about progress in transferring items.
Definition: moc_SyncClientInterface.cpp:263
QStringList syncProfilesByKey(const QString &aKey, const QString &aValue)
Gets a sync profiles which matches the key-value.
Definition: SyncClientInterface.cpp:103
void profileChanged(QString aProfileId, int aChangeType, QString aChangedProfile)
Notifies about a change in profile.
Definition: moc_SyncClientInterface.cpp:242
Definition: SyncBackupAdaptor.h:40