kitchensync

KSync::AddressBookSyncee Class Reference

#include <addressbooksyncee.h>

Inheritance diagram for KSync::AddressBookSyncee:

KSync::Syncee List of all members.

Detailed Description

This class provides an implementation of the KSyncee interface for KSync.

It provides syncing of AddressBook files.

Definition at line 71 of file addressbooksyncee.h.


Public Member Functions

 AddressBookSyncee (AddressBookMerger *m=0)
 AddressBookSyncee (KABC::AddressBook *, AddressBookMerger *m=0)
 ~AddressBookSyncee ()
void reset ()
AddressBookSyncEntryfirstEntry ()
AddressBookSyncEntrynextEntry ()
void addEntry (SyncEntry *)
void removeEntry (SyncEntry *)
QString type () const
QString generateNewId () const
bool writeBackup (const QString &)
bool restoreBackup (const QString &)

Member Function Documentation

void AddressBookSyncee::reset (  )  [virtual]

Reset Syncee to initial state.

This is called when the data the Syncee operates on is changed externally, i.e. without using the Syncees addEntry() removeEntry(), replaceEntry() methods.

Reimplemented from KSync::Syncee.

Definition at line 165 of file addressbooksyncee.cpp.

AddressBookSyncEntry * AddressBookSyncee::firstEntry (  )  [virtual]

Return the first SyncEntry object of the data set.

This function together with nextEntry() is used to iterate through all entries of a Syncee data set.

Implements KSync::Syncee.

Definition at line 170 of file addressbooksyncee.cpp.

AddressBookSyncEntry * AddressBookSyncee::nextEntry (  )  [virtual]

Return the next SyncEntry object of the data set.

This function together with firstEntry() is used to iterate through all entries of a Syncee data set.

Implements KSync::Syncee.

Definition at line 175 of file addressbooksyncee.cpp.

void AddressBookSyncee::addEntry ( SyncEntry  )  [virtual]

Add a SyncEntry object to this data set.

Ownership of the object is transfered and the SyncEntry now belongs to this Syncee. Use KSync::SyncEntry::clone() to create an exact copy of a KSync::SyncEntry.

See also:
KSync::SyncEntry::clone

Implements KSync::Syncee.

Definition at line 181 of file addressbooksyncee.cpp.

void AddressBookSyncee::removeEntry ( SyncEntry  )  [virtual]

Remove a SyncEntry.

The entry is removed from the data set, but the object is not deleted.

Implements KSync::Syncee.

Definition at line 209 of file addressbooksyncee.cpp.

QString KSync::AddressBookSyncee::type (  )  const

The type of the Syncee.

Sometimes it is not possible to use dynamic_cast and this way a type is nice to have;

Reimplemented from KSync::Syncee.

QString AddressBookSyncee::generateNewId (  )  const [virtual]

When dealing with special uid Konnector- You might want a new uid to be generated.

To later find an Entry again you'll need this map

Reimplemented from KSync::Syncee.

Definition at line 235 of file addressbooksyncee.cpp.


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