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

OTodoAccessVCal Class Reference

#include </home/clem/local/src/opie/noncore/unsupported/libopie/pim/otodoaccessvcal.h>

Inheritance diagram for OTodoAccessVCal:

Inheritance graph
[legend]
Collaboration diagram for OTodoAccessVCal:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 OTodoAccessVCal (const QString &)
 ~OTodoAccessVCal ()
bool load ()
bool reload ()
bool save ()
QArray< int > allRecords () const
QArray< int > matchRegexp (const QRegExp &r) const
QArray< int > queryByExample (const OTodo &t, int sort, const QDateTime &d=QDateTime())
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)
OTodo find (int uid) const
void clear ()
bool add (const OTodo &)
bool remove (int uid)
bool replace (const OTodo &)
void removeAllCompleted ()
virtual QBitArray supports () const

Static Private Member Functions

static QBitArray sup ()

Private Attributes

bool m_dirty: 1
QString m_file
QMap< int, OTodom_map

Constructor & Destructor Documentation

OTodoAccessVCal::OTodoAccessVCal const QString  ) 
 

Definition at line 110 of file otodoaccessvcal.cpp.

OTodoAccessVCal::~OTodoAccessVCal  ) 
 

Definition at line 114 of file otodoaccessvcal.cpp.


Member Function Documentation

bool OTodoAccessVCal::add const OTodo to  )  [virtual]
 

add T

Implements OPimAccessBackend< OTodo >.

Definition at line 174 of file otodoaccessvcal.cpp.

References QMap< Key, T >::insert(), m_dirty, m_map, and Qtopia::Record::uid().

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

return an array of all available uids

Implements OPimAccessBackend< OTodo >.

Definition at line 202 of file otodoaccessvcal.cpp.

References QMap< Key, T >::begin(), QMap< Key, T >::count(), QMap< Key, T >::end(), i, and m_map.

void OTodoAccessVCal::clear  )  [virtual]
 

clear the back end

Implements OPimAccessBackend< OTodo >.

Definition at line 170 of file otodoaccessvcal.cpp.

References QMap< Key, T >::clear(), m_dirty, and m_map.

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

Implements OTodoAccessBackend.

Definition at line 220 of file otodoaccessvcal.cpp.

OTodo OTodoAccessVCal::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 195 of file otodoaccessvcal.cpp.

References m_map.

bool OTodoAccessVCal::load  )  [virtual]
 

load the resource

Implements OPimAccessBackend< OTodo >.

Definition at line 116 of file otodoaccessvcal.cpp.

References QMap< Key, T >::clear(), data, QFile::encodeName(), eventByVObj(), QMap< Key, T >::insert(), l, m_dirty, m_file, m_map, name, Qtopia::Record::uid(), and VCTodoProp.

Referenced by reload().

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

return a List of records that match the regex

Implements OPimAccessBackend< OTodo >.

Definition at line 212 of file otodoaccessvcal.cpp.

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

Implements OTodoAccessBackend.

Definition at line 226 of file otodoaccessvcal.cpp.

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

queryByExample for T with the given Settings

Implements OPimAccessBackend< OTodo >.

Definition at line 216 of file otodoaccessvcal.cpp.

bool OTodoAccessVCal::reload  )  [virtual]
 

reload the resource

Implements OPimAccessBackend< OTodo >.

Definition at line 144 of file otodoaccessvcal.cpp.

References load().

bool OTodoAccessVCal::remove int  uid  )  [virtual]
 

remove

Implements OPimAccessBackend< OTodo >.

Definition at line 179 of file otodoaccessvcal.cpp.

References m_dirty, m_map, and QMap< Key, T >::remove().

void OTodoAccessVCal::removeAllCompleted  )  [virtual]
 

Implements OTodoAccessBackend.

Definition at line 184 of file otodoaccessvcal.cpp.

References QMap< Key, T >::begin(), QMap< Key, T >::end(), m_map, and QMap< Key, T >::remove().

bool OTodoAccessVCal::replace const OTodo to  )  [virtual]
 

replace a record with T.uid()

Implements OPimAccessBackend< OTodo >.

Definition at line 190 of file otodoaccessvcal.cpp.

References m_dirty, m_map, and QMap< Key, T >::replace().

bool OTodoAccessVCal::save  )  [virtual]
 

save the resource and all it's changes

Implements OPimAccessBackend< OTodo >.

Definition at line 147 of file otodoaccessvcal.cpp.

References QMap< Key, T >::begin(), QFileDirect::directHandle(), QMap< Key, T >::end(), IO_WriteOnly, m_dirty, m_file, m_map, QFile::open(), VCCalProp, VCVersionProp, vobjByEvent(), and writeVObject().

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

Implements OTodoAccessBackend.

Definition at line 198 of file otodoaccessvcal.cpp.

QBitArray OTodoAccessVCal::sup  )  [static, private]
 

Definition at line 235 of file otodoaccessvcal.cpp.

References OTodo::Alarms, OTodo::CompletedDate, OTodo::CrossReference, QBitArray::fill(), OTodo::Maintainer, OTodo::Notifiers, OTodo::Progress, OTodo::Recurrence, OTodo::Reminders, and OTodo::State.

Referenced by supports().

QBitArray OTodoAccessVCal::supports  )  const [virtual]
 

Implements OTodoAccessBackend.

Definition at line 230 of file otodoaccessvcal.cpp.

References sup().


Member Data Documentation

bool OTodoAccessVCal::m_dirty [private]
 

Definition at line 35 of file otodoaccessvcal.h.

Referenced by add(), clear(), load(), remove(), replace(), and save().

QString OTodoAccessVCal::m_file [private]
 

Definition at line 36 of file otodoaccessvcal.h.

Referenced by load(), and save().

QMap<int, OTodo> OTodoAccessVCal::m_map [private]
 

Definition at line 37 of file otodoaccessvcal.h.

Referenced by add(), allRecords(), clear(), find(), load(), remove(), removeAllCompleted(), replace(), and save().


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