#include <SyncManager.h>
Collaboration diagram for SyncManager:
Public Member Functions | |
SyncManager (SyncManagerConfig &config, SyncReport &report) EXTRA_SECTION_01 | |
Initialize a new sync manager. | |
int | prepareSync (SyncSource **sources) EXTRA_SECTION_01 |
int | sync () EXTRA_SECTION_01 |
int | endSync () EXTRA_SECTION_01 |
virtual DevInf * | createDeviceInfo () EXTRA_SECTION_01 |
Gathers the various bits and pieces known about the client and its sources and builds a SyncML devinfo 1.1 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 | ( | SyncManagerConfig & | 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 |
virtual DevInf* SyncManager::createDeviceInfo | ( | ) | [virtual] |
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.