RecordConduit::PCData Class Reference
This class is just a wrapper around the data on the PC, which provides a uniform interface for all different kinds of data like addressbook, calendar, todo list etc. More...
#include <recordConduit.h>
Inherited by VCalConduitBase::VCalDataBase.
Public Member Functions
- PCData (RecordConduit *conduit)
- virtual bool loadData ()=0
- virtual bool saveData ()=0
- virtual QString description () const =0
- virtual bool isEmpty () const =0
- virtual Iterator begin ()=0
- virtual bool atEnd (const Iterator &)=0
- virtual bool increase (Iterator &it)
- virtual bool increaseNextModified (Iterator &it)
- virtual PCEntry * findByUid (QString uid) const =0
- virtual bool makeArchived (PCEntry *addr)
- virtual const QStringList uids () const =0
- virtual bool updateEntry (const PCEntry *entry)=0
- virtual bool removeEntry (const PCEntry *entry)=0
- virtual bool removeEntry (const QString &uid)
- virtual bool cleanup ()
- virtual bool mapContactsToPilot (QMap< recordid_t, QString > &idContactMap)
- virtual bool changed () const
- virtual bool setChanged (bool changed)
- virtual int count () const
Protected Attributes
- RecordConduit * mConduit
- bool mChanged
Detailed Description
This class is just a wrapper around the data on the PC, which provides a uniform interface for all different kinds of data like addressbook, calendar, todo list etc.Most method are pure-virtual, so they must be implemented by each conduit.
Member Function Documentation
|
Load the data from the PC (e.g. contacts from the addressbook).
|
|
Save the PC data (e.g. contacts to the addressbook).
|
|
Description of the data on the PC, e.g. the Addressbook, Calendar, etc. |
|
Return true if the data on the pc (e.g. addressbook, calendar etc.) is empty |
|
reset the data pointer to the beginning of the data, e.g. reset an iterator to begin() |
|
Return true if the pc data is at the end of its list.
|
|
Return next entry in the data.
|
|
Return next modified entry in the data.
|
|
Find the Palm Entry in the pc data.
|
|
make that entry on the pc archived (i.e. deleted on the handheld, while present on the pc, but not synced to the handheld |
|
Update the entry given. If it doesn't exist yet, add it |
|
Remove the entry given from the PC.
|
|
Remove the entry with the given id. The default implementation searches the entry, and then calls removeEntry( PCEntry* ). Child classes might reimplement this to speed things up. |
|
Clean up after the sync has been done and the changes were saved.
|
|
Builds the map which links record ids to uid's of PCEntry. This is the slow implementation, that should always work. subclasses should reimplement it to speed things up. |
|
Return whether the data was changed.
|
|
Set the changed flag on the pc data.
|
|
Return the number of entries on the PC (-1 for unknown).
|
The documentation for this class was generated from the following files:
- recordConduit.h
- recordConduit.cc