#include </home/clem/local/src/opie/libopie2/opiepim/backend/ocontactaccessbackend_vcard.h>
Inheritance diagram for Opie::OPimContactAccessBackend_VCard:


Public Member Functions | |
| OPimContactAccessBackend_VCard (const QString &appname, const QString &filename=QString::null) | |
| bool | load () |
| bool | reload () |
| bool | save () |
| void | clear () |
| bool | add (const OPimContact &newcontact) |
| bool | remove (int uid) |
| bool | replace (const OPimContact &contact) |
| OPimContact | find (int uid) const |
| UIDArray | allRecords () const |
| bool | wasChangedExternally () |
Private Member Functions | |
| OPimContact | parseVObject (VObject *obj) |
| VObject * | createVObject (const OPimContact &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, OPimContact > | m_map |
| uint | version_major |
| uint | version_minor |
Definition at line 47 of file ocontactaccessbackend_vcard.h.
|
||||||||||||
|
Definition at line 49 of file ocontactaccessbackend_vcard.cpp. References load(). |
|
|
Implements Opie::OPimAccessBackend< OPimContact >. Definition at line 134 of file ocontactaccessbackend_vcard.cpp. References QMap< Key, T >::insert(), m_dirty, m_map, and Qtopia::Record::uid(). |
|
|
Implements Opie::OPimAccessBackend< OPimContact >. Definition at line 160 of file ocontactaccessbackend_vcard.cpp. References QMap< Key, T >::begin(), QMap< Key, T >::count(), QMap< Key, T >::end(), i, and m_map. |
|
|
Implements Opie::OPimAccessBackend< OPimContact >. Definition at line 128 of file ocontactaccessbackend_vcard.cpp. References QMap< Key, T >::clear(), m_dirty, and m_map. |
|
|
Definition at line 552 of file ocontactaccessbackend_vcard.cpp. References QDate::day(), QString::find(), QDate::month(), pos, QString::replace(), and QDate::year(). Referenced by createVObject(). |
|
|
Definition at line 566 of file ocontactaccessbackend_vcard.cpp. References Opie::OPimContactAccessBackend::d, QString::find(), QString::left(), QString::length(), QString::mid(), odebug, oendl, and Opie::MM::y. Referenced by parseVObject(). |
|
|
|
Definition at line 155 of file ocontactaccessbackend_vcard.cpp. References m_map. |
|
|
Implements Opie::OPimAccessBackend< OPimContact >. Definition at line 59 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, odebug, oendl, owarn, parseVObject(), Opie::OPimContact::setUid(), t, and Qtopia::Record::uid(). Referenced by OPimContactAccessBackend_VCard(), and reload(). |
|
|
|
Implements Opie::OPimAccessBackend< OPimContact >. Definition at line 97 of file ocontactaccessbackend_vcard.cpp. References load(). |
|
|
Definition at line 141 of file ocontactaccessbackend_vcard.cpp. References m_dirty, m_map, and QMap< Key, T >::remove(). |
|
|
Implements Opie::OPimAccessBackend< OPimContact >. Definition at line 148 of file ocontactaccessbackend_vcard.cpp. References m_dirty, m_map, and QMap< Key, T >::replace(). |
|
||||||||||||
|
Definition at line 599 of file ocontactaccessbackend_vcard.cpp. Referenced by createVObject(). |
|
||||||||||||||||
|
Definition at line 591 of file ocontactaccessbackend_vcard.cpp. References QString::isEmpty(), and QString::utf8(). Referenced by createVObject(). |
|
|
Implements Opie::OPimAccessBackend< OPimContact >. Definition at line 101 of file ocontactaccessbackend_vcard.cpp. References QMap< Key, T >::begin(), createVObject(), QMap< Key, T >::end(), QFile::fh, IO_WriteOnly, m_dirty, m_file, m_map, QFile::open(), VCCalProp, VCVersionProp, and writeVObject(). |
|
|
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 Opie::OPimContactAccessBackend. Definition at line 172 of file ocontactaccessbackend_vcard.cpp. |
|
|
Definition at line 73 of file ocontactaccessbackend_vcard.h. Referenced by add(), clear(), load(), remove(), replace(), and save(). |
|
|
Definition at line 74 of file ocontactaccessbackend_vcard.h. |
|
|
Definition at line 75 of file ocontactaccessbackend_vcard.h. Referenced by add(), allRecords(), clear(), find(), load(), remove(), replace(), and save(). |
|
|
Version of parsed VCard Definition at line 80 of file ocontactaccessbackend_vcard.h. Referenced by parseVObject(). |
|
|
Definition at line 81 of file ocontactaccessbackend_vcard.h. Referenced by parseVObject(). |
1.4.2