ODateBookAccessBackend_XML Class Reference
This is the default XML implementation for DateBoook XML storage It fully implements the interface. More...
#include <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 () |
| load the resource | |
| bool | reload () |
| reload the resource | |
| bool | save () |
| save the resource and all it's changes | |
| QArray< int > | allRecords () const |
| return an array of all available uids | |
| QArray< int > | matchRegexp (const QRegExp &r) const |
| return a List of records that match the regex | |
| QArray< int > | queryByExample (const OEvent &, int, const QDateTime &d=QDateTime()) |
| queryByExample for T with the given Settings | |
| OEvent | find (int uid) const |
| find the OPimRecord with uid | |
| void | clear () |
| clear the back end | |
| bool | add (const OEvent &ev) |
| add T | |
| bool | remove (int uid) |
| remove | |
| bool | replace (const OEvent &ev) |
| replace a record with T.uid() | |
| QArray< UID > | rawEvents () const |
| This method should return a list of UIDs containing all events. | |
| QArray< UID > | rawRepeats () const |
| This method should return a list of UIDs containing all repeating events. | |
| QArray< UID > | nonRepeats () const |
| This mthod should return a list of UIDs containing all non repeating events. | |
| OEvent::ValueList | directNonRepeats () |
| If you do not want to implement the effectiveEvents methods below you need to supply it with directNonRepeats. | |
| OEvent::ValueList | directRawRepeats () |
| Same as above but return raw repeats! | |
Detailed Description
This is the default XML implementation for DateBoook XML storage It fully implements the interface.
- See also:
- ODateBookAccessBackend
Definition at line 14 of file odatebookaccessbackend_xml.h.
Constructor & Destructor Documentation
|
||||||||||||
|
Definition at line 169 of file odatebookaccessbackend_xml.cpp. References Global::applicationFileName(), and QString::isEmpty(). |
|
|
Definition at line 175 of file odatebookaccessbackend_xml.cpp. |
Member Function Documentation
|
|
load the resource
Implements OPimAccessBackend< OEvent >. Definition at line 177 of file odatebookaccessbackend_xml.cpp. Referenced by reload(). |
|
|
reload the resource
Implements OPimAccessBackend< OEvent >. Definition at line 180 of file odatebookaccessbackend_xml.cpp. |
|
|
save the resource and all it's changes
Implements OPimAccessBackend< OEvent >. Definition at line 184 of file odatebookaccessbackend_xml.cpp. References QFile::close(), QByteArray::data(), forAll(), QCString::length(), QFile::open(), QFile::remove(), QString::utf8(), and QIODevice::writeBlock(). |
|
|
return an array of all available uids
Implements OPimAccessBackend< OEvent >. Definition at line 233 of file odatebookaccessbackend_xml.cpp. References QMap::begin(), and QMap::end(). |
|
|
return a List of records that match the regex
Implements OPimAccessBackend< OEvent >. Definition at line 595 of file odatebookaccessbackend_xml.cpp. References QMap< int, OEvent >::begin(), QMap< int, OEvent >::count(), QMap< int, OEvent >::end(), and QArray::resize(). |
|
||||||||||||||||
|
queryByExample for T with the given Settings
Implements OPimAccessBackend< OEvent >. Definition at line 249 of file odatebookaccessbackend_xml.cpp. |
|
|
find the OPimRecord with uid
Implements OPimAccessBackend< OEvent >. Definition at line 257 of file odatebookaccessbackend_xml.cpp. References QMap< int, OEvent >::contains(). |
|
|
clear the back end
Implements OPimAccessBackend< OEvent >. Definition at line 252 of file odatebookaccessbackend_xml.cpp. References QMap< int, OEvent >::clear(). Referenced by reload(). |
|
|
add T
Implements OPimAccessBackend< OEvent >. Definition at line 263 of file odatebookaccessbackend_xml.cpp. References OEvent::hasRecurrence(), QMap< int, OEvent >::insert(), and Qtopia::Record::uid(). Referenced by replace(). |
|
|
remove
Implements OPimAccessBackend< OEvent >. Definition at line 272 of file odatebookaccessbackend_xml.cpp. References QMap< int, OEvent >::remove(). |
|
|
replace a record with T.uid()
Implements OPimAccessBackend< OEvent >. Definition at line 279 of file odatebookaccessbackend_xml.cpp. References add(), and Qtopia::Record::uid(). |
|
|
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. |
|
|
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::begin(), and QMap::end(). |
|
|
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::begin(), and QMap::end(). |
|
|
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::append(), QMap< int, OEvent >::begin(), QMap< int, OEvent >::end(), and OEvent::ValueList. |
|
|
Same as above but return raw repeats!
Implements ODateBookAccessBackend. Definition at line 318 of file odatebookaccessbackend_xml.cpp. References QValueList::append(), QMap< int, OEvent >::begin(), QMap< int, OEvent >::end(), and OEvent::ValueList. |
The documentation for this class was generated from the following files:
