#include <SyncManager.h>
Classes | |
struct | CommandInfo |
class | IncomingSyncItem |
Public Member Functions | |
SyncManager (AbstractSyncConfig &config, SyncReport &report) | |
~SyncManager () | |
int | prepareSync (SyncSource **sources) |
int | sync () |
int | endSync () |
DevInf * | createDeviceInfo () |
Definition at line 77 of file SyncManager.h.
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 |
SyncManager::~SyncManager | ( | ) |
DevInf* SyncManager::createDeviceInfo | ( | ) |
Gathers the various bits and pieces known about the client and its sources and builds a SyncML devinfo 1.1 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.
int SyncManager::endSync | ( | ) |
Performs the commit phase of the synchronization.
int SyncManager::prepareSync | ( | SyncSource ** | sources | ) |
Prepares the sync, performing authentication and device capability exchange.
int SyncManager::sync | ( | ) |
Starts the synchronization phase