kitchensync
KSync::SyncAlgorithm Class Reference
#include <syncalgorithm.h>
Inheritance diagram for KSync::SyncAlgorithm:

Detailed Description
A very simple sync interface for KitchenSync.It'll be possible to install different sync algorithms.
Definition at line 34 of file syncalgorithm.h.
Public Member Functions | |
| SyncAlgorithm (SyncUi *ui=0) | |
| virtual | ~SyncAlgorithm () |
| void | setUi (SyncUi *ui) |
| virtual void | syncToTarget (Syncee *syncee, Syncee *target, bool override=false)=0 |
Protected Member Functions | |
| SyncEntry * | deconflict (SyncEntry *syncEntry, SyncEntry *target) |
| bool | confirmDelete (SyncEntry *syncEntry, SyncEntry *target) |
| void | informBothDeleted (SyncEntry *syncEntry, SyncEntry *target) |
Constructor & Destructor Documentation
| KSync::SyncAlgorithm::SyncAlgorithm | ( | SyncUi * | ui = 0 |
) | [inline] |
| virtual KSync::SyncAlgorithm::~SyncAlgorithm | ( | ) | [inline, virtual] |
Member Function Documentation
| virtual void KSync::SyncAlgorithm::syncToTarget | ( | Syncee * | syncee, | |
| Syncee * | target, | |||
| bool | override = false | |||
| ) | [pure virtual] |
Sync one Syncee object to another one.
The data from the two Syncees is synced and written back to the target Syncee.
- Parameters:
-
syncee Source Syncee target Target Syncee override If set to true, override target in case of conflicts.
Implemented in KSync::StandardSync.
The documentation for this class was generated from the following files:

