libopie PIM API Documentation

OTodoAccessBackendSQL Class Reference

#include <otodoaccesssql.h>

Inheritance diagram for OTodoAccessBackendSQL:

Inheritance graph
[legend]
Collaboration diagram for OTodoAccessBackendSQL:

Collaboration graph
[legend]
List of all members.

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< intallRecords () const
 return an array of all available uids

QArray< intqueryByExample (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< intoverDue ()
QArray< inteffectiveToDos (const QDate &start, const QDate &end, bool includeNoDates)
QArray< intsorted (bool asc, int sortOrder, int sortFilter, int cat)
QBitArray supports () const
QArray< intmatchRegexp (const QRegExp &r) const
 return a List of records that match the regex

void removeAllCompleted ()

Constructor & Destructor Documentation

OTodoAccessBackendSQL::OTodoAccessBackendSQL const QString file  ) 
 

Definition at line 301 of file otodoaccesssql.cpp.

References Global::applicationFileName(), and QString::isEmpty().

OTodoAccessBackendSQL::~OTodoAccessBackendSQL  ) 
 

Definition at line 313 of file otodoaccesssql.cpp.


Member Function Documentation

bool OTodoAccessBackendSQL::load  )  [virtual]
 

load the resource

Implements OPimAccessBackend< OTodo >.

Definition at line 318 of file otodoaccesssql.cpp.

Referenced by reload().

bool OTodoAccessBackendSQL::reload  )  [virtual]
 

reload the resource

Implements OPimAccessBackend< OTodo >.

Definition at line 328 of file otodoaccesssql.cpp.

References load().

bool OTodoAccessBackendSQL::save  )  [virtual]
 

save the resource and all it's changes

Implements OPimAccessBackend< OTodo >.

Definition at line 332 of file otodoaccesssql.cpp.

QArray< int > OTodoAccessBackendSQL::allRecords  )  const [virtual]
 

return an array of all available uids

Implements OPimAccessBackend< OTodo >.

Definition at line 335 of file otodoaccesssql.cpp.

QArray< int > OTodoAccessBackendSQL::queryByExample const OTodo t,
int  settings,
const QDateTime d = QDateTime()
[virtual]
 

queryByExample for T with the given Settings

Implements OPimAccessBackend< OTodo >.

Definition at line 341 of file otodoaccesssql.cpp.

OTodo OTodoAccessBackendSQL::find int  uid  )  const [virtual]
 

find the OPimRecord with uid

Parameters:
uid returns T and T.isEmpty() if nothing was found

Implements OPimAccessBackend< OTodo >.

Definition at line 345 of file otodoaccesssql.cpp.

OTodo OTodoAccessBackendSQL::find int  uid,
const QArray< int > &  ,
uint  cur,
Frontend::CacheDirection 
const [virtual]
 

Reimplemented from OPimAccessBackend< OTodo >.

Definition at line 350 of file otodoaccesssql.cpp.

References QArray::count(), OPimAccessBackend< OTodo >::readAhead(), and QArray::resize().

void OTodoAccessBackendSQL::clear  )  [virtual]
 

clear the back end

Implements OPimAccessBackend< OTodo >.

Definition at line 384 of file otodoaccesssql.cpp.

bool OTodoAccessBackendSQL::add const OTodo t  )  [virtual]
 

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().

bool OTodoAccessBackendSQL::remove int  uid  )  [virtual]
 

remove

Implements OPimAccessBackend< OTodo >.

Definition at line 402 of file otodoaccesssql.cpp.

Referenced by replace().

bool OTodoAccessBackendSQL::replace const OTodo t  )  [virtual]
 

replace a record with T.uid()

Implements OPimAccessBackend< OTodo >.

Definition at line 417 of file otodoaccesssql.cpp.

References add(), remove(), and Qtopia::Record::uid().

QArray< int > OTodoAccessBackendSQL::overDue  )  [virtual]
 

Implements OTodoAccessBackend.

Definition at line 423 of file otodoaccesssql.cpp.

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

Implements OTodoAccessBackend.

Definition at line 427 of file otodoaccesssql.cpp.

QArray< int > OTodoAccessBackendSQL::sorted bool  asc,
int  sortOrder,
int  sortFilter,
int  cat
[virtual]
 

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().

QBitArray OTodoAccessBackendSQL::supports  )  const [virtual]
 

Implements OTodoAccessBackend.

Definition at line 672 of file otodoaccesssql.cpp.

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

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().

void OTodoAccessBackendSQL::removeAllCompleted  )  [virtual]
 

Implements OTodoAccessBackend.

Definition at line 690 of file otodoaccesssql.cpp.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for OPIE Version 1.1.
Documentation copyright © 1997-2003 the KDE developers. 2003 OPIE developers
Generated on Tue Feb 10 20:26:30 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001