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

Opie::OPimTodoAccessVCal Class Reference

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

Inheritance diagram for Opie::OPimTodoAccessVCal:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 OPimTodoAccessVCal (const QString &)
 ~OPimTodoAccessVCal ()
bool load ()
bool reload ()
bool save ()
QArray< int > allRecords () const
QArray< int > effectiveToDos (const QDate &start, const QDate &end, bool includeNoDates) const
QArray< int > overDue () const
OPimTodo find (int uid) const
void clear ()
bool add (const OPimTodo &)
bool remove (int uid)
bool replace (const OPimTodo &)
void removeAllCompleted ()

Private Attributes

bool m_dirty: 1
QString m_file
QMap< int, OPimTodom_map

Constructor & Destructor Documentation

Opie::OPimTodoAccessVCal::OPimTodoAccessVCal const QString  ) 
 

Definition at line 147 of file otodoaccessvcal.cpp.

Opie::OPimTodoAccessVCal::~OPimTodoAccessVCal  ) 
 

Definition at line 151 of file otodoaccessvcal.cpp.


Member Function Documentation

bool Opie::OPimTodoAccessVCal::add const OPimTodo  )  [virtual]
 

Implements Opie::OPimAccessBackend< OPimTodo >.

Definition at line 211 of file otodoaccessvcal.cpp.

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

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

Implements Opie::OPimAccessBackend< OPimTodo >.

Definition at line 236 of file otodoaccessvcal.cpp.

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

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

Implements Opie::OPimAccessBackend< OPimTodo >.

Definition at line 207 of file otodoaccessvcal.cpp.

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

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

Implements Opie::OPimTodoAccessBackend.

Definition at line 247 of file otodoaccessvcal.cpp.

OPimTodo Opie::OPimTodoAccessVCal::find int  uid  )  const
 

Definition at line 232 of file otodoaccessvcal.cpp.

References m_map.

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

Implements Opie::OPimAccessBackend< OPimTodo >.

Definition at line 153 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 > Opie::OPimTodoAccessVCal::overDue  )  const [virtual]
 

Implements Opie::OPimTodoAccessBackend.

Definition at line 254 of file otodoaccessvcal.cpp.

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

Implements Opie::OPimAccessBackend< OPimTodo >.

Definition at line 181 of file otodoaccessvcal.cpp.

References load().

bool Opie::OPimTodoAccessVCal::remove int  uid  ) 
 

Definition at line 216 of file otodoaccessvcal.cpp.

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

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

Implements Opie::OPimTodoAccessBackend.

Definition at line 221 of file otodoaccessvcal.cpp.

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

bool Opie::OPimTodoAccessVCal::replace const OPimTodo  )  [virtual]
 

Implements Opie::OPimAccessBackend< OPimTodo >.

Definition at line 227 of file otodoaccessvcal.cpp.

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

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

Implements Opie::OPimAccessBackend< OPimTodo >.

Definition at line 184 of file otodoaccessvcal.cpp.

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


Member Data Documentation

bool Opie::OPimTodoAccessVCal::m_dirty [private]
 

Definition at line 59 of file otodoaccessvcal.h.

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

QString Opie::OPimTodoAccessVCal::m_file [private]
 

Definition at line 60 of file otodoaccessvcal.h.

Referenced by load(), and save().

QMap<int, OPimTodo> Opie::OPimTodoAccessVCal::m_map [private]
 

Definition at line 61 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:59:30 2005 for OPIE by  doxygen 1.4.2