23#ifndef SYNCDBUSINTERFACE_H
24#define SYNCDBUSINTERFACE_H
43 Q_CLASSINFO(
"D-Bus Interface",
"com.meego.msyncd")
72 QString aMessage,
int aMoreDetails);
90 int aTransferType, QString aMimeType,
int aCommittedItems);
161 void statusChanged(
unsigned int aAccountId,
int aNewStatus,
int aFailedReason, qlonglong aPrevSyncTime,
162 qlonglong aNextSyncTime);
190 virtual Q_NOREPLY
void abortSync(QString aProfileId) = 0;
321 virtual Q_NOREPLY
void start(
unsigned int aAccountId) = 0;
327 virtual Q_NOREPLY
void stop(
unsigned int aAccountId) = 0;
348 virtual
int status(
unsigned int aAccountId,
int &aFailedReason, qlonglong &aPrevSyncTime, qlonglong &aNextSyncTime) = 0;
Defines a D-Bus interface for the sync daemon.
Definition msyncd/SyncDBusInterface.h:42
void backupDone()
Notifies about Backup done.
virtual bool startSync(QString aProfileId)=0
Requests to starts synchronizing using a profile with the given name.
virtual QList< unsigned int > syncingAccounts()=0
Returns the list of account IDs for which sync is ongoing.
void signalProfileChanged(QString aProfileName, int aChangeType, QString aProfileAsXml)
Notifies about a change in profile.
virtual QStringList allVisibleSyncProfiles()=0
Gets all visible sync profiles.
virtual Q_NOREPLY void abortSync(QString aProfileId)=0
Stops synchronizing the profile with the given name.
void statusChanged(unsigned int aAccountId, int aNewStatus, int aFailedReason, qlonglong aPrevSyncTime, qlonglong aNextSyncTime)
Notifies sync status change for a set of account Ids.
virtual bool saveSyncResults(QString aProfileId, QString aSyncResults)=0
Save SyncResults to log.xml file.
virtual bool getBackUpRestoreState()=0
This function returns true if backup/restore in progress else false.
virtual QStringList syncProfilesByKey(const QString &aKey, const QString &aValue)=0
Gets a sync profiles matching the key-value.
virtual Q_NOREPLY void releaseStorages(QStringList aStorageNames)=0
Releases the given storages so that sync daemon can again use them freely.
void backupInProgress()
Notifies about Backup start.
virtual bool requestStorages(QStringList aStorageNames)=0
Requests sync daemon to reserve storages for the caller.
virtual QString getLastSyncResult(const QString &aProfileId)=0
To get lastSyncResult.
virtual QStringList syncProfilesByType(const QString &aType)=0
Gets a profiles matching the profile type.
virtual bool updateProfile(QString aProfileAsXml)=0
This function should be called when sync profile information has been changed by someone else than th...
void syncStatus(QString aProfileName, int aStatus, QString aMessage, int aMoreDetails)
Notifies about a change in synchronization status.
virtual QStringList runningSyncs()=0
Gets the list of profile names of currently running syncs.
void restoreInProgress()
Notifies about Restore start.
virtual QString syncProfile(const QString &aProfileId)=0
Gets a sync profile.
virtual bool removeProfile(QString aProfileId)=0
This function should be called when sync profile has to be deleted.
virtual Q_NOREPLY void start(unsigned int aAccountId)=0
Starts sync for all profiles matching the given account ID.
virtual Q_NOREPLY void stop(unsigned int aAccountId)=0
Stops sync for all profiles matching the given account ID.
virtual bool setSyncSchedule(QString aProfileId, QString aScheduleAsXml)=0
sets the schedule for a profile
void transferProgress(QString aProfileName, int aTransferDatabase, int aTransferType, QString aMimeType, int aCommittedItems)
Notifies about progress in transferring items.
void restoreDone()
Notifies about Restore Done.
void resultsAvailable(QString aProfileName, QString aResultsAsXml)
Notifies about the availability of Results for a recent sync.
virtual int status(unsigned int aAccountId, int &aFailedReason, qlonglong &aPrevSyncTime, qlonglong &aNextSyncTime)=0
Returns the status of the sync for the given account Id.
Definition SyncBackupAdaptor.h:40