OTodoAccessXML Class Reference
#include <otodoaccessxml.h>
Inheritance diagram for OTodoAccessXML:


Public Member Functions | |
| OTodoAccessXML (const QString &appName, const QString &fileName=QString::null) | |
| fileName if Empty we will use the default path | |
| ~OTodoAccessXML () | |
| 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 OTodo &, int querysettings, const QDateTime &d=QDateTime()) |
| queryByExample for T with the given Settings | |
| OTodo | find (int uid) const |
| find the OPimRecord with uid | |
| void | clear () |
| clear the back end | |
| bool | add (const OTodo &) |
| add T | |
| bool | remove (int uid) |
| remove | |
| void | removeAllCompleted () |
| bool | replace (const OTodo &) |
| replace a record with T.uid() | |
| QArray< int > | effectiveToDos (const QDate &start, const QDate &end, bool includeNoDates) |
| QArray< int > | overDue () |
| QArray< int > | sorted (bool asc, int sortOrder, int sortFilter, int cat) |
| QBitArray | supports () const |
Constructor & Destructor Documentation
|
||||||||||||
|
fileName if Empty we will use the default path
Definition at line 70 of file otodoaccessxml.cpp. References Global::applicationFileName(). |
|
|
Definition at line 79 of file otodoaccessxml.cpp. |
Member Function Documentation
|
|
load the resource
Implements OPimAccessBackend< OTodo >. Definition at line 82 of file otodoaccessxml.cpp. References QMap< int, OTodo >::contains(), QMap< int, OTodo >::count(), QDateTime::date(), ORecur::doesRecur(), OTodo::dueDate(), QFile::encodeName(), FREndDate, FRFreq, FRHasEndDate, QString::fromLatin1(), OTimeZone::fromUTCDateTime(), QString::fromUtf8(), FRPosition, FRStart, FRType, FRWeekdays, OTodo::hasDueDate(), QMap< int, OTodo >::insert(), QAsciiDict::insert(), Qtopia::plainString(), rec, rp_end, QCollection::setAutoDelete(), OTodo::setDueDate(), ORecur::setEndDate(), OTodo::setRecurrence(), ORecur::setStart(), OPimRecord::setUid(), strstrlen(), Qtopia::Record::uid(), and OTimeZone::utc(). Referenced by reload(). |
|
|
reload the resource
Implements OPimAccessBackend< OTodo >. Definition at line 231 of file otodoaccessxml.cpp. References QMap< int, OTodo >::clear(), and load(). |
|
|
save the resource and all it's changes
Implements OPimAccessBackend< OTodo >. Definition at line 235 of file otodoaccessxml.cpp. References QMap< int, OTodo >::begin(), QFile::close(), QByteArray::data(), QMap< int, OTodo >::end(), QString::latin1(), QCString::length(), QFile::open(), QFile::remove(), QString::utf8(), and QIODevice::writeBlock(). |
|
|
return an array of all available uids
Implements OPimAccessBackend< OTodo >. Definition at line 286 of file otodoaccessxml.cpp. References QMap::begin(), and QMap::end(). |
|
|
return a List of records that match the regex
Implements OPimAccessBackend< OTodo >. Definition at line 861 of file otodoaccessxml.cpp. References QMap< int, OTodo >::begin(), QMap< int, OTodo >::count(), QMap< int, OTodo >::end(), and QArray::resize(). |
|
||||||||||||||||
|
queryByExample for T with the given Settings
Implements OPimAccessBackend< OTodo >. Definition at line 297 of file otodoaccessxml.cpp. |
|
|
find the OPimRecord with uid
Implements OPimAccessBackend< OTodo >. Definition at line 301 of file otodoaccessxml.cpp. References QMap::end(), and OPimRecord::setUid(). |
|
|
clear the back end
Implements OPimAccessBackend< OTodo >. Definition at line 310 of file otodoaccessxml.cpp. References QMap< int, OTodo >::clear(). |
|
|
add T
Implements OPimAccessBackend< OTodo >. Definition at line 316 of file otodoaccessxml.cpp. References QMap< int, OTodo >::insert(), and Qtopia::Record::uid(). |
|
|
remove
Implements OPimAccessBackend< OTodo >. Definition at line 323 of file otodoaccessxml.cpp. References QMap< int, OTodo >::remove(). |
|
|
Implements OTodoAccessBackend. Definition at line 838 of file otodoaccessxml.cpp. References QMap::begin(), QMap::end(), and QMap::remove(). |
|
|
replace a record with T.uid()
Implements OPimAccessBackend< OTodo >. Definition at line 329 of file otodoaccessxml.cpp. References QMap< int, OTodo >::replace(), and Qtopia::Record::uid(). |
|
||||||||||||||||
|
Implements OTodoAccessBackend. Definition at line 335 of file otodoaccessxml.cpp. References QMap< int, OTodo >::begin(), QMap< int, OTodo >::count(), QMap< int, OTodo >::end(), and QArray::resize(). |
|
|
Implements OTodoAccessBackend. Definition at line 357 of file otodoaccessxml.cpp. References QMap< int, OTodo >::begin(), QMap< int, OTodo >::count(), QMap< int, OTodo >::end(), and QArray::resize(). |
|
||||||||||||||||||||
|
Implements OTodoAccessBackend. Definition at line 788 of file otodoaccessxml.cpp. References QMap< int, OTodo >::begin(), QMap< int, OTodo >::count(), and QMap< int, OTodo >::end(). |
|
|
Implements OTodoAccessBackend. Definition at line 846 of file otodoaccessxml.cpp. |
The documentation for this class was generated from the following files:
