OContactAccess Class Reference
Class to access the contacts database. More...
#include <ocontactaccess.h>
Inheritance diagram for OContactAccess:


Public Types | |
| enum | QuerySettings { WildCards = 0x0001, IgnoreCase = 0x0002, RegExp = 0x0004, ExactMatch = 0x0008, MatchOne = 0x0010, DateDiff = 0x0020, DateYear = 0x0040, DateMonth = 0x0080, DateDay = 0x0100 } |
| Constants for query. More... | |
Signals | |
| void | signalChanged (const OContactAccess *which) |
Public Member Functions | |
| OContactAccess (const QString appname, const QString filename=0l, OContactAccessBackend *backend=0l, bool handlesync=true) | |
| Create Database with contacts (addressbook). | |
| ~OContactAccess () | |
| List | sorted (bool ascending, int sortOrder, int sortFilter, int cat) const |
| Return all Contacts in a sorted manner. | |
| const uint | querySettings () |
| Return all possible settings. | |
| bool | hasQuerySettings (int querySettings) const |
| Check whether settings are correct. | |
| bool | wasChangedExternally () const |
| if the resource was changed externally. | |
| bool | save () |
| Save contacts database. | |
Detailed Description
Class to access the contacts database.This is just a frontend for the real database handling which is done by the backend. This class is used to access the Contacts on a system. This class as any OPIE PIM class is backend independent.
- Author:
- Stefan Eilers, Holger Freyther
- See also:
- OPimAccessTemplate
Definition at line 96 of file ocontactaccess.h.
Member Enumeration Documentation
|
|
Constants for query. Use this constants to set the query parameters. Note: query_IgnoreCase just make sense with one of the other attributes !
Definition at line 124 of file ocontactaccess.h. |
Constructor & Destructor Documentation
|
||||||||||||||||||||
|
Create Database with contacts (addressbook).
Definition at line 76 of file ocontactaccess.cpp. References QObject::connect(), OBackendFactory< T >::Default(), and OPimAccessTemplate< T >::setBackEnd(). |
|
|
Definition at line 104 of file ocontactaccess.cpp. References save(). |
Member Function Documentation
|
||||||||||||||||||||
|
Return all Contacts in a sorted manner.
Definition at line 142 of file ocontactaccess.cpp. |
|
|
Return all possible settings.
Definition at line 133 of file ocontactaccess.cpp. References OContactAccessBackend::querySettings(). |
|
|
Check whether settings are correct.
Definition at line 138 of file ocontactaccess.cpp. References OContactAccessBackend::hasQuerySettings(). |
|
|
if the resource was changed externally. You should use the signal instead of polling possible changes ! Reimplemented from OPimAccessTemplate< OContact >. Definition at line 149 of file ocontactaccess.cpp. |
|
|
Save contacts database. Save is more a "commit". After calling this function, all changes are public available.
Reimplemented from OPimAccessTemplate< OContact >. Definition at line 114 of file ocontactaccess.cpp. References OPimAccessTemplate< OContact >::reload(), OPimAccessTemplate< T >::save(), and OPimAccessTemplate< T >::wasChangedExternally(). Referenced by ~OContactAccess(). |
|
|
|
The documentation for this class was generated from the following files:
