Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Opie::OPimTodoAccessBackendSQL Class Reference

#include </home/clem/local/src/opie/libopie2/opiepim/backend/otodoaccesssql.h>

Inheritance diagram for Opie::OPimTodoAccessBackendSQL:

Inheritance graph
[legend]
Collaboration diagram for Opie::OPimTodoAccessBackendSQL:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 OPimTodoAccessBackendSQL (const QString &file)
 ~OPimTodoAccessBackendSQL ()
bool load ()
bool reload ()
bool save ()
QArray< UIDallRecords () const
OPimTodo find (UID uid) const
OPimTodo find (UID uid, const QArray< int > &, uint cur, Frontend::CacheDirection) const
void clear ()
bool add (const OPimTodo &t)
bool remove (UID uid)
bool replace (const OPimTodo &t)
QArray< UIDoverDue () const
QArray< UIDeffectiveToDos (const QDate &start, const QDate &end, bool includeNoDates) const
QArray< UIDmatchRegexp (const QRegExp &r) const
void removeAllCompleted ()

Private Member Functions

void update () const
bool date (QDate &date, const QString &) const
OPimTodo parseResultAndCache (UID uid, const Opie::DB::OSQLResult &) const
OPimTodo parse (Opie::DB::OSQLResultItem &) const
QArray< UIDuids (const Opie::DB::OSQLResult &) const
OPimTodo todo (UID uid) const
QMap< QString, QStringrequestCustom (UID uid) const

Private Attributes

Opie::DB::OSQLDriverm_driver
QArray< UIDm_uids
bool m_dirty: 1

Constructor & Destructor Documentation

Opie::OPimTodoAccessBackendSQL::OPimTodoAccessBackendSQL const QString file  ) 
 

Definition at line 421 of file otodoaccesssql.cpp.

References Global::applicationFileName(), QString::isEmpty(), m_driver, Opie::DB::OSQLDriver::setUrl(), and Opie::DB::OSQLManager::standard().

Opie::OPimTodoAccessBackendSQL::~OPimTodoAccessBackendSQL  ) 
 

Definition at line 433 of file otodoaccesssql.cpp.

References m_driver.


Member Function Documentation

bool Opie::OPimTodoAccessBackendSQL::add const OPimTodo t  )  [virtual]
 

Implements Opie::OPimAccessBackend< OPimTodo >.

Definition at line 511 of file otodoaccesssql.cpp.

References m_driver, m_uids, Opie::DB::OSQLDriver::query(), and Opie::DB::OSQLResult::state().

Referenced by replace().

QArray< int > Opie::OPimTodoAccessBackendSQL::allRecords  )  const [virtual]
 

Implements Opie::OPimAccessBackend< OPimTodo >.

Definition at line 455 of file otodoaccesssql.cpp.

References m_dirty, m_uids, and update().

void Opie::OPimTodoAccessBackendSQL::clear  )  [virtual]
 

Implements Opie::OPimAccessBackend< OPimTodo >.

Definition at line 505 of file otodoaccesssql.cpp.

References m_driver, and Opie::DB::OSQLDriver::query().

bool Opie::OPimTodoAccessBackendSQL::date QDate date,
const QString
const [inline, private]
 

Definition at line 631 of file otodoaccesssql.cpp.

References list, and QStringList::split().

QArray< int > Opie::OPimTodoAccessBackendSQL::effectiveToDos const QDate start,
const QDate end,
bool  includeNoDates
const [virtual]
 

Implements Opie::OPimTodoAccessBackend.

Definition at line 549 of file otodoaccesssql.cpp.

References m_driver, Opie::DB::OSQLDriver::query(), and uids().

OPimTodo Opie::OPimTodoAccessBackendSQL::find UID  uid,
const QArray< int > &  ,
uint  cur,
Frontend::CacheDirection 
const
 

OPimTodo Opie::OPimTodoAccessBackendSQL::find UID  uid  )  const [virtual]
 

Implements Opie::OPimAccessBackend< OPimTodo >.

bool Opie::OPimTodoAccessBackendSQL::load  )  [virtual]
 

