kitchensync

KSync::SyncAlgorithm Class Reference

#include <syncalgorithm.h>

List of all members.


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]
 

Constructor.

Definition at line 40 of file syncalgorithm.h.

virtual KSync::SyncAlgorithm::~SyncAlgorithm (   )  [inline, virtual]
 

Destructor.

Definition at line 45 of file syncalgorithm.h.


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.

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