#include </home/clem/local/src/opie/noncore/unsupported/libopie/pim/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 } |
Signals | |
| void | signalChanged (const OContactAccess *which) |
Public Member Functions | |
| OContactAccess (const QString appname, const QString filename=0l, OContactAccessBackend *backend=0l, bool handlesync=true) | |
| ~OContactAccess () | |
| List | sorted (bool ascending, int sortOrder, int sortFilter, int cat) const |
| const uint | querySettings () |
| bool | hasQuerySettings (int querySettings) const |
| bool | wasChangedExternally () const |
| bool | save () |
Private Slots | |
| void | copMessage (const QCString &msg, const QByteArray &data) |
Private Attributes | |
| OContactAccessBackend * | m_backEnd |
| bool | m_loading:1 |
| Private * | d |
Definition at line 99 of file ocontactaccess.h.
|
|
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 127 of file ocontactaccess.h. |
|
||||||||||||||||||||
|
Create Database with contacts (addressbook).
Definition at line 84 of file ocontactaccess.cpp. References copMessage(), OBackendFactory< T >::Default(), m_backEnd, qWarning(), and OPimAccessTemplate< T >::setBackEnd(). |
|
|
Definition at line 112 of file ocontactaccess.cpp. References save(). |
|
||||||||||||
|
Definition at line 163 of file ocontactaccess.cpp. References qWarning(), OPimAccessTemplate< OContact >::reload(), save(), and signalChanged(). Referenced by OContactAccess(). |
|
|
Check whether settings are correct.
Definition at line 146 of file ocontactaccess.cpp. References OContactAccessBackend::hasQuerySettings(), and m_backEnd. |
|
|
Return all possible settings.
Definition at line 141 of file ocontactaccess.cpp. References m_backEnd, and OContactAccessBackend::querySettings(). |
|
|
Save contacts database. Save is more a "commit". After calling this function, all changes are public available.
Reimplemented from OPimAccessTemplate< OContact >. Definition at line 122 of file ocontactaccess.cpp. References OPimAccessTemplate< OContact >::reload(), OPimAccessTemplate< T >::save(), and wasChangedExternally(). Referenced by copMessage(), and ~OContactAccess(). |
|
|
Referenced by copMessage(). |
|
||||||||||||||||||||
|
Return all Contacts in a sorted manner.
Definition at line 150 of file ocontactaccess.cpp. References m_backEnd. Referenced by AddressList::read(). |
|
|
if the resource was changed externally. You should use the signal instead of polling possible changes ! Reimplemented from OPimAccessTemplate< OContact >. Definition at line 157 of file ocontactaccess.cpp. References m_backEnd, and OContactAccessBackend::wasChangedExternally(). Referenced by save(). |
|
|
Reimplemented from OPimAccessTemplate< OContact >. Definition at line 192 of file ocontactaccess.h. |
|
|
Reimplemented from OPimAccessTemplate< OContact >. Definition at line 185 of file ocontactaccess.h. Referenced by hasQuerySettings(), OContactAccess(), querySettings(), sorted(), and wasChangedExternally(). |
|
|
Definition at line 186 of file ocontactaccess.h. |
1.4.2