RawFileSyncSource Class Reference
[Sync Client]

In contrast to the FileSyncSource this class does not wrap the file content and attributes in an XML format when exchanging it with the server. More...

#include <RawFileSyncSource.h>

Inheritance diagram for RawFileSyncSource:

Inheritance graph
[legend]
Collaboration diagram for RawFileSyncSource:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 RawFileSyncSource (const WCHAR *name, SyncSourceConfig *sc)
int addItem (SyncItem &item)
 Called by the sync engine to add an item that the server has sent.
int updateItem (SyncItem &item)
 Called by the sync engine to update an item that the source already should have.

Protected Member Functions

bool setItemData (SyncItem *syncItem)

Detailed Description

In contrast to the FileSyncSource this class does not wrap the file content and attributes in an XML format when exchanging it with the server.

Therefore it can be used as a peer for a servers addressbook or calendar URIs.

The type of the items is taken from the sync source type property.


Member Function Documentation

int RawFileSyncSource::addItem ( SyncItem &  item  )  [virtual]

Called by the sync engine to add an item that the server has sent.

The sync source is expected to add it to its database, then set the key to the local key assigned to the new item. Alternatively the sync source can match the new item against one of the existing items and return that key.

Parameters:
item the item as sent by the server
Returns:
SyncML status code

Reimplemented from FileSyncSource.

int RawFileSyncSource::updateItem ( SyncItem &  item  )  [virtual]

Called by the sync engine to update an item that the source already should have.

The item's key is the local key of that item.

Parameters:
item the item as sent by the server
Returns:
SyncML status code

Reimplemented from FileSyncSource.


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