Implements Opie::OPimAccessBackend< OPimTodo >.

Definition at line 438 of file otodoaccesssql.cpp.

References m_dirty, m_driver, Opie::DB::OSQLDriver::open(), and Opie::DB::OSQLDriver::query().

Referenced by reload().

QArray< int > Opie::OPimTodoAccessBackendSQL::matchRegexp const QRegExp r  )  const [virtual]
 

Reimplemented from Opie::OPimAccessBackend< OPimTodo >.

Definition at line 756 of file otodoaccesssql.cpp.

References m_driver, QRegExp::pattern(), Opie::DB::OSQLDriver::query(), and uids().

QArray< int > Opie::OPimTodoAccessBackendSQL::overDue  )  const [virtual]
 

Implements Opie::OPimTodoAccessBackend.

Definition at line 545 of file otodoaccesssql.cpp.

References m_driver, Opie::DB::OSQLDriver::query(), and uids().

OPimTodo Opie::OPimTodoAccessBackendSQL::parse Opie::DB::OSQLResultItem  )  const [inline, private]
 

OPimTodo Opie::OPimTodoAccessBackendSQL::parseResultAndCache UID  uid,
const Opie::DB::OSQLResult
const [inline, private]
 

bool Opie::OPimTodoAccessBackendSQL::reload  )  [virtual]
 

Implements Opie::OPimAccessBackend< OPimTodo >.

Definition at line 448 of file otodoaccesssql.cpp.

References load().

bool Opie::OPimTodoAccessBackendSQL::remove UID  uid  )  [virtual]
 

Implements Opie::OPimAccessBackend< OPimTodo >.

Referenced by replace().

void Opie::OPimTodoAccessBackendSQL::removeAllCompleted  )  [virtual]
 

Implements Opie::OPimTodoAccessBackend.

Definition at line 772 of file otodoaccesssql.cpp.

References QString::isEmpty(), m_driver, owarn, Opie::DB::OSQLDriver::query(), and uids().

bool Opie::OPimTodoAccessBackendSQL::replace const OPimTodo t  )  [virtual]
 

Implements Opie::OPimAccessBackend< OPimTodo >.

Definition at line 539 of file otodoaccesssql.cpp.

References add(), m_dirty, and remove().

QMap<QString, QString> Opie::OPimTodoAccessBackendSQL::requestCustom UID  uid  )  const [private]
 

bool Opie::OPimTodoAccessBackendSQL::save  )  [virtual]
 

Implements Opie::OPimAccessBackend< OPimTodo >.

Definition at line 452 of file otodoaccesssql.cpp.

References Opie::DB::OSQLDriver::close(), and m_driver.

OPimTodo Opie::OPimTodoAccessBackendSQL::todo UID  uid  )  const [private]
 

QArray<UID> Opie::OPimTodoAccessBackendSQL::uids const Opie::DB::OSQLResult  )  const [inline, private]
 

Referenced by effectiveToDos(), matchRegexp(), overDue(), removeAllCompleted(), and update().

void Opie::OPimTodoAccessBackendSQL::update  )  const [private]
 

Definition at line 733 of file otodoaccesssql.cpp.

References m_driver, Opie::DB::OSQLDriver::query(), Opie::DB::OSQLResult::state(), and uids().

Referenced by allRecords().


Member Data Documentation

bool Opie::OPimTodoAccessBackendSQL::m_dirty [private]
 

Definition at line 83 of file otodoaccesssql.h.

Referenced by allRecords(), load(), and replace().

Opie::DB::OSQLDriver* Opie::OPimTodoAccessBackendSQL::m_driver [private]
 

Definition at line 81 of file otodoaccesssql.h.

Referenced by add(), clear(), effectiveToDos(), load(), matchRegexp(), OPimTodoAccessBackendSQL(), overDue(), removeAllCompleted(), save(), update(), and ~OPimTodoAccessBackendSQL().

QArray<UID> Opie::OPimTodoAccessBackendSQL::m_uids [private]
 

Definition at line 82 of file otodoaccesssql.h.

Referenced by add(), and allRecords().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:59:29 2005 for OPIE by  doxygen 1.4.2