OTodoAccessBackendSQL Class Reference
#include <otodoaccesssql.h>
Inheritance diagram for OTodoAccessBackendSQL:


Public Member Functions | |
| OTodoAccessBackendSQL (const QString &file) | |
| ~OTodoAccessBackendSQL () | |
| 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 > | queryByExample (const OTodo &t, int settings, const QDateTime &d=QDateTime()) |
| queryByExample for T with the given Settings | |
| OTodo | find (int uid) const |
| find the OPimRecord with uid | |
| OTodo | find (int uid, const QArray< int > &, uint cur, Frontend::CacheDirection) const |
| void | clear () |
| clear the back end | |
| bool | add (const OTodo &t) |
| add T | |
| bool | remove (int uid) |
| remove | |
| bool | replace (const OTodo &t) |
| replace a record with T.uid() | |
| QArray< int > | overDue () |
| QArray< int > | effectiveToDos (const QDate &start, const QDate &end, bool includeNoDates) |
| QArray< int > | sorted (bool asc, int sortOrder, int sortFilter, int cat) |
| QBitArray | supports () const |
| QArray< int > | matchRegexp (const QRegExp &r) const |
| return a List of records that match the regex | |
| void | removeAllCompleted () |
Constructor & Destructor Documentation
|
|
Definition at line 301 of file otodoaccesssql.cpp. References Global::applicationFileName(), and QString::isEmpty(). |
|
|
Definition at line 313 of file otodoaccesssql.cpp. |
Member Function Documentation
|
|
load the resource
Implements OPimAccessBackend< OTodo >. Definition at line 318 of file otodoaccesssql.cpp. Referenced by reload(). |
|
|
reload the resource
Implements OPimAccessBackend< OTodo >. Definition at line 328 of file otodoaccesssql.cpp. References load(). |
|
|
save the resource and all it's changes
Implements OPimAccessBackend< OTodo >. Definition at line 332 of file otodoaccesssql.cpp. |
|
|
return an array of all available uids
Implements OPimAccessBackend< OTodo >. Definition at line 335 of file otodoaccesssql.cpp. |
|
||||||||||||||||
|
queryByExample for T with the given Settings
Implements OPimAccessBackend< OTodo >. Definition at line 341 of file otodoaccesssql.cpp. |
|
|
find the OPimRecord with uid
Implements OPimAccessBackend< OTodo >. Definition at line 345 of file otodoaccesssql.cpp. |
|
||||||||||||||||||||
|
Reimplemented from OPimAccessBackend< OTodo >. Definition at line 350 of file otodoaccesssql.cpp. References QArray::count(), OPimAccessBackend< OTodo >::readAhead(), and QArray::resize(). |
|
|
clear the back end
Implements OPimAccessBackend< OTodo >. Definition at line 384 of file otodoaccesssql.cpp. |
|
|
add T
Implements OPimAccessBackend< OTodo >. Definition at line 390 of file otodoaccesssql.cpp. References QArray< int >::count(), QArray< int >::resize(), and Qtopia::Record::uid(). Referenced by replace(). |
|
|
remove
Implements OPimAccessBackend< OTodo >. Definition at line 402 of file otodoaccesssql.cpp. Referenced by replace(). |
|
|
replace a record with T.uid()
Implements OPimAccessBackend< OTodo >. Definition at line 417 of file otodoaccesssql.cpp. References add(), remove(), and Qtopia::Record::uid(). |
|
|
Implements OTodoAccessBackend. Definition at line 423 of file otodoaccesssql.cpp. |
|
||||||||||||||||
|
Implements OTodoAccessBackend. Definition at line 427 of file otodoaccesssql.cpp. |
|
||||||||||||||||||||
|
Implements OTodoAccessBackend. Definition at line 436 of file otodoaccesssql.cpp. References QString::arg(), QDate::currentDate(), QDate::day(), QString::length(), QDate::month(), QString::number(), QString::remove(), and QDate::year(). |
|
|
Implements OTodoAccessBackend. Definition at line 672 of file otodoaccesssql.cpp. |
|
|
return a List of records that match the regex
Implements OPimAccessBackend< OTodo >. Definition at line 644 of file otodoaccesssql.cpp. References QMap::begin(), and QMap::end(). |
|
|
Implements OTodoAccessBackend. Definition at line 690 of file otodoaccesssql.cpp. |
The documentation for this class was generated from the following files:
