kitchensync

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

#include <synchistory.h>

Inheritance diagram for KSync::SyncHistory< Syn, Ent >:

OpieHelper::MD5Template< KSync::AddressBookSyncee, KSync::AddressBookSyncEntry > OpieHelper::MD5Template< KSync::CalendarSyncee, KSync::CalendarSyncEntry > OpieHelper::MetaAddressbook OpieHelper::MetaCalendar List of all members.

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

Definition at line 84 of file synchistory.h.


Public Member Functions

 SyncHistory (Syn *, const QString &file)
virtual ~SyncHistory ()
void save ()
void load ()

Protected Member Functions

virtual void save (SyncHistoryMap *)
virtual SyncHistoryMapload (const QString &)
virtual QString string (Ent *)

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

Definition at line 121 of file synchistory.h.

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

d'tor

Definition at line 130 of file synchistory.h.


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.

Definition at line 141 of file synchistory.h.

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

Definition at line 165 of file synchistory.h.


The documentation for this class was generated from the following file:
KDE Home | KDE Accessibility Home | Description of Access Keys