ksync
KSyncEntry Class Reference
#include <ksyncer.h>
Inheritance diagram for KSyncEntry:

Detailed Description
An entry of a dataset which is to be synced.
- See also:
- Ksyncee, KSyncer
KSyncEntry objects are collected by KSyncee objects.
Definition at line 44 of file ksyncer.h.
Public Member Functions | |
KSyncEntry () | |
virtual | ~KSyncEntry () |
virtual QString | name ()=0 |
virtual QString | id ()=0 |
virtual QString | timestamp ()=0 |
virtual bool | equals (KSyncEntry *)=0 |
void | setSyncee (KSyncee *) |
KSyncee * | syncee () |
Member Function Documentation
virtual QString KSyncEntry::name | ( | ) | [pure virtual] |
Return a string describing this entry.
This is presented to the user as identifier for the entry, when user interaction is required.
Implemented in AddressBookSyncEntry, BookmarkSyncEntry, and CalendarSyncEntry.
virtual QString KSyncEntry::id | ( | ) | [pure virtual] |
Return a unique id.
This is used to uniquely identify the entry. Two entries having the same id are considered to be two variants of the same entry. No two entries of the same KSyncee data set must have the same id.
Implemented in AddressBookSyncEntry, BookmarkSyncEntry, and CalendarSyncEntry.
virtual QString KSyncEntry::timestamp | ( | ) | [pure virtual] |
Return a time stamp representing the time of the last change.
This is only used to compare, if an entry has changed or not. It is not used to define an order of changes. If an entry has been copied from one KSyncee data set to another KSyncee data set, the timestamp has to be the same on both entries. If the user has changed the entry in one data set the timestamp has to be different.
Return QString::null, if there is no timestamp available. This means that the user has to manually select which entry is the new one.
Implemented in AddressBookSyncEntry, BookmarkSyncEntry, and CalendarSyncEntry.
virtual bool KSyncEntry::equals | ( | KSyncEntry * | ) | [pure virtual] |
Return, if the two entries are equal.
Two entries are considered to be equal, if they contain exactly the same information, including the same id and timestamp.
Implemented in AddressBookSyncEntry, BookmarkSyncEntry, and CalendarSyncEntry.
void KSyncEntry::setSyncee | ( | KSyncee * | ) |
KSyncee * KSyncEntry::syncee | ( | ) |
The documentation for this class was generated from the following files: