SyncManager Class Reference
[Sync Client]

This is the core class which encodes the flow of messages between client and server throughout a session. More...

#include <SyncManager.h>

Collaboration diagram for SyncManager:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

This is the core class which encodes the flow of messages between client and server throughout a session.

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.


Constructor & Destructor Documentation

SyncManager::SyncManager ( SyncManagerConfig config,
SyncReport report 
)

Initialize a new sync manager.

Parameters provided to it have to remain valid while this sync manager exists.

Parameters:
config required configuration
report sync report reference to store sync results


Member Function Documentation

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.

Returns:
device infos, to be deleted by caller, or NULL if unavailable


The documentation for this class was generated from the following file:
Generated on Fri Apr 27 12:29:23 2007 for Funambol C++ Client Library by  doxygen 1.5.2