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


Public Member Functions | |
| ODateBookAccessBackend_XML (const QString &appName, const QString &fileName=QString::null) | |
| ~ODateBookAccessBackend_XML () | |
| bool | load () |
| bool | reload () |
| bool | save () |
| QArray< int > | allRecords () const |
| QArray< int > | matchRegexp (const QRegExp &r) const |
| QArray< int > | queryByExample (const OEvent &, int, const QDateTime &d=QDateTime()) |
| OEvent | find (int uid) const |
| void | clear () |
| bool | add (const OEvent &ev) |
| bool | remove (int uid) |
| bool | replace (const OEvent &ev) |
| QArray< UID > | rawEvents () const |
| QArray< UID > | rawRepeats () const |
| QArray< UID > | nonRepeats () const |
| OEvent::ValueList | directNonRepeats () |
| OEvent::ValueList | directRawRepeats () |
Private Member Functions | |
| bool | loadFile () |
| void | finalizeRecord (OEvent &ev) |
| void | setField (OEvent &, int field, const QString &val) |
Private Attributes | |
| bool | m_changed:1 |
| QString | m_name |
| QMap< int, OEvent > | m_raw |
| QMap< int, OEvent > | m_rep |
| Data * | data |
| Private * | d |
Definition at line 14 of file odatebookaccessbackend_xml.h.
|
||||||||||||
|
Definition at line 169 of file odatebookaccessbackend_xml.cpp. References Global::applicationFileName(), QString::isEmpty(), m_changed, and m_name. |
|
|
Definition at line 175 of file odatebookaccessbackend_xml.cpp. |
|
|
add T Implements OPimAccessBackend< OEvent >. Definition at line 263 of file odatebookaccessbackend_xml.cpp. References QMap< Key, T >::insert(), m_changed, m_raw, and m_rep. Referenced by replace(). |
|
|
return an array of all available uids Implements OPimAccessBackend< OEvent >. Definition at line 233 of file odatebookaccessbackend_xml.cpp. References QMap< Key, T >::begin(), QMap< Key, T >::count(), QMap< Key, T >::end(), i, m_raw, and m_rep. Referenced by rawEvents(). |
|
|
clear the back end Implements OPimAccessBackend< OEvent >. Definition at line 252 of file odatebookaccessbackend_xml.cpp. References QMap< Key, T >::clear(), m_changed, m_raw, and m_rep. Referenced by reload(). |
|
|
If you do not want to implement the effectiveEvents methods below you need to supply it with directNonRepeats. This method can return empty lists if effectiveEvents is implememted Implements ODateBookAccessBackend. Definition at line 310 of file odatebookaccessbackend_xml.cpp. References QValueList< T >::append(), QMap< Key, T >::begin(), QMap< Key, T >::end(), list, and m_raw. |
|
|
Same as above but return raw repeats! Implements ODateBookAccessBackend. Definition at line 318 of file odatebookaccessbackend_xml.cpp. References QValueList< T >::append(), QMap< Key, T >::begin(), QMap< Key, T >::end(), list, and m_rep. |
|
|
|
find the OPimRecord with uid
Implements OPimAccessBackend< OEvent >. Definition at line 257 of file odatebookaccessbackend_xml.cpp. References QMap< Key, T >::contains(), m_raw, and m_rep. Referenced by loadFile(). |
|
|
load the resource Implements OPimAccessBackend< OEvent >. Definition at line 177 of file odatebookaccessbackend_xml.cpp. References loadFile(). Referenced by reload(). |
|
|
Definition at line 328 of file odatebookaccessbackend_xml.cpp. References alarmTime, QFile::encodeName(), FAlarm, FALSE, FCategories, FCreated, FDescription, FExceptions, finalizeRecord(), find(), FLocation, FNote, FRecChildren, FRecParent, FREnd, FREndDate, FRFreq, FRHasEndDate, QString::fromLatin1(), QString::fromUtf8(), FRPosition, FRStart, FRType, FRWeekdays, FSound, FTimeZone, FType, FUid, i, QAsciiDict< type >::insert(), len, m_changed, m_name, NULL, Qtopia::plainString(), rec, QPtrCollection::setAutoDelete(), Qtopia::Record::setCustomField(), setField(), snd, str, strstrlen(), and TRUE. Referenced by load(). |
|
|
return a List of records that match the regex Implements OPimAccessBackend< OEvent >. Definition at line 595 of file odatebookaccessbackend_xml.cpp. References QMap< Key, T >::begin(), QMap< Key, T >::count(), QMap< Key, T >::end(), m_raw, and m_rep. |
|
|
This mthod should return a list of UIDs containing all non repeating events. No filter should be applied
Implements ODateBookAccessBackend. Definition at line 298 of file odatebookaccessbackend_xml.cpp. References QMap< Key, T >::begin(), QMap< Key, T >::count(), QMap< Key, T >::end(), i, and m_raw. |
|
||||||||||||||||
|
queryByExample for T with the given Settings Implements OPimAccessBackend< OEvent >. Definition at line 249 of file odatebookaccessbackend_xml.cpp. |
|
|
This method should return a list of UIDs containing all events. No filter should be applied
Implements ODateBookAccessBackend. Definition at line 283 of file odatebookaccessbackend_xml.cpp. References allRecords(). |
|
|
This method should return a list of UIDs containing all repeating events. No filter should be applied
Implements ODateBookAccessBackend. Definition at line 286 of file odatebookaccessbackend_xml.cpp. References QMap< Key, T >::begin(), QMap< Key, T >::count(), QMap< Key, T >::end(), i, and m_rep. |
|
|
reload the resource Implements OPimAccessBackend< OEvent >. Definition at line 180 of file odatebookaccessbackend_xml.cpp. |
|
|
remove Implements OPimAccessBackend< OEvent >. Definition at line 272 of file odatebookaccessbackend_xml.cpp. References m_changed, m_rep, and QMap< Key, T >::remove(). |
|
|
replace a record with T.uid() Implements OPimAccessBackend< OEvent >. Definition at line 279 of file odatebookaccessbackend_xml.cpp. References add(). |
|
|
save the resource and all it's changes Implements OPimAccessBackend< OEvent >. Definition at line 184 of file odatebookaccessbackend_xml.cpp. References buf, QFile::close(), f, forAll(), IO_Raw, IO_WriteOnly, QCString::length(), m_changed, m_name, m_raw, m_rep, QFile::open(), QFile::remove(), str, QString::utf8(), and QFile::writeBlock(). |
|
||||||||||||||||
|
|
Reimplemented from ODateBookAccessBackend. Definition at line 51 of file odatebookaccessbackend_xml.h. |
|
|
Definition at line 49 of file odatebookaccessbackend_xml.h. |
|
|
Definition at line 41 of file odatebookaccessbackend_xml.h. Referenced by add(), clear(), loadFile(), ODateBookAccessBackend_XML(), remove(), and save(). |
|
|
Definition at line 45 of file odatebookaccessbackend_xml.h. Referenced by loadFile(), ODateBookAccessBackend_XML(), and save(). |
|
|
Definition at line 46 of file odatebookaccessbackend_xml.h. Referenced by add(), allRecords(), clear(), directNonRepeats(), finalizeRecord(), find(), matchRegexp(), nonRepeats(), and save(). |
|
|
Definition at line 47 of file odatebookaccessbackend_xml.h. Referenced by add(), allRecords(), clear(), directRawRepeats(), finalizeRecord(), find(), matchRegexp(), rawRepeats(), remove(), and save(). |
1.4.2