ksync

KSyncUi Class Reference

#include <ksyncui.h>

Inheritance diagram for KSyncUi:

KSyncUiKde List of all members.

Detailed Description

Syncing conflict resolution user interface.

Author:
Cornelius Schumacher
See also:
KSyncer
This class provides the abstract interface to a conflict resolution user interface. It is needed for cases, when a syncing process cannot resolve conflicts automatically. This is the case, when the same data entry has been changed in different data sets in an incompatible way.

This class has to be implemented by a concrete subclass, which provides the actual user interface. While a GUI implementation, which provides interactive conflict resolution, is the most common implementation, there might also be use for a non-GUI or even non-interactive user interface.

Definition at line 43 of file ksyncui.h.


Public Member Functions

 KSyncUi ()
virtual ~KSyncUi ()
virtual KSyncEntrydeconflict (KSyncEntry *syncEntry, KSyncEntry *target)

Member Function Documentation

KSyncEntry * KSyncUi::deconflict ( KSyncEntry syncEntry,
KSyncEntry target 
) [virtual]

Deconflict two conflicting KSyncEntry objects.

Returns the entry, which has been chosen by the user to take precedence over the other.

The default implementation always returns 0, which should be interpreted to not sync the entries at all. Reimplement this function in a subclass to provide a more useful implementation to KSyncer.

Reimplemented in KSyncUiKde.

Definition at line 36 of file ksyncui.cpp.


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