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

Opie::OPimTodoAccessXML Class Reference

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

Inheritance diagram for Opie::OPimTodoAccessXML:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 OPimTodoAccessXML (const QString &appName, const QString &fileName=QString::null)
 ~OPimTodoAccessXML ()
bool load ()
bool reload ()
bool save ()
QArray< int > allRecords () const
QArray< int > matchRegexp (const QRegExp &r) const
OPimTodo find (int uid) const
void clear ()
bool add (const OPimTodo &)
bool remove (int uid)
void removeAllCompleted ()
bool replace (const OPimTodo &)
QArray< int > effectiveToDos (const QDate &start, const QDate &end, bool includeNoDates) const
QArray< int > overDue () const
UIDArray sorted (const UIDArray &, bool, int, int, const QArray< int > &) const

Private Member Functions

void todo (QAsciiDict< int > *, OPimTodo &, const QCString &, const QString &)
QString toString (const OPimTodo &) const
QString toString (const QArray< int > &ints) const

Private Attributes

QMap< int, OPimTodom_events
QString m_file
QString m_app
bool m_opened: 1
bool m_changed: 1
OPimTodoAccessXMLPrivate * d
int m_year
int m_month
int m_day

Constructor & Destructor Documentation

Opie::OPimTodoAccessXML::OPimTodoAccessXML const QString appName,
const QString fileName = QString::null
 

fileName if Empty we will use the default path

Definition at line 109 of file otodoaccessxml.cpp.

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

Opie::OPimTodoAccessXML::~OPimTodoAccessXML  ) 
 

Definition at line 118 of file otodoaccessxml.cpp.


Member Function Documentation

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

Implements Opie::OPimAccessBackend< OPimTodo >.

Definition at line 345 of file otodoaccessxml.cpp.

References QMap< Key, T >::insert(), m_changed, and m_events.

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

Implements Opie::OPimAccessBackend< OPimTodo >.

Definition at line 318 of file otodoaccessxml.cpp.

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

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

Implements Opie::OPimAccessBackend< OPimTodo >.

Definition at line 339 of file otodoaccessxml.cpp.

References QMap< Key, T >::clear(), m_changed, m_events, and m_opened.

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

Implements Opie::OPimTodoAccessBackend.

Definition at line 363 of file otodoaccessxml.cpp.

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

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

Definition at line 330 of file otodoaccessxml.cpp.

References QMap< Key, T >::end(), QMap< Key, T >::find(), m_events, Opie::OPimRecord::setUid(), and todo().

Referenced by todo().

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

Implements Opie::OPimAccessBackend< OPimTodo >.

Definition at line 121 of file otodoaccessxml.cpp.

References Opie::OPimTodo::Alarms, Opie::OPimTodo::Category, Opie::OPimTodo::Completed, Opie::OPimTodo::CompletedDate, QMap< Key, T >::contains(), Opie::OPimTodo::CrossReference, Opie::OPimTodo::DateDay, Opie::OPimTodo::DateMonth, Opie::OPimTodo::DateYear, Opie::OPimTodo::Description, Opie::OPimRecurrence::doesRecur(), Opie::OPimTodo::dueDate(), QFile::encodeName(), FALSE, FREndDate, FRFreq, FRHasEndDate, QString::fromLatin1(), Opie::OPimTimeZone::fromUTCDateTime(), QString::fromUtf8(), FRPosition, FRStart, FRType, FRWeekdays, Opie::OPimTodo::HasDate, Opie::OPimTodo::hasDueDate(), i, QMap< Key, T >::insert(), QAsciiDict< type >::insert(), l, len, m_changed, m_day, m_events, m_file, m_month, m_opened, m_year, Opie::OPimTodo::Maintainer, NULL, Qtopia::plainString(), Opie::OPimTodo::Priority, Opie::OPimTodo::Progress, rec, Opie::OPimTodo::Reminders, rp_end, QPtrCollection::setAutoDelete(), Opie::OPimTodo::setDueDate(), Opie::OPimRecurrence::setEndDate(), Opie::OPimTodo::setRecurrence(), Opie::OPimRecurrence::setStart(), Opie::OPimRecord::setUid(), Opie::OPimTodo::StartDate, Opie::OPimTodo::State, str, strstrlen(), Opie::OPimTodo::Summary, todo(), TRUE, Qtopia::Record::uid(), Opie::OPimTodo::Uid, and Opie::OPimTimeZone::utc().

Referenced by reload().

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

Reimplemented from Opie::OPimAccessBackend< OPimTodo >.

Definition at line 700 of file otodoaccessxml.cpp.

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

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

Implements Opie::OPimTodoAccessBackend.

Definition at line 381 of file otodoaccessxml.cpp.

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

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

Implements Opie::OPimAccessBackend< OPimTodo >.

Definition at line 266 of file otodoaccessxml.cpp.

References QMap< Key, T >::clear(), load(), and m_events.

bool Opie::OPimTodoAccessXML::remove int  uid  ) 
 

Definition at line 351 of file otodoaccessxml.cpp.

References m_changed, m_events, and QMap< Key, T >::remove().

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

Implements Opie::OPimTodoAccessBackend.

Definition at line 691 of file otodoaccessxml.cpp.

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

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

Implements Opie::OPimAccessBackend< OPimTodo >.

Definition at line 357 of file otodoaccessxml.cpp.

References m_changed, m_events, and QMap< Key, T >::replace().

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

Implements Opie::OPimAccessBackend< OPimTodo >.

Definition at line 270 of file otodoaccessxml.cpp.

References QMap< Key, T >::begin(), QFile::close(), QMap< Key, T >::end(), f, IO_Raw, IO_WriteOnly, QString::latin1(), QCString::length(), m_changed, m_events, m_file, m_opened, QString::null, QFile::open(), out, QFile::remove(), toString(), QString::utf8(), and QFile::writeBlock().

QArray< int > Opie::OPimTodoAccessXML::sorted const UIDArray ,
bool  ,
int  ,
int  ,
const QArray< int > & 
const [virtual]
 

Reimplemented from Opie::OPimTodoAccessBackend.

Definition at line 632 of file otodoaccessxml.cpp.

References Qtopia::Record::categories(), QMap< Key, T >::contains(), Opie::OPimTodoAccess::DoNotShowCompleted, Opie::OPimBase::FilterCategory, i, Opie::Internal::OPimSortVector< T >::insert(), Opie::OPimTodo::isCompleted(), Opie::OPimTodo::isOverdue(), m_events, Opie::OPimTodoAccess::OnlyOverDue, todo(), and Opie::Internal::OPimSortVector< T >::uidAt().

void Opie::OPimTodoAccessXML::todo QAsciiDict< int > *  ,
OPimTodo ,
const QCString ,
const QString
[private]
 

Definition at line 398 of file otodoaccessxml.cpp.

References Opie::OPimNotifyManager::add(), Opie::OPimTodo::Alarms, QValueList< T >::begin(), Opie::OPimTodo::Category, Opie::OPimTodo::Completed, Opie::OPimTodo::CompletedDate, Opie::OPimTodo::CrossReference, Opie::OPimRecurrence::Daily, Opie::OPimTodo::DateDay, Opie::OPimDateConversion::dateFromString(), Opie::OPimTodo::DateMonth, Opie::OPimDateConversion::dateTimeFromString(), Opie::OPimTodo::DateYear, Opie::OPimTodo::Description, QValueList< T >::end(), find(), FREndDate, FRFreq, FRHasEndDate, FRPosition, FRType, FRWeekdays, Opie::OPimTodo::HasDate, Qtopia::Record::idsFromString(), m_day, m_month, m_year, Opie::OPimRecurrence::MonthlyDate, Opie::OPimRecurrence::MonthlyDay, Opie::OPimRecurrence::NoRepeat, Opie::OPimTodo::notifiers(), pos, Opie::OPimTodo::Priority, Opie::OPimTodo::Progress, recur(), rem, Opie::OPimTodo::Reminders, rp_end, Qtopia::Record::setCategories(), Opie::OPimTodo::setCompleted(), Opie::OPimTodo::setCompletedDate(), Qtopia::Record::setCustomField(), Opie::OPimTodo::setDescription(), Opie::OPimTodo::setHasDueDate(), Opie::OPimTodo::setPriority(), Opie::OPimTodo::setProgress(), Opie::OPimTodo::setStartDate(), Opie::OPimTodo::setState(), Opie::OPimTodo::setSummary(), Opie::OPimRecord::setUid(), QStringList::split(), Opie::OPimTodo::StartDate, Opie::OPimTodo::State, Opie::OPimTodo::Summary, QString::toInt(), TRUE, Opie::OPimTodo::Uid, Opie::OPimRecurrence::Weekly, and Opie::OPimRecurrence::Yearly.

Referenced by find(), load(), and sorted().

QString Opie::OPimTodoAccessXML::toString const QArray< int > &  ints  )  const [private]
 

Definition at line 627 of file otodoaccessxml.cpp.

References Qtopia::Record::idsToString().

QString Opie::OPimTodoAccessXML::toString const OPimTodo  )  const [private]
 

Definition at line 543 of file otodoaccessxml.cpp.

References Opie::OPimNotifyManager::alarms(), QValueList< T >::begin(), Qtopia::Record::categories(), Opie::OPimTodo::completedDate(), Opie::customToXml(), Opie::OPimDateConversion::dateTimeToString(), Opie::OPimDateConversion::dateToString(), Opie::OPimTodo::description(), Opie::OPimTodo::dueDate(), QValueList< T >::end(), Qtopia::escapeString(), Opie::OPimTodo::hasCompletedDate(), Opie::OPimTodo::hasDueDate(), Opie::OPimTodo::hasNotifiers(), Opie::OPimTodo::hasRecurrence(), Opie::OPimTodo::hasStartDate(), Opie::OPimTodo::hasState(), Opie::OPimTodo::isCompleted(), QValueList< T >::isEmpty(), QStringList::join(), Opie::OPimTodo::notifiers(), QString::number(), Opie::OPimTodo::priority(), Opie::OPimTodo::progress(), Opie::OPimTodo::recurrence(), Opie::OPimNotifyManager::reminders(), Opie::OPimTodo::startDate(), Opie::OPimTodo::state(), str, Opie::OPimTodo::summary(), Opie::OPimRecord::toExtraMap(), and Qtopia::Record::uid().

Referenced by save().


Member Data Documentation

OPimTodoAccessXMLPrivate* Opie::OPimTodoAccessXML::d [private]
 

Reimplemented from Opie::OPimTodoAccessBackend.

Definition at line 80 of file otodoaccessxml.h.

QString Opie::OPimTodoAccessXML::m_app [private]
 

Definition at line 77 of file otodoaccessxml.h.

bool Opie::OPimTodoAccessXML::m_changed [private]
 

Definition at line 79 of file otodoaccessxml.h.

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

int Opie::OPimTodoAccessXML::m_day [private]
 

Definition at line 82 of file otodoaccessxml.h.

Referenced by load(), and todo().

QMap<int, OPimTodo> Opie::OPimTodoAccessXML::m_events [private]
 

Definition at line 75 of file otodoaccessxml.h.

Referenced by add(), allRecords(), clear(), effectiveToDos(), find(), load(), matchRegexp(), overDue(), reload(), remove(), removeAllCompleted(), replace(), save(), and sorted().

QString Opie::OPimTodoAccessXML::m_file [private]
 

Definition at line 76 of file otodoaccessxml.h.

Referenced by load(), OPimTodoAccessXML(), and save().

int Opie::OPimTodoAccessXML::m_month [private]
 

Definition at line 82 of file otodoaccessxml.h.

Referenced by load(), and todo().

bool Opie::OPimTodoAccessXML::m_opened [private]
 

Definition at line 78 of file otodoaccessxml.h.

Referenced by clear(), load(), and save().

int Opie::OPimTodoAccessXML::m_year [private]
 

Definition at line 82 of file otodoaccessxml.h.

Referenced by load(), and todo().


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