kitchensync
KSync::SyncHistory< Syn, Ent > Class Template Reference
#include <synchistory.h>
Inheritance diagram for KSync::SyncHistory< Syn, Ent >:

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.
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 SyncHistoryMap * | load (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] |
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: