#include <SyncManager.h>
Collaboration diagram for SyncManager:
Public Member Functions | |
SyncManager (AbstractSyncConfig &config, SyncReport &report) | |
Initialize a new sync manager. | |
int | prepareSync (SyncSource **sources) |
Prepares the sync, performing authentication and device capability exchange. | |
int | sync () |
Starts the synchronization phase. | |
int | endSync () |
Performs the commit phase of the synchronization. | |
DevInf * | createDeviceInfo () |
Gathers the various bits and pieces known about the client and its sources and builds a SyncML devinfo 1.2 instance. | |
Classes | |
struct | CommandInfo |
class | IncomingSyncItem |
It is configured via the DMTClientConfig with which it is constructed by the SyncClient::setDMConfig() and the (optional) DevInf provided to it by the client.
SyncManager::SyncManager | ( | AbstractSyncConfig & | config, | |
SyncReport & | report | |||
) |
Initialize a new sync manager.
Parameters provided to it have to remain valid while this sync manager exists.
config | required configuration | |
report | sync report reference to store sync results |
int SyncManager::sync | ( | ) |
Starts the synchronization phase.
DevInf* SyncManager::createDeviceInfo | ( | ) |
Gathers the various bits and pieces known about the client and its sources and builds a SyncML devinfo 1.2 instance.
For simplicity reasons this function is called for the currently active sync sources, changing them between runs thus causes a (valid!) retransmission of the device info.