23#ifndef SYNCPLUGINBASE_H
24#define SYNCPLUGINBASE_H
26#include "SyncCommonDefs.h"
27#include "SyncResults.h"
28#include "ButeoPluginIface.h"
35#define DBUS_SERVICE_NAME_PREFIX "com.buteo.msyncd.plugin."
36#define DBUS_SERVICE_OBJ_PATH "/"
57 const QString &aProfileName,
95 virtual void abortSync(Sync::SyncStatus aStatus = Sync::SYNC_ABORTED)
129 Sync::TransferType aType,
const QString &aMimeType,
int aCommittedItems);
145 void success(
const QString &aProfileName,
const QString &aMessage);
187 QString iProfileName;
Definition ButeoPluginIface.h:29
Interface which client and server plugins can use to communicate with synchronization daemon.
Definition PluginCbInterface.h:39
void transferProgress(const QString &aProfileName, Sync::TransferDatabase aDatabase, Sync::TransferType aType, const QString &aMimeType, int aCommittedItems)
Emitted when progress has been made in synchronization in transferring items between local and remote...
void syncProgressDetail(const QString &aProfileName, int aProgressDetail)
Emitted during Sync Progress to indicate the detail of the current ongoing sync.
QString getPluginName() const
Returns the name of this plugin.
Definition SyncPluginBase.cpp:47
void success(const QString &aProfileName, const QString &aMessage)
Emitted when synchronization has been finished successfully.
QString getProfileName() const
Returns profile name.
Definition SyncPluginBase.cpp:52
virtual void connectivityStateChanged(Sync::ConnectivityType aType, bool aState)=0
Slot that is invoked by sync framework when changes occur in connectivity domains.
SyncPluginBase(const QString &aPluginName, const QString &aProfileName, PluginCbInterface *aCbInterface)
Constructor.
Definition SyncPluginBase.cpp:30
virtual bool init()=0
Initializes the plugin.
void error(const QString &aProfileName, const QString &aMessage, SyncResults::MinorCode aErrorCode)
Emitted when error has occurred in synchronization and it cannot be continued.
void accquiredStorage(const QString &aMimeType)
Emitted when a storage is requested and accquired.
virtual void abortSync(Sync::SyncStatus aStatus=Sync::SYNC_ABORTED)
Aborts synchronization.
Definition SyncPluginBase.h:95
virtual SyncResults getSyncResults() const
Gets the results of the last completed sync session.
Definition SyncPluginBase.cpp:57
virtual bool uninit()=0
Uninitializes the plugin.
virtual bool cleanUp()=0
Cleans up any sync related stuff (e.g sync anchors etc) when the profile is deleted.
PluginCbInterface * iCbInterface
Pointer to synchronizer.
Definition SyncPluginBase.h:171
Contains information about a completed synchronization session.
Definition SyncResults.h:67
MinorCode
enum value
Definition SyncResults.h:93
Definition SyncBackupAdaptor.h:41
Definition SyncPluginBase.h:173