24#ifndef SYNCCLIENTINTERFACE_H
25#define SYNCCLIENTINTERFACE_H
30#include <SyncProfile.h>
31#include <SyncResults.h>
32#include <SyncSchedule.h>
37class 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);
Private implementation class for SyncClientInterface.
Definition SyncClientInterfacePrivate.h:40
SyncInterface Class - Main Entry Point for SyncFW Clients.
Definition SyncClientInterface.h:50
bool isValid()
Use this function to understand if the creation of dbus connection to msyncd succeeded or not.
Definition SyncClientInterface.cpp:81
void transferProgress(QString aProfileId, int aTransferDatabase, int aTransferType, QString aMimeType, int aCommittedItems)
Notifies about progress in transferring items.
Definition moc_SyncClientInterface.cpp:387
bool setSyncSchedule(QString &aProfileId, SyncSchedule &aSchedule)
Sets Sync Schedule to the profile.
Definition SyncClientInterface.cpp:66
void profileChanged(QString aProfileId, int aChangeType, QString aChangedProfile)
Notifies about a change in profile.
Definition moc_SyncClientInterface.cpp:366
void syncStatus(QString aProfileId, int aStatus, QString aMessage, int aStatusDetails)
Notifies about a change in synchronization status.
Definition moc_SyncClientInterface.cpp:380
QString syncProfile(const QString &aProfileId)
Gets a sync profile.
Definition SyncClientInterface.cpp:98
QStringList syncProfilesByKey(const QString &aKey, const QString &aValue)
Gets a sync profiles which matches the key-value.
Definition SyncClientInterface.cpp:103
SyncClientInterface()
Constructor.
Definition SyncClientInterface.cpp:29
QList< QString > allVisibleSyncProfiles()
Gets all visible sync profiles.
Definition SyncClientInterface.cpp:92
QStringList getRunningSyncList()
Gets the list of profile names of currently running syncs.
Definition SyncClientInterface.cpp:51
bool removeProfile(QString &aProfileId)
This function should be called when sync profile has to be deleted.
Definition SyncClientInterface.cpp:56
Buteo::SyncResults getLastSyncResult(const QString &aProfileId)
To get lastSyncResult.
Definition SyncClientInterface.cpp:86
QStringList syncProfilesByType(const QString &aType)
Gets a profiles matching the profile type.
Definition SyncClientInterface.cpp:108
bool getBackUpRestoreState()
This function returns true if backup/restore in progress else false.
Definition SyncClientInterface.cpp:76
~SyncClientInterface()
Destructor.
Definition SyncClientInterface.cpp:35
void restoreDone()
Notifies about Restore Done.
Definition moc_SyncClientInterface.cpp:360
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 backupDone()
Notifies about Backup done.
Definition moc_SyncClientInterface.cpp:348
void backupInProgress()
Notifies about Backup start.
Definition moc_SyncClientInterface.cpp:342
bool saveSyncResults(const QString &aProfileId, const Buteo::SyncResults &aSyncResults)
Save SyncResults to log.xml file.
Definition SyncClientInterface.cpp:71
void restoreInProgress()
Notifies about Restore start.
Definition moc_SyncClientInterface.cpp:354
bool startSync(const QString &aProfileId) const
Requests to starts synchronizing using a profile Id.
Definition SyncClientInterface.cpp:41
void resultsAvailable(QString aProfileId, Buteo::SyncResults aResults)
Notifies about the results of a recent sync for a profile.
Definition moc_SyncClientInterface.cpp:373
A top level synchronization profile.
Definition SyncProfile.h:54
Contains information about a completed synchronization session.
Definition SyncResults.h:62
Class for handling sync schedule settings.
Definition SyncSchedule.h:53
Definition SyncBackupAdaptor.h:40