kpilot
ContactsAkonadiDataProxy Class Reference
#include <contactsakonadidataproxy.h>
Detailed Description
Definition at line 32 of file contactsakonadidataproxy.h.
Public Member Functions | |
| void | addCategory (Record *rec, const QString &category) |
| ContactsAkonadiDataProxy () | |
| bool | createDataStore () |
| bool | isOpen () const |
| void | loadAllRecords () |
| void | setCategory (Record *rec, const QString &category) |
| void | syncFinished () |
| ~ContactsAkonadiDataProxy () | |
Protected Member Functions | |
| void | commitCreate (Record *rec) |
| void | commitDelete (Record *rec) |
| void | commitUpdate (Record *rec) |
| QString | generateUniqueId () |
Constructor & Destructor Documentation
| ContactsAkonadiDataProxy::ContactsAkonadiDataProxy | ( | ) |
Definition at line 32 of file contactsakonadidataproxy.cc.
| ContactsAkonadiDataProxy::~ContactsAkonadiDataProxy | ( | ) |
Definition at line 38 of file contactsakonadidataproxy.cc.
Member Function Documentation
Adds the given category to the record and might do some internal things needed for category handling in the datastore.
All other categories that might have been set to this record should be unchanged.
Definition at line 44 of file contactsakonadidataproxy.cc.
| void ContactsAkonadiDataProxy::commitCreate | ( | Record * | rec | ) | [protected] |
Commits created record rec to the datastore.
Returns the id that the data store created for this record.
Definition at line 94 of file contactsakonadidataproxy.cc.
| void ContactsAkonadiDataProxy::commitDelete | ( | Record * | rec | ) | [protected] |
| void ContactsAkonadiDataProxy::commitUpdate | ( | Record * | rec | ) | [protected] |
Commits updated record rec to the datastore.
Must return rec->id() even if it's unchanged.
Definition at line 100 of file contactsakonadidataproxy.cc.
| bool ContactsAkonadiDataProxy::createDataStore | ( | ) |
Tries to create a new Datastore and returns whether or not it succeeded.
Definition at line 50 of file contactsakonadidataproxy.cc.
| QString ContactsAkonadiDataProxy::generateUniqueId | ( | ) | [protected] |
| bool ContactsAkonadiDataProxy::isOpen | ( | ) | const |
Returns true when the proxy was able to open the underlying data store in read/write mode.
Definition at line 58 of file contactsakonadidataproxy.cc.
| void ContactsAkonadiDataProxy::loadAllRecords | ( | ) |
Loads all records from underlying data source, sets the startcount of the counter and resets the iterator.
Definition at line 66 of file contactsakonadidataproxy.cc.
Sets the given category as the only category to the record and might do some internal things needed for category handling in the datastore.
All other categories that might have been set to this record should be removed.
Definition at line 72 of file contactsakonadidataproxy.cc.
| void ContactsAkonadiDataProxy::syncFinished | ( | ) |
Notifies the proxy that the synchronization is finished and that no modifications will be done after this.
Definition at line 78 of file contactsakonadidataproxy.cc.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference