#include </home/clem/local/src/opie/noncore/unsupported/libopie/pim/ocontactaccessbackend_vcard.h>
Inheritance diagram for OContactAccessBackend_VCard:


Public Member Functions | |
| OContactAccessBackend_VCard (const QString &appname, const QString &filename=QString::null) | |
| bool | load () |
| bool | reload () |
| bool | save () |
| void | clear () |
| bool | add (const OContact &newcontact) |
| bool | remove (int uid) |
| bool | replace (const OContact &contact) |
| OContact | find (int uid) const |
| QArray< int > | allRecords () const |
| QArray< int > | queryByExample (const OContact &query, int settings, const QDateTime &d=QDateTime()) |
| QArray< int > | matchRegexp (const QRegExp &r) const |
| const uint | querySettings () |
| bool | hasQuerySettings (uint querySettings) const |
| QArray< int > | sorted (bool ascending, int sortOrder, int sortFilter, int cat) |
| bool | wasChangedExternally () |
Private Member Functions | |
| OContact | parseVObject (VObject *obj) |
| VObject * | createVObject (const OContact &c) |
| QString | convDateToVCardDate (const QDate &c) const |
| QDate | convVCardDateToDate (const QString &datestr) |
| VObject * | safeAddPropValue (VObject *o, const char *prop, const QString &value) |
| VObject * | safeAddProp (VObject *o, const char *prop) |
Private Attributes | |
| bool | m_dirty: 1 |
| QString | m_file |
| QMap< int, OContact > | m_map |
Definition at line 63 of file ocontactaccessbackend_vcard.h.
|
||||||||||||
|
Definition at line 102 of file ocontactaccessbackend_vcard.cpp. References load(). |
|
|
add T Implements OPimAccessBackend< OContact >. Definition at line 185 of file ocontactaccessbackend_vcard.cpp. References QMap< Key, T >::insert(), m_dirty, m_map, and Qtopia::Record::uid(). |
|
|
return an array of all available uids Implements OPimAccessBackend< OContact >. Definition at line 211 of file ocontactaccessbackend_vcard.cpp. References QMap< Key, T >::begin(), QMap< Key, T >::count(), QMap< Key, T >::end(), i, and m_map. |
|
|
clear the back end Implements OPimAccessBackend< OContact >. Definition at line 179 of file ocontactaccessbackend_vcard.cpp. References QMap< Key, T >::clear(), m_dirty, and m_map. |
|
|
Definition at line 596 of file ocontactaccessbackend_vcard.cpp. References QDate::day(), QString::find(), QDate::month(), pos, QString::replace(), and QDate::year(). Referenced by createVObject(). |
|
|
Definition at line 610 of file ocontactaccessbackend_vcard.cpp. References OContactAccessBackend::d, QString::find(), QString::latin1(), QString::left(), QString::length(), QString::mid(), qDebug(), and Opie::MM::y. Referenced by parseVObject(). |
|
|
|
find the OPimRecord with uid
Implements OPimAccessBackend< OContact >. Definition at line 206 of file ocontactaccessbackend_vcard.cpp. References m_map. |
|
|
Check whether settings are correct.
Implements OContactAccessBackend. Definition at line 242 of file ocontactaccessbackend_vcard.cpp. |
|
|
load the resource Implements OPimAccessBackend< OContact >. Definition at line 110 of file ocontactaccessbackend_vcard.cpp. References QMap< Key, T >::clear(), data, QFile::encodeName(), QFile::exists(), QMap< Key, T >::insert(), l, m_dirty, m_file, m_map, parseVObject(), qWarning(), OContact::setUid(), t, and Qtopia::Record::uid(). Referenced by OContactAccessBackend_VCard(), and reload(). |
|
|
return a List of records that match the regex Implements OContactAccessBackend. Definition at line 231 of file ocontactaccessbackend_vcard.cpp. |
|
|
||||||||||||||||
|
queryByExample for T with the given Settings Implements OPimAccessBackend< OContact >. Definition at line 224 of file ocontactaccessbackend_vcard.cpp. |
|
|
Return all possible settings.
Implements OContactAccessBackend. Definition at line 237 of file ocontactaccessbackend_vcard.cpp. |
|
|
reload the resource Implements OPimAccessBackend< OContact >. Definition at line 148 of file ocontactaccessbackend_vcard.cpp. References load(). |
|
|
remove Implements OPimAccessBackend< OContact >. Definition at line 192 of file ocontactaccessbackend_vcard.cpp. References m_dirty, m_map, and QMap< Key, T >::remove(). |
|
|
replace a record with T.uid() Implements OPimAccessBackend< OContact >. Definition at line 199 of file ocontactaccessbackend_vcard.cpp. References m_dirty, m_map, and QMap< Key, T >::replace(). |
|
||||||||||||
|
Definition at line 643 of file ocontactaccessbackend_vcard.cpp. Referenced by createVObject(). |
|
||||||||||||||||
|
Definition at line 635 of file ocontactaccessbackend_vcard.cpp. References QString::isEmpty(), and QString::latin1(). Referenced by createVObject(). |
|
|
save the resource and all it's changes Implements OPimAccessBackend< OContact >. Definition at line 152 of file ocontactaccessbackend_vcard.cpp. References QMap< Key, T >::begin(), createVObject(), QFileDirect::directHandle(), QMap< Key, T >::end(), IO_WriteOnly, m_dirty, m_file, m_map, QFile::open(), VCCalProp, VCVersionProp, and writeVObject(). |
|
||||||||||||||||||||
|
FIXME!!! Returns a sorted list of records either ascendinf or descending for a giving criteria and category Implements OContactAccessBackend. Definition at line 253 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 247 of file ocontactaccessbackend_vcard.cpp. |
|
|
Definition at line 94 of file ocontactaccessbackend_vcard.h. Referenced by add(), clear(), load(), remove(), replace(), and save(). |
|
|
Definition at line 95 of file ocontactaccessbackend_vcard.h. |
|
|
Definition at line 96 of file ocontactaccessbackend_vcard.h. Referenced by add(), allRecords(), clear(), find(), load(), remove(), replace(), and save(). |
1.4.2