libopie PIM API Documentation

OTodoAccessXML Class Reference

#include <otodoaccessxml.h>

Inheritance diagram for OTodoAccessXML:

Inheritance graph
[legend]
Collaboration diagram for OTodoAccessXML:

Collaboration graph
[legend]
List of all members.

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

QArray< intmatchRegexp (const QRegExp &r) const
 return a List of records that match the regex

QArray< intqueryByExample (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< inteffectiveToDos (const QDate &start, const QDate &end, bool includeNoDates)
QArray< intoverDue ()
QArray< intsorted (bool asc, int sortOrder, int sortFilter, int cat)
QBitArray supports () const

Constructor & Destructor Documentation

OTodoAccessXML::OTodoAccessXML const QString appName,
const QString fileName = QString::null
 

fileName if Empty we will use the default path

Definition at line 70 of file otodoaccessxml.cpp.

References Global::applicationFileName().

OTodoAccessXML::~OTodoAccessXML  ) 
 

Definition at line 79 of file otodoaccessxml.cpp.


Member Function Documentation

bool OTodoAccessXML::load  )  [virtual]
 

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

bool OTodoAccessXML::reload  )  [virtual]
 

reload the resource

Implements OPimAccessBackend< OTodo >.

Definition at line 231 of file otodoaccessxml.cpp.

References QMap< int, OTodo >::clear(), and load().

bool OTodoAccessXML::save  )  [virtual]
 

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

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

return an array of all available uids

Implements OPimAccessBackend< OTodo >.

Definition at line 286 of file otodoaccessxml.cpp.

References QMap::begin(), and QMap::end().

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

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

QArray< int > OTodoAccessXML::queryByExample const OTodo ,
int  querysettings,
const QDateTime d = QDateTime()
[virtual]
 

queryByExample for T with the given Settings

Implements OPimAccessBackend< OTodo >.

Definition at line 297 of file otodoaccessxml.cpp.

OTodo OTodoAccessXML::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 301 of file otodoaccessxml.cpp.

References QMap::end(), and OPimRecord::setUid().

void OTodoAccessXML::clear  )  [virtual]
 

clear the back end

Implements OPimAccessBackend< OTodo >.

Definition at line 310 of file otodoaccessxml.cpp.

References QMap< int, OTodo >::clear().

bool OTodoAccessXML::add const OTodo todo  )  [virtual]
 

add T

Implements OPimAccessBackend< OTodo >.

Definition at line 316 of file otodoaccessxml.cpp.

References QMap< int, OTodo >::insert(), and Qtopia::Record::uid().

bool OTodoAccessXML::remove int  uid  )  [virtual]
 

remove

Implements OPimAccessBackend< OTodo >.

Definition at line 323 of file otodoaccessxml.cpp.

References QMap< int, OTodo >::remove().

void OTodoAccessXML::removeAllCompleted  )  [virtual]
 

Implements OTodoAccessBackend.

Definition at line 838 of file otodoaccessxml.cpp.

References QMap::begin(), QMap::end(), and QMap::remove().

bool OTodoAccessXML::replace const OTodo todo  )  [virtual]
 

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

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

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

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

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

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

Implements OTodoAccessBackend.

Definition at line 788 of file otodoaccessxml.cpp.

References QMap< int, OTodo >::begin(), QMap< int, OTodo >::count(), and QMap< int, OTodo >::end().

QBitArray OTodoAccessXML::supports  )  const [virtual]
 

Implements OTodoAccessBackend.

Definition at line 846 of file otodoaccessxml.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:31 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001