kitchensync Library API Documentation

KSync::SyncAlgorithm Class Reference

A very simple sync interface for KitchenSync. More...

#include <syncalgorithm.h>

Collaboration diagram for KSync::SyncAlgorithm:

Collaboration graph
[legend]
List of all members.

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

SyncEntrydeconflict (SyncEntry *syncEntry, SyncEntry *target)
bool confirmDelete (SyncEntry *syncEntry, SyncEntry *target)
void informBothDeleted (SyncEntry *syncEntry, SyncEntry *target)

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.


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.

Referenced by KSync::Syncer::syncToTarget().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kitchensync Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Aug 2 09:54:13 2007 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003