ODateBookAccessBackend_SQL Class Reference
This is the default SQL implementation for DateBoook SQL storage It fully implements the interface. More...
#include <odatebookaccessbackend_sql.h>
Inheritance diagram for ODateBookAccessBackend_SQL:


Public Member Functions | |
| ODateBookAccessBackend_SQL (const QString &appName, const QString &fileName=QString::null) | |
| ~ODateBookAccessBackend_SQL () | |
| 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 SQL implementation for DateBoook SQL storage It fully implements the interface.
- See also:
- ODateBookAccessBackend
Definition at line 17 of file odatebookaccessbackend_sql.h.
Constructor & Destructor Documentation
|
||||||||||||
|
Definition at line 55 of file odatebookaccessbackend_sql.cpp. References Global::applicationFileName(), QString::isEmpty(), and load(). |
|
|
Definition at line 71 of file odatebookaccessbackend_sql.cpp. |
Member Function Documentation
|
|
load the resource
Implements OPimAccessBackend< OEvent >. Definition at line 111 of file odatebookaccessbackend_sql.cpp. References QString::arg(), QMap< int, QString >::begin(), QMap< int, QString >::end(), and QString::latin1(). Referenced by ODateBookAccessBackend_SQL(), and reload(). |
|
|
reload the resource
Implements OPimAccessBackend< OEvent >. Definition at line 156 of file odatebookaccessbackend_sql.cpp. References load(). Referenced by clear(). |
|
|
save the resource and all it's changes
Implements OPimAccessBackend< OEvent >. Definition at line 161 of file odatebookaccessbackend_sql.cpp. |
|
|
return an array of all available uids
Implements OPimAccessBackend< OEvent >. Definition at line 166 of file odatebookaccessbackend_sql.cpp. |
|
|
return a List of records that match the regex
Implements OPimAccessBackend< OEvent >. Definition at line 340 of file odatebookaccessbackend_sql.cpp. |
|
||||||||||||||||
|
queryByExample for T with the given Settings
Implements OPimAccessBackend< OEvent >. Definition at line 171 of file odatebookaccessbackend_sql.cpp. |
|
|
find the OPimRecord with uid
Implements OPimAccessBackend< OEvent >. Definition at line 187 of file odatebookaccessbackend_sql.cpp. References QMap< int, QString >::begin(), QMapConstIterator::data(), QMap< int, QString >::end(), QMap::insert(), and QString::number(). Referenced by directNonRepeats(), and directRawRepeats(). |
|
|
clear the back end
Implements OPimAccessBackend< OEvent >. Definition at line 175 of file odatebookaccessbackend_sql.cpp. References reload(). |
|
|
add T
Implements OPimAccessBackend< OEvent >. Definition at line 213 of file odatebookaccessbackend_sql.cpp. References QString::arg(), QMap::begin(), QMap< int, QString >::begin(), QMap::end(), QMap< int, QString >::end(), QMap::isEmpty(), QString::latin1(), QString::number(), OPimRecord::toExtraMap(), OEvent::toMap(), and Qtopia::Record::uid(). Referenced by replace(). |
|
|
remove
Implements OPimAccessBackend< OEvent >. Definition at line 259 of file odatebookaccessbackend_sql.cpp. References QString::number(). Referenced by replace(). |
|
|
replace a record with T.uid()
Implements OPimAccessBackend< OEvent >. Definition at line 278 of file odatebookaccessbackend_sql.cpp. References add(), remove(), 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 284 of file odatebookaccessbackend_sql.cpp. |
|
|
This method should return a list of UIDs containing all repeating events. No filter should be applied
Implements ODateBookAccessBackend. Definition at line 289 of file odatebookaccessbackend_sql.cpp. Referenced by directRawRepeats(). |
|
|
This mthod should return a list of UIDs containing all non repeating events. No filter should be applied
Implements ODateBookAccessBackend. Definition at line 302 of file odatebookaccessbackend_sql.cpp. Referenced by directNonRepeats(). |
|
|
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 315 of file odatebookaccessbackend_sql.cpp. References QValueList::append(), QArray::count(), find(), nonRepeats(), and OEvent::ValueList. |
|
|
Same as above but return raw repeats!
Implements ODateBookAccessBackend. Definition at line 327 of file odatebookaccessbackend_sql.cpp. References QValueList::append(), QArray::count(), find(), rawRepeats(), and OEvent::ValueList. |
The documentation for this class was generated from the following files:
