OContactAccessBackend_VCard Class Reference
This is the vCard 2.1 implementation of the Contact Storage. More...
#include <ocontactaccessbackend_vcard.h>
Inheritance diagram for OContactAccessBackend_VCard:


Public Member Functions | |
| OContactAccessBackend_VCard (const QString &appname, const QString &filename=QString::null) | |
| bool | load () |
| load the resource | |
| bool | reload () |
| reload the resource | |
| bool | save () |
| save the resource and all it's changes | |
| void | clear () |
| clear the back end | |
| bool | add (const OContact &newcontact) |
| add T | |
| bool | remove (int uid) |
| remove | |
| bool | replace (const OContact &contact) |
| replace a record with T.uid() | |
| OContact | find (int uid) const |
| find the OPimRecord with uid | |
| QArray< int > | allRecords () const |
| return an array of all available uids | |
| QArray< int > | queryByExample (const OContact &query, int settings, const QDateTime &d=QDateTime()) |
| queryByExample for T with the given Settings | |
| QArray< int > | matchRegexp (const QRegExp &r) const |
| return a List of records that match the regex | |
| const uint | querySettings () |
| Return all possible settings. | |
| bool | hasQuerySettings (uint querySettings) const |
| Check whether settings are correct. | |
| QArray< int > | sorted (bool ascending, int sortOrder, int sortFilter, int cat) |
| FIXME!!! Returns a sorted list of records either ascendinf or descending for a giving criteria and category. | |
| bool | wasChangedExternally () |
| Return if database was changed externally. | |
Detailed Description
This is the vCard 2.1 implementation of the Contact Storage.
Definition at line 60 of file ocontactaccessbackend_vcard.h.
Constructor & Destructor Documentation
|
||||||||||||
|
Definition at line 99 of file ocontactaccessbackend_vcard.cpp. References load(). |
Member Function Documentation
|
|
load the resource
Implements OPimAccessBackend< OContact >. Definition at line 107 of file ocontactaccessbackend_vcard.cpp. References QMap< int, OContact >::clear(), QFile::exists(), QMap< int, OContact >::insert(), QString::latin1(), OContact::setUid(), and Qtopia::Record::uid(). Referenced by OContactAccessBackend_VCard(), and reload(). |
|
|
reload the resource
Implements OPimAccessBackend< OContact >. Definition at line 145 of file ocontactaccessbackend_vcard.cpp. References load(). |
|
|
save the resource and all it's changes
Implements OPimAccessBackend< OContact >. Definition at line 149 of file ocontactaccessbackend_vcard.cpp. References QMap< int, OContact >::begin(), and QMap< int, OContact >::end(). |
|
|
clear the back end
Implements OPimAccessBackend< OContact >. Definition at line 176 of file ocontactaccessbackend_vcard.cpp. References QMap< int, OContact >::clear(). |
|
|
add T
Implements OPimAccessBackend< OContact >. Definition at line 182 of file ocontactaccessbackend_vcard.cpp. References QMap< int, OContact >::insert(), and Qtopia::Record::uid(). |
|
|
remove
Implements OPimAccessBackend< OContact >. Definition at line 189 of file ocontactaccessbackend_vcard.cpp. References QMap< int, OContact >::remove(). |
|
|
replace a record with T.uid()
Implements OPimAccessBackend< OContact >. Definition at line 196 of file ocontactaccessbackend_vcard.cpp. References QMap< int, OContact >::replace(), and Qtopia::Record::uid(). |
|
|
find the OPimRecord with uid
Implements OPimAccessBackend< OContact >. Definition at line 203 of file ocontactaccessbackend_vcard.cpp. |
|
|
return an array of all available uids
Implements OPimAccessBackend< OContact >. Definition at line 208 of file ocontactaccessbackend_vcard.cpp. References QMap< int, OContact >::begin(), QMap< int, OContact >::count(), and QMap< int, OContact >::end(). |
|
||||||||||||||||
|
queryByExample for T with the given Settings
Implements OPimAccessBackend< OContact >. Definition at line 221 of file ocontactaccessbackend_vcard.cpp. |
|
|
return a List of records that match the regex
Implements OContactAccessBackend. Definition at line 228 of file ocontactaccessbackend_vcard.cpp. |
|
|
Return all possible settings.
Implements OContactAccessBackend. Definition at line 234 of file ocontactaccessbackend_vcard.cpp. |
|
|
Check whether settings are correct.
Implements OContactAccessBackend. Definition at line 239 of file ocontactaccessbackend_vcard.cpp. |
|
||||||||||||||||||||
|
FIXME!!! Returns a sorted list of records either ascendinf or descending for a giving criteria and category.
Implements OContactAccessBackend. Definition at line 250 of file ocontactaccessbackend_vcard.cpp. |
|
|
Return if database was changed externally. This may just make sense on file based databases like a XML-File. It is used to prevent to overwrite the current database content if the file was already changed by something else ! If this happens, we have to reload before save our data. If we use real databases, this should be handled by the database management system themselve, therefore this function should always return false in this case. It is not our problem to handle this conflict ...
Implements OContactAccessBackend. Definition at line 244 of file ocontactaccessbackend_vcard.cpp. |
The documentation for this class was generated from the following files:
