KDE PIM / Developers / API Docs / kitchensync

KSync::SyncHistory< Syn, Ent > Class Template Reference

This is the generic base class for keeping track of additions, deletions, modifications between different syncs. More...

#include <synchistory.h>

List of all members.

Public Member Functions

Protected Member Functions


Detailed Description

template<class Syn, class Ent>
class KSync::SyncHistory< Syn, Ent >

This is the generic base class for keeping track of additions, deletions, modifications between different syncs.

In the purest version it relies on timestamps of

See also:
KSync::SyncEntry::timestamp for finding the changes, additions and deletions. You can change the way it operates from where it reads the information, on how the control string looks like, on howto safe it.
If you want to use MD5 sum instead of a timestamp inherit from this class and implement the string method. If you want to use a different storage reimplement the load and save methods


Constructor & Destructor Documentation

template<class Sync, class Ent>
KSync::SyncHistory< Sync, Ent >::SyncHistory Sync *  sy,
const QString &  file
 

Construct a new SyncHistory.

Construct a new SyncHistory instance.

Parameters:
sy The Syncee to be used
file The path to the fileto either save the information or to read from

template<class Sync, class Ent>
KSync::SyncHistory< Sync, Ent >::~SyncHistory  )  [virtual]
 

d'tor


Member Function Documentation

template<class Sync, class Ent>
void KSync::SyncHistory< Sync, Ent >::save  ) 
 

Safe the Metainformation Saves the MetaInformation of the supplied Syncee to the file specified.

template<class Sync, class Ent>
void KSync::SyncHistory< Sync, Ent >::load  ) 
 

Load and apply MetaInformation.

Fill the supplied Syncee with the MetaInformation from the file specified.

if we've a UID but we can not find it in the Syncee it was removed


The documentation for this class was generated from the following file: