#include </home/clem/local/src/opie/noncore/unsupported/libopie/pim/otodoaccesssql.h>
Inheritance diagram for OTodoAccessBackendSQL:


Public Member Functions | |
| OTodoAccessBackendSQL (const QString &file) | |
| ~OTodoAccessBackendSQL () | |
| bool | load () |
| bool | reload () |
| bool | save () |
| QArray< int > | allRecords () const |
| QArray< int > | queryByExample (const OTodo &t, int settings, const QDateTime &d=QDateTime()) |
| OTodo | find (int uid) const |
| OTodo | find (int uid, const QArray< int > &, uint cur, Frontend::CacheDirection) const |
| void | clear () |
| bool | add (const OTodo &t) |
| bool | remove (int uid) |
| bool | replace (const OTodo &t) |
| 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 |
| void | removeAllCompleted () |
Private Member Functions | |
| void | update () const |
| void | fillDict () |
| bool | date (QDate &date, const QString &) const |
| OTodo | todo (const Opie::DB::OSQLResult &) const |
| OTodo | todo (Opie::DB::OSQLResultItem &) const |
| QArray< int > | uids (const Opie::DB::OSQLResult &) const |
| OTodo | todo (int uid) const |
| QBitArray | sup () const |
Private Attributes | |
| QAsciiDict< int > | m_dict |
| Opie::DB::OSQLDriver * | m_driver |
| QArray< int > | m_uids |
| bool | m_dirty: 1 |
|
|
Definition at line 302 of file otodoaccesssql.cpp. References Global::applicationFileName(), QString::isEmpty(), m_driver, Opie::DB::OSQLDriver::setUrl(), and Opie::DB::OSQLManager::standard(). |
|
|
Definition at line 314 of file otodoaccesssql.cpp. References m_driver. |
|
|
add T Implements OPimAccessBackend< OTodo >. Definition at line 391 of file otodoaccesssql.cpp. References m_driver, m_uids, Opie::DB::OSQLDriver::query(), and Opie::DB::OSQLResult::state(). Referenced by replace(). |
|
|
return an array of all available uids Implements OPimAccessBackend< OTodo >. Definition at line 336 of file otodoaccesssql.cpp. |
|
|
clear the back end Implements OPimAccessBackend< OTodo >. Definition at line 385 of file otodoaccesssql.cpp. References m_driver, and Opie::DB::OSQLDriver::query(). |
|
||||||||||||
|
Definition at line 503 of file otodoaccesssql.cpp. References list, and QStringList::split(). Referenced by todo(). |
|
||||||||||||||||
|
Implements OTodoAccessBackend. Definition at line 428 of file otodoaccesssql.cpp. References m_driver, Opie::DB::OSQLDriver::query(), and uids(). |
|
|
Definition at line 594 of file otodoaccesssql.cpp. References OTodo::Category, OTodo::Completed, OTodo::CrossReference, OTodo::DateDay, OTodo::DateMonth, OTodo::DateYear, OTodo::Description, OTodo::HasDate, QAsciiDict< type >::insert(), m_dict, OTodo::Priority, OTodo::Progress, QPtrCollection::setAutoDelete(), OTodo::Summary, TRUE, and OTodo::Uid. |
|
||||||||||||||||||||
|
Reimplemented from OPimAccessBackend< OTodo >. Definition at line 351 of file otodoaccesssql.cpp. References i, m_driver, Opie::DB::OSQLDriver::query(), qWarning(), OPimAccessBackend< OTodo >::readAhead(), size, Opie::DB::OSQLResult::state(), and todo(). |
|
|
find the OPimRecord with uid
Implements OPimAccessBackend< OTodo >. Definition at line 346 of file otodoaccesssql.cpp. References m_driver, Opie::DB::OSQLDriver::query(), and todo(). Referenced by todo(). |
|
|
load the resource Implements OPimAccessBackend< OTodo >. Definition at line 319 of file otodoaccesssql.cpp. References m_dirty, m_driver, Opie::DB::OSQLDriver::open(), and Opie::DB::OSQLDriver::query(). Referenced by reload(). |
|
|
return a List of records that match the regex Implements OPimAccessBackend< OTodo >. Definition at line 645 of file otodoaccesssql.cpp. References QMap< Key, T >::begin(), empty, and QMap< Key, T >::end(). |
|
|
Implements OTodoAccessBackend. Definition at line 424 of file otodoaccesssql.cpp. References m_driver, Opie::DB::OSQLDriver::query(), and uids(). |
|
||||||||||||||||
|
queryByExample for T with the given Settings Implements OPimAccessBackend< OTodo >. Definition at line 342 of file otodoaccesssql.cpp. |
|
|
reload the resource Implements OPimAccessBackend< OTodo >. Definition at line 329 of file otodoaccesssql.cpp. References load(). |
|
|
remove Implements OPimAccessBackend< OTodo >. Definition at line 403 of file otodoaccesssql.cpp. References m_dirty, m_driver, Opie::DB::OSQLDriver::query(), rem, and Opie::DB::OSQLResult::state(). Referenced by replace(). |
|
|
Implements OTodoAccessBackend. Definition at line 691 of file otodoaccesssql.cpp. |
|
|
replace a record with T.uid() Implements OPimAccessBackend< OTodo >. Definition at line 418 of file otodoaccesssql.cpp. |
|
|
save the resource and all it's changes Implements OPimAccessBackend< OTodo >. Definition at line 333 of file otodoaccesssql.cpp. References Opie::DB::OSQLDriver::close(), and m_driver. |
|
||||||||||||||||||||
|
Implements OTodoAccessBackend. Definition at line 437 of file otodoaccesssql.cpp. References QDate::currentDate(), QDate::day(), QString::length(), m_driver, QDate::month(), QString::number(), Opie::DB::OSQLDriver::query(), qWarning(), QString::remove(), uids(), and QDate::year(). |
|
|
Definition at line 678 of file otodoaccesssql.cpp. References OTodo::CompletedDate, OTodo::CrossReference, QBitArray::fill(), OTodo::Maintainer, OTodo::Notifiers, OTodo::Reminders, and OTodo::State. Referenced by supports(). |
|
|
Implements OTodoAccessBackend. Definition at line 673 of file otodoaccesssql.cpp. References sup(). |
|
|
Definition at line 587 of file otodoaccesssql.cpp. References find(), m_driver, Opie::DB::OSQLDriver::query(), and todo(). |
|
|
|
Definition at line 516 of file otodoaccesssql.cpp. References QValueList< T >::begin(), OPimAccessBackend< OTodo >::cache(), QValueList< T >::end(), list, and qWarning(). |
|
|
Definition at line 630 of file otodoaccesssql.cpp. References QValueList< T >::begin(), QValueList< T >::count(), QValueList< T >::end(), i, list, qWarning(), and Opie::DB::OSQLResult::results(). Referenced by effectiveToDos(), overDue(), sorted(), and update(). |
|
|
Definition at line 621 of file otodoaccesssql.cpp. References m_driver, Opie::DB::OSQLDriver::query(), Opie::DB::OSQLResult::state(), and uids(). Referenced by allRecords(). |
|
|
Definition at line 54 of file otodoaccesssql.h. Referenced by fillDict(). |
|
|
Definition at line 57 of file otodoaccesssql.h. Referenced by allRecords(), load(), remove(), and replace(). |
|
|
Definition at line 55 of file otodoaccesssql.h. Referenced by add(), clear(), effectiveToDos(), find(), load(), OTodoAccessBackendSQL(), overDue(), remove(), save(), sorted(), todo(), update(), and ~OTodoAccessBackendSQL(). |
|
|
Definition at line 56 of file otodoaccesssql.h. Referenced by add(), and allRecords(). |
1.4.2