#include </home/clem/local/src/opie/libopie2/opiepim/backend/odatebookaccessbackend_xml.h>
Inheritance diagram for Opie::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 OPimEvent &, int, const QDateTime &d=QDateTime()) |
| OPimEvent | find (int uid) const |
| void | clear () |
| bool | add (const OPimEvent &ev) |
| bool | remove (int uid) |
| bool | replace (const OPimEvent &ev) |
| QArray< UID > | rawEvents () const |
| QArray< UID > | rawRepeats () const |
| QArray< UID > | nonRepeats () const |
| OPimEvent::ValueList | directNonRepeats () const |
| OPimEvent::ValueList | directRawRepeats () const |
Private Member Functions | |
| bool | loadFile () |
| void | finalizeRecord (OPimEvent &ev) |
| void | setField (OPimEvent &, int field, const QString &val) |
Private Attributes | |
| bool | m_changed:1 |
| bool | m_noTimeZone: 1 |
| QString | m_name |
| QMap< int, OPimEvent > | m_raw |
| QMap< int, OPimEvent > | m_rep |
| Data * | data |
| Private * | d |
Definition at line 43 of file odatebookaccessbackend_xml.h.
|
||||||||||||
|
Definition at line 214 of file odatebookaccessbackend_xml.cpp. References Global::applicationFileName(), QString::isEmpty(), m_changed, and m_name. |
|
|
Definition at line 220 of file odatebookaccessbackend_xml.cpp. |
|
|
Implements Opie::OPimAccessBackend< OPimEvent >. Definition at line 308 of file odatebookaccessbackend_xml.cpp. References QMap< Key, T >::insert(), m_changed, m_raw, and m_rep. Referenced by replace(). |
|
|
Implements Opie::OPimAccessBackend< OPimEvent >. Definition at line 278 of file odatebookaccessbackend_xml.cpp. References QMap< Key, T >::begin(), QMap< Key, T >::count(), QMap< Key, T >::end(), i, m_raw, and m_rep. |
|
|
Implements Opie::OPimAccessBackend< OPimEvent >. Definition at line 297 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 Opie::ODateBookAccessBackend. Definition at line 353 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 Opie::ODateBookAccessBackend. Definition at line 361 of file odatebookaccessbackend_xml.cpp. References QValueList< T >::append(), QMap< Key, T >::begin(), QMap< Key, T >::end(), list, and m_rep. |
|
|
|
Definition at line 302 of file odatebookaccessbackend_xml.cpp. References QMap< Key, T >::contains(), m_raw, and m_rep. Referenced by loadFile(). |
|
|
Implements Opie::OPimAccessBackend< OPimEvent >. Definition at line 222 of file odatebookaccessbackend_xml.cpp. References loadFile(). Referenced by reload(). |
|
|
Definition at line 371 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, m_noTimeZone, NULL, Qtopia::plainString(), rec, QPtrCollection::setAutoDelete(), Qtopia::Record::setCustomField(), setField(), snd, str, strstrlen(), and TRUE. Referenced by load(). |
|
|
Reimplemented from Opie::OPimAccessBackend< OPimEvent >. Definition at line 645 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 Opie::ODateBookAccessBackend. Definition at line 341 of file odatebookaccessbackend_xml.cpp. References QMap< Key, T >::begin(), QMap< Key, T >::count(), QMap< Key, T >::end(), i, and m_raw. |
|
||||||||||||||||
|
Definition at line 294 of file odatebookaccessbackend_xml.cpp. |
|
|
|
|
|
This method should return a list of UIDs containing all repeating events. No filter should be applied
Implements Opie::ODateBookAccessBackend. Definition at line 329 of file odatebookaccessbackend_xml.cpp. References QMap< Key, T >::begin(), QMap< Key, T >::count(), QMap< Key, T >::end(), i, and m_rep. |
|
|
Implements Opie::OPimAccessBackend< OPimEvent >. Definition at line 225 of file odatebookaccessbackend_xml.cpp. |
|
|
Definition at line 317 of file odatebookaccessbackend_xml.cpp. References m_changed, m_raw, m_rep, and QMap< Key, T >::remove(). |
|
|
Implements Opie::OPimAccessBackend< OPimEvent >. Definition at line 324 of file odatebookaccessbackend_xml.cpp. References add(). |
|
|
Implements Opie::OPimAccessBackend< OPimEvent >. Definition at line 229 of file odatebookaccessbackend_xml.cpp. References buf, QFile::close(), f, IO_Raw, IO_WriteOnly, QCString::length(), m_changed, m_name, m_raw, m_rep, QFile::open(), QFile::remove(), saveEachEvent(), str, QString::utf8(), and QFile::writeBlock(). |
|
||||||||||||||||
|
Definition at line 548 of file odatebookaccessbackend_xml.cpp. References alarmTime, QValueList< T >::begin(), created, Opie::OPimRecurrence::Daily, QValueList< T >::end(), end, FAlarm, FCategories, FCreated, FDescription, FExceptions, FLocation, FNote, FRecChildren, FRecParent, FREnd, FREndDate, FRFreq, FRHasEndDate, FRPosition, FRStart, FRType, FRWeekdays, FSound, FTimeZone, FType, FUid, list, Opie::OPimAlarm::Loud, m_noTimeZone, Opie::OPimRecurrence::MonthlyDate, Opie::OPimRecurrence::MonthlyDay, Opie::OPimRecurrence::NoRepeat, recur(), rp_end, Opie::OPimAlarm::Silent, snd, QStringList::split(), start, Opie::OPimRecurrence::Weekly, and Opie::OPimRecurrence::Yearly. Referenced by loadFile(). |
|
|
Reimplemented from Opie::ODateBookAccessBackend. Definition at line 82 of file odatebookaccessbackend_xml.h. |
|
|
Definition at line 80 of file odatebookaccessbackend_xml.h. |
|
|
Definition at line 70 of file odatebookaccessbackend_xml.h. Referenced by add(), clear(), loadFile(), ODateBookAccessBackend_XML(), remove(), and save(). |
|
|
Definition at line 76 of file odatebookaccessbackend_xml.h. Referenced by loadFile(), ODateBookAccessBackend_XML(), and save(). |
|
|
Definition at line 71 of file odatebookaccessbackend_xml.h. Referenced by finalizeRecord(), loadFile(), and setField(). |
|
|
Definition at line 77 of file odatebookaccessbackend_xml.h. Referenced by add(), allRecords(), clear(), directNonRepeats(), finalizeRecord(), find(), matchRegexp(), nonRepeats(), remove(), and save(). |
|
|
Definition at line 78 of file odatebookaccessbackend_xml.h. Referenced by add(), allRecords(), clear(), directRawRepeats(), finalizeRecord(), find(), matchRegexp(), rawRepeats(), remove(), and save(). |
1.4.2