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 "/"
40class PluginCbInterface;
57 const QString &aProfileName,
95 virtual void abortSync(Sync::SyncStatus aStatus = Sync::SYNC_ABORTED)
129 void transferProgress(
const QString &aProfileName, Sync::TransferDatabase aDatabase,
130 Sync::TransferType aType,
const QString &aMimeType,
int aCommittedItems);
146 void success(
const QString &aProfileName,
const QString &aMessage);
188 QString iProfileName;
Definition: ButeoPluginIface.h:29
Interface which client and server plugins can use to communicate with synchronization daemon.
Definition: PluginCbInterface.h:39
Base class for client and server plugins.
Definition: SyncPluginBase.h:46
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...
Definition: moc_SyncPluginBase.cpp:221
void syncProgressDetail(const QString &aProfileName, int aProgressDetail)
Emitted during Sync Progress to indicate the detail of the current ongoing sync.
Definition: moc_SyncPluginBase.cpp:249
QString getPluginName() const
Returns the name of this plugin.
Definition: SyncPluginBase.cpp:46
void success(const QString &aProfileName, const QString &aMessage)
Emitted when synchronization has been finished successfully.
Definition: moc_SyncPluginBase.cpp:235
QString getProfileName() const
Returns profile name.
Definition: SyncPluginBase.cpp:51
virtual void connectivityStateChanged(Sync::ConnectivityType aType, bool aState)=0
Slot that is invoked by sync framework when changes occur in connectivity domains.
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.
Definition: moc_SyncPluginBase.cpp:228
void accquiredStorage(const QString &aMimeType)
Emitted when a storage is requested and accquired.
Definition: moc_SyncPluginBase.cpp:242
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:56
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:172
Contains information about a completed synchronization session.
Definition: SyncResults.h:62
MinorCode
enum value
Definition: SyncResults.h:89
Definition: SyncBackupAdaptor.h:41
Definition: SyncPluginBase.h:174