#include <RawFileSyncSource.h>
Inheritance diagram for RawFileSyncSource:
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) |
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.
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.
item | the item as sent by the server |
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.
item | the item as sent by the server |
Reimplemented from FileSyncSource.