• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

kpilot

ContactsAkonadiDataProxy Class Reference

#include <contactsakonadidataproxy.h>

List of all members.


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

void ContactsAkonadiDataProxy::addCategory ( Record *  rec,
const QString &  category 
)

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]

Delete record rec from the datastore.

Definition at line 106 of file contactsakonadidataproxy.cc.

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]

Generates a unique id for a new record.

Definition at line 86 of file contactsakonadidataproxy.cc.

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.

void ContactsAkonadiDataProxy::setCategory ( Record *  rec,
const QString &  category 
)

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:
  • contactsakonadidataproxy.h
  • contactsakonadidataproxy.cc

kpilot

Skip menu "kpilot"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  •   doc
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal