kitchensync

KSync::AddressBookSyncEntry Class Reference

Inheritance diagram for KSync::AddressBookSyncEntry:

KSync::SyncEntry List of all members.

Detailed Description

Definition at line 33 of file addressbooksyncee.h.


Public Types

typedef QPtrList< AddressBookSyncEntryPtrList

Public Member Functions

 AddressBookSyncEntry (Syncee *parent)
 AddressBookSyncEntry (const KABC::Addressee &, Syncee *parent)
 AddressBookSyncEntry (const AddressBookSyncEntry &)
QString name ()
QString id ()
void setId (const QString &id)
QString timestamp ()
bool mergeWith (SyncEntry *)
AddressBookSyncEntryclone ()
bool equals (SyncEntry *entry)
KABC::Addressee addressee ()
QString resource () const
void setResource (const QString &str)
KPIM::DiffAlgo * diffAlgo (SyncEntry *, SyncEntry *)

Friends

class AddressBookMerger
class AddressBookSyncee

Member Function Documentation

QString AddressBookSyncEntry::name (  )  [virtual]

Return a string describing this entry.

This is presented to the user as identifier for the entry, when user interaction is required.

Implements KSync::SyncEntry.

Definition at line 59 of file addressbooksyncee.cpp.

QString AddressBookSyncEntry::id (  )  [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.

Implements KSync::SyncEntry.

Definition at line 64 of file addressbooksyncee.cpp.

void AddressBookSyncEntry::setId ( const QString &  id  )  [virtual]

Set the ID of the underlying data.

This is needed for example if the UID is not trusted and could come from a device.

Reimplemented from KSync::SyncEntry.

Definition at line 69 of file addressbooksyncee.cpp.

QString AddressBookSyncEntry::timestamp (  )  [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.

Implements KSync::SyncEntry.

Definition at line 78 of file addressbooksyncee.cpp.

AddressBookSyncEntry * AddressBookSyncEntry::clone (  )  [virtual]

Creates an exact copy of the this SyncEntry deleting the original is save and does not influence the clone.

Syncee will be unset and SyncStates will be copied over as well.

Implements KSync::SyncEntry.

Definition at line 74 of file addressbooksyncee.cpp.

bool AddressBookSyncEntry::equals ( SyncEntry entry  )  [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.

Implements KSync::SyncEntry.

Definition at line 85 of file addressbooksyncee.cpp.

KPIM::DiffAlgo * AddressBookSyncEntry::diffAlgo ( SyncEntry ,
SyncEntry  
) [virtual]

Returns the diffing algorithm which is used to present the differences between the two SyncEntries when a conflict occurs.

Reimplemented from KSync::SyncEntry.

Definition at line 114 of file addressbooksyncee.cpp.


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