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

Detailed Description
A data set to be synced.
- Author:
- Cornelius Schumacher
- See also:
- KSyncEntry, KSyncer
The KSyncee class provides an interface, which has to be implemented by concrete subclasses.
KSyncer operates on KSyncee objects.
Definition at line 109 of file ksyncer.h.
Public Member Functions | |
KSyncee () | |
virtual | ~KSyncee () |
virtual KSyncEntry * | firstEntry ()=0 |
virtual KSyncEntry * | nextEntry ()=0 |
virtual KSyncEntry * | findEntry (const QString &id) |
virtual void | addEntry (KSyncEntry *)=0 |
virtual void | removeEntry (KSyncEntry *)=0 |
void | replaceEntry (KSyncEntry *oldEntry, KSyncEntry *newEntry) |
void | setFilename (const QString &) |
QString | filename () |
QString | statusLogName () |
bool | load () |
bool | save () |
virtual bool | read ()=0 |
virtual bool | write ()=0 |
void | writeLog () |
bool | hasChanged (KSyncEntry *) |
Member Function Documentation
|
Add a KSyncEntry object to this data set. Ownership of the object remains with the caller. Implemented in AddressBookSyncee, BookmarkSyncee, and CalendarSyncee. |
|
Return the filename, the data set is read from and written to.
Definition at line 67 of file ksyncer.cpp. |
|
Find an entry identified by a unique id. See KSyncEntry::id(). Definition at line 72 of file ksyncer.cpp. |
|
Return the first KSyncEntry object of the data set. This function together with nextEntry() is used to iterate through all entries of a KSyncee data set. Implemented in AddressBookSyncee, BookmarkSyncee, and CalendarSyncee. |
|
Return, if the given KSyncEntry has changed since the last syncing. This information is retrieved by comparing the timestamps from the log file and the freshly read data set. Definition at line 91 of file ksyncer.cpp. |
|
Load the data set from the file with them name filename().
Definition at line 101 of file ksyncer.cpp. |
|
Return the next KSyncEntry object of the data set. This function together with firstEntry() is used to iterate through all entries of a KSyncee data set. Implemented in AddressBookSyncee, BookmarkSyncee, and CalendarSyncee. |
|
Read the data set from disk from the file with the name filename(). This function has to be reimplemented by concrete subclasses to provide the actual reading from disk.
Implemented in AddressBookSyncee, BookmarkSyncee, and CalendarSyncee. |
|
Remove a KSyncEntry. The entry is removed from the data set, but the object is not deleted. Implemented in AddressBookSyncee, BookmarkSyncee, and CalendarSyncee. |
|
Replace an entry of the data set by another. Ownership of the objects is handled as with the addEntry() and removeEntry() functions. Definition at line 85 of file ksyncer.cpp. |
|
Save the data set to the file with them name filename().
Definition at line 109 of file ksyncer.cpp. |
|
Set the filename, the data set is read from and written to.
Definition at line 62 of file ksyncer.cpp. |
|
Return the name of a config file, which is used to store status information about the data set.
Definition at line 131 of file ksyncer.cpp. |
|
Write the data set to disk to the file with the name filename(). This function has to be reimplemented by concrete subclasses to provide the actual writing to disk.
Implemented in AddressBookSyncee, BookmarkSyncee, and CalendarSyncee. |
|
Write the status log file with the name statusLogName().
Definition at line 120 of file ksyncer.cpp. |
The documentation for this class was generated from the following files: