#include </home/clem/local/src/opie/libopie2/opiepim/core/opimtodo.h>
Inheritance diagram for Opie::OPimTodo:


Public Types | |
| typedef QValueList< OPimTodo > | ValueList |
| enum | RecordFields { Uid = Qtopia::UID_ID, Category = Qtopia::CATEGORY_ID, HasDate, Completed, Description, Summary, Priority, DateDay, DateMonth, DateYear, Progress, CrossReference, State, Recurrence, Alarms, Reminders, Maintainer, StartDate, CompletedDate, DueDate } |
| enum | TaskPriority { VeryHigh = 1, High, Normal, Low, VeryLow } |
Public Member Functions | |
| OPimTodo (bool completed=false, int priority=Normal, const QStringList &category=QStringList(), const QString &summary=QString::null, const QString &description=QString::null, ushort progress=0, bool hasDate=false, QDate date=QDate::currentDate(), int uid=0) | |
| OPimTodo (bool completed, int priority, const QArray< int > &category, const QString &summary=QString::null, const QString &description=QString::null, ushort progress=0, bool hasDate=false, QDate date=QDate::currentDate(), int uid=0) | |
| OPimTodo (const OPimTodo &) | |
| ~OPimTodo () | |
| bool | isCompleted () const |
| bool | hasDueDate () const |
| bool | hasStartDate () const |
| Does this Todo have a start date. | |
| bool | hasCompletedDate () const |
| Does this Todo have a Date when it was completed. | |
| int | priority () const |
| ushort | progress () const |
| QDate | dueDate () const |
| QDate | startDate () const |
| QDate | completedDate () const |
| bool | hasState () const |
| OPimState | state () const |
| bool | hasRecurrence () const |
| OPimRecurrence | recurrence () const |
| bool | hasMaintainer () const |
| OPimMaintainer | maintainer () const |
| QString | description () const |
| QString | summary () const |
| QString | toRichText () const |
| bool | hasNotifiers () const |
| OPimNotifyManager & | notifiers () |
| const OPimNotifyManager & | notifiers () const |
| QString | type () const |
| QString | toShortText () const |
| QString | recordField (int id) const |
| QMap< int, QString > | toMap () const |
| void | setCompleted (bool completed) |
| void | setHasDueDate (bool hasDate) |
| void | setPriority (int priority) |
| void | setProgress (ushort progress) |
| void | setDueDate (const QDate &date) |
| void | setStartDate (const QDate &date) |
| void | setCompletedDate (const QDate &date) |
| void | setRecurrence (const OPimRecurrence &) |
| void | setDescription (const QString &) |
| void | setSummary (const QString &) |
| void | setState (const OPimState &state) |
| void | setMaintainer (const OPimMaintainer &) |
| bool | isOverdue () const |
| virtual bool | match (const QRegExp &r) const |
| bool | operator< (const OPimTodo &toDoEvent) const |
| bool | operator<= (const OPimTodo &toDoEvent) const |
| bool | operator!= (const OPimTodo &toDoEvent) const |
| bool | operator> (const OPimTodo &toDoEvent) const |
| bool | operator>= (const OPimTodo &toDoEvent) const |
| bool | operator== (const OPimTodo &toDoEvent) const |
| OPimTodo & | operator= (const OPimTodo &toDoEvent) |
| int | rtti () const |
Static Public Member Functions | |
| static OPimTodo * | safeCast (const OPimRecord *) |
| Provide a SafeCast to OPimTodo from a OPimRecord. | |
Private Member Functions | |
| void | deref () |
| void | changeOrModify () |
| void | copy (OPimTodoData *src, OPimTodoData *dest) |
Private Attributes | |
| OPimTodoPrivate * | d |
| OPimTodoData * | data |
Classes | |
| struct | OPimTodoData |
|
|
Definition at line 56 of file opimtodo.h. |
|
|
Definition at line 57 of file opimtodo.h. |
|
|
Definition at line 82 of file opimtodo.h. |
|
||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||
|
|
Copy c'tor Definition at line 87 of file opimtodo.cpp. References data, and QShared::ref(). |
|
|
destructor Definition at line 94 of file opimtodo.cpp. References data, QShared::deref(), and l. |
|
|
change or modify looks at the ref count and either creates a new QShared Object or it can modify it right in place Definition at line 674 of file opimtodo.cpp. References copy(), QShared::count, data, and QShared::deref(). Referenced by setCompleted(), setCompletedDate(), setDescription(), setDueDate(), setHasDueDate(), setMaintainer(), setPriority(), setProgress(), setRecurrence(), setStartDate(), setState(), and setSummary(). |
|
|
When was it completed? Definition at line 257 of file opimtodo.cpp. References Opie::OPimTodo::OPimTodoData::completed, and data. Referenced by TaskEditorStatus::load(), and Opie::OPimTodoAccessXML::toString(). |
|
||||||||||||
|
|
Definition at line 620 of file opimtodo.cpp. References data, and QShared::deref(). Referenced by operator=(). |
|
|
The description of the todo Definition at line 263 of file opimtodo.cpp. References data, and Opie::OPimTodo::OPimTodoData::desc. Referenced by TaskEditorOverView::load(), recordField(), Opie::Internal::string(), toRichText(), Opie::OPimTodoAccessXML::toString(), and vobjByEvent(). |
|
|
The due Date Definition at line 245 of file opimtodo.cpp. References data, and Opie::OPimTodo::OPimTodoData::date. Referenced by Opie::Internal::deadline(), Opie::OPimTodoAccessXML::load(), TaskEditorStatus::load(), Opie::OPimTodoAccessBackend::occurrences(), operator<(), operator<=(), operator>(), operator>=(), recordField(), toRichText(), Opie::OPimTodoAccessXML::toString(), and vobjByEvent(). |
|
|
Does this Todo have a Date when it was completed. As in
Definition at line 221 of file opimtodo.cpp. References Opie::OPimTodo::OPimTodoData::completed, data, and QDate::isValid(). Referenced by TaskEditorStatus::load(), recordField(), and Opie::OPimTodoAccessXML::toString(). |
|
|
Does this Event have a deadline Definition at line 189 of file opimtodo.cpp. References data, and Opie::OPimTodo::OPimTodoData::hasDate. Referenced by Opie::Internal::deadline(), Opie::OPimTodoAccessXML::load(), TaskEditorStatus::load(), operator<(), operator<=(), operator>(), operator>=(), recordField(), toRichText(), Opie::OPimTodoAccessXML::toString(), and vobjByEvent(). |
|
|
does this OPimTodo have a maintainer? Definition at line 303 of file opimtodo.cpp. References data, Opie::OPimTodo::OPimTodoData::maintainer, Opie::OPimMaintainer::mode(), and Opie::OPimMaintainer::Undefined. Referenced by TaskEditorStatus::load(). |
|
|
Definition at line 504 of file opimtodo.cpp. References data, Opie::OPimNotifyManager::isEmpty(), and Opie::OPimTodo::OPimTodoData::notifiers. Referenced by Opie::OPimTodoAccessXML::toString(). |
|
|
has recurrence? Definition at line 288 of file opimtodo.cpp. References data, Opie::OPimRecurrence::doesRecur(), and Opie::OPimTodo::OPimTodoData::recur. Referenced by TaskEditorOverView::load(), recordField(), and Opie::OPimTodoAccessXML::toString(). |
|
|
Does this Todo have a start date. Does this Todo have a start date. The decision is based on if the internal startDate isValid in the sense of QDate::isValid.
Definition at line 206 of file opimtodo.cpp. References data, QDate::isValid(), and Opie::OPimTodo::OPimTodoData::start. Referenced by TaskEditorStatus::load(), Opie::OPimTodoAccessBackend::occurrences(), recordField(), and Opie::OPimTodoAccessXML::toString(). |
|
|
does it have a state? Definition at line 269 of file opimtodo.cpp. References data, Opie::OPimState::state(), Opie::OPimTodo::OPimTodoData::state, and Opie::OPimState::Undefined. Referenced by TaskEditorStatus::load(), and Opie::OPimTodoAccessXML::toString(). |
|
|
Is this event completed? Definition at line 183 of file opimtodo.cpp. References data, and Opie::OPimTodo::OPimTodoData::isCompleted. Referenced by Opie::Internal::completed(), TodoSearch::insertItem(), TaskEditorStatus::load(), recordField(), Opie::OPimTodoAccessXML::sorted(), Opie::OPimTodoAccessBackend::sorted(), Opie::OPimTodoAccessXML::toString(), and vobjByEvent(). |
|
|
Definition at line 410 of file opimtodo.cpp. References QDate::currentDate(), data, Opie::OPimTodo::OPimTodoData::date, Opie::OPimTodo::OPimTodoData::hasDate, and Opie::OPimTodo::OPimTodoData::isCompleted. Referenced by Opie::OPimTodoAccessBackend::occurrences(), Opie::OPimTodoAccessXML::sorted(), and Opie::OPimTodoAccessBackend::sorted(). |
|
|
the Maintainer of this OPimTodo Definition at line 311 of file opimtodo.cpp. References data, and Opie::OPimTodo::OPimTodoData::maintainer. Referenced by TaskEditorStatus::load(). |
|
|
Reimplemented from Qtopia::Record. Definition at line 157 of file opimtodo.cpp. References data, Opie::OPimTodo::OPimTodoData::date, Opie::OPimTodo::OPimTodoData::desc, Description, QString::find(), HasDate, Opie::OPimTodo::OPimTodoData::hasDate, QString::number(), Priority, Opie::OPimTodo::OPimTodoData::priority, Opie::OPimRecord::setLastHitField(), Opie::OPimTodo::OPimTodoData::sum, Summary, and QDate::toString(). |
|
|
Definition at line 519 of file opimtodo.cpp. References data, and Opie::OPimTodo::OPimTodoData::notifiers. |
|
|
return a reference to our notifiers... Definition at line 511 of file opimtodo.cpp. References data, and Opie::OPimTodo::OPimTodoData::notifiers. Referenced by TaskEditorAlarms::save(), Opie::OPimTodoAccessXML::todo(), and Opie::OPimTodoAccessXML::toString(). |
|
|
Definition at line 318 of file opimtodo.h. |
|
|
Definition at line 528 of file opimtodo.cpp. References dueDate(), hasDueDate(), and priority(). |
|
|
Definition at line 547 of file opimtodo.cpp. References dueDate(), hasDueDate(), and priority(). |
|
|
Definition at line 631 of file opimtodo.cpp. References data, deref(), and OPimRecord::operator=(). |
|
|
|
Definition at line 566 of file opimtodo.cpp. References dueDate(), hasDueDate(), and priority(). |
|
|
Definition at line 585 of file opimtodo.cpp. References dueDate(), hasDueDate(), and priority(). |
|
|
What is the priority? Definition at line 227 of file opimtodo.cpp. References data, and Opie::OPimTodo::OPimTodoData::priority. Referenced by TaskEditorOverView::load(), operator<(), operator<=(), operator>(), operator>=(), Opie::Internal::priority(), recordField(), toRichText(), Opie::OPimTodoAccessXML::toString(), and vobjByEvent(). |
|
|
progress as ushort 0, 20, 40, 60, 80 or 100% Definition at line 239 of file opimtodo.cpp. References data, and Opie::OPimTodo::OPimTodoData::prog. Referenced by TaskEditorStatus::load(), recordField(), toRichText(), and Opie::OPimTodoAccessXML::toString(). |
|
|
the name for a recordField Implements Opie::OPimRecord. Definition at line 725 of file opimtodo.cpp. References Alarms, Completed, CompletedDate, DateDay, DateMonth, DateYear, description(), Description, DueDate, dueDate(), hasCompletedDate(), HasDate, hasDueDate(), hasRecurrence(), hasStartDate(), isCompleted(), Maintainer, QString::null, QString::number(), priority(), Priority, progress(), Progress, OPimRecord::recordField(), Recurrence, Reminders, StartDate, state(), summary(), Summary, and tr. |
|
|
the recurrance of this Definition at line 295 of file opimtodo.cpp. References data, and Opie::OPimTodo::OPimTodoData::recur. Referenced by Opie::OPimTodoAccessXML::toString(). |
|
|
Reimplemented from Opie::OPimRecord. Definition at line 800 of file opimtodo.cpp. References Opie::OPimResolver::TodoList. |
|
|
Provide a SafeCast to OPimTodo from a OPimRecord. Provide a safe cast that will return 0 if the record type is not OPimTodo. In the other case it will be casted to OPimTodo and returned
Definition at line 816 of file opimtodo.cpp. References l, Opie::OPimRecord::rtti(), and Opie::OPimResolver::TodoList. |
|
|
Set if this Todo is completed Definition at line 319 of file opimtodo.cpp. References changeOrModify(), data, and Opie::OPimTodo::OPimTodoData::isCompleted. Referenced by eventByVObj(), and Opie::OPimTodoAccessXML::todo(). |
|
|
set the completed date Definition at line 372 of file opimtodo.cpp. References changeOrModify(), Opie::OPimTodo::OPimTodoData::completed, and data. Referenced by Opie::OPimTodoAccessXML::todo(). |
|
|
Definition at line 333 of file opimtodo.cpp. References changeOrModify(), data, Opie::OPimTodo::OPimTodoData::desc, and Qtopia::simplifyMultiLineSpace(). Referenced by eventByVObj(), TaskEditorOverView::save(), and Opie::OPimTodoAccessXML::todo(). |
|
|
set the end date Definition at line 358 of file opimtodo.cpp. References changeOrModify(), data, and Opie::OPimTodo::OPimTodoData::date. Referenced by eventByVObj(), and Opie::OPimTodoAccessXML::load(). |
|
|
set if this todo got an end data Definition at line 326 of file opimtodo.cpp. References changeOrModify(), data, and Opie::OPimTodo::OPimTodoData::hasDate. Referenced by eventByVObj(), and Opie::OPimTodoAccessXML::todo(). |
|
|
set the Maintainer Mode Definition at line 399 of file opimtodo.cpp. References changeOrModify(), data, and Opie::OPimTodo::OPimTodoData::maintainer. |
|
|
Set the priority of the Todo Definition at line 347 of file opimtodo.cpp. References changeOrModify(), data, and Opie::OPimTodo::OPimTodoData::priority. Referenced by eventByVObj(), TaskEditorOverView::save(), and Opie::OPimTodoAccessXML::todo(). |
|
|
Set the progress. Definition at line 418 of file opimtodo.cpp. References changeOrModify(), data, and Opie::OPimTodo::OPimTodoData::prog. Referenced by Opie::OPimTodoAccessXML::todo(). |
|
|
Definition at line 389 of file opimtodo.cpp. References changeOrModify(), data, and Opie::OPimTodo::OPimTodoData::recur. Referenced by Opie::OPimTodoAccessXML::load(). |
|
|
set the start date Definition at line 365 of file opimtodo.cpp. References changeOrModify(), data, and Opie::OPimTodo::OPimTodoData::start. Referenced by Opie::OPimTodoAccessXML::todo(). |
|
|
set the state of a Todo
Definition at line 379 of file opimtodo.cpp. References changeOrModify(), data, and Opie::OPimTodo::OPimTodoData::state. Referenced by Opie::OPimTodoAccessXML::todo(). |
|
|
Definition at line 340 of file opimtodo.cpp. References changeOrModify(), data, and Opie::OPimTodo::OPimTodoData::sum. Referenced by eventByVObj(), TaskEditorOverView::save(), and Opie::OPimTodoAccessXML::todo(). |
|
|
When did it start? Definition at line 251 of file opimtodo.cpp. References data, and Opie::OPimTodo::OPimTodoData::start. Referenced by TaskEditorStatus::load(), Opie::OPimTodoAccessBackend::occurrences(), and Opie::OPimTodoAccessXML::toString(). |
|
|
What is the state of this OPimTodo? Definition at line 276 of file opimtodo.cpp. References data, and Opie::OPimTodo::OPimTodoData::state. Referenced by TaskEditorStatus::load(), recordField(), and Opie::OPimTodoAccessXML::toString(). |
|
|
A small summary of the todo Definition at line 233 of file opimtodo.cpp. References data, and Opie::OPimTodo::OPimTodoData::sum. Referenced by TaskEditorOverView::load(), Opie::OPimTodoAccessBackend::occurrences(), recordField(), Opie::Internal::string(), toRichText(), toShortText(), Opie::OPimTodoAccessXML::toString(), and vobjByEvent(). |
|
|
toMap puts all data into the map. int relates to ToDoEvent RecordFields enum Implements Opie::OPimRecord. Definition at line 644 of file opimtodo.cpp. References Qtopia::Record::categories(), Completed, data, Opie::OPimTodo::OPimTodoData::date, DateDay, DateMonth, DateYear, QDate::day(), Opie::OPimTodo::OPimTodoData::desc, Description, Opie::OPimTodo::OPimTodoData::hasDate, HasDate, Qtopia::Record::idsToString(), QMap< Key, T >::insert(), Opie::OPimTodo::OPimTodoData::isCompleted, QDate::month(), QString::number(), Opie::OPimTodo::OPimTodoData::priority, Priority, Opie::OPimTodo::OPimTodoData::prog, Progress, Opie::OPimTodo::OPimTodoData::sum, Summary, Qtopia::Record::uid(), Uid, and QDate::year(). |
|
|
Return this todoevent in a RichText formatted QString Implements Opie::OPimRecord. Definition at line 434 of file opimtodo.cpp. References Opie::OPimRecord::categoryNames(), QDate::currentDate(), description(), dueDate(), Qtopia::escapeString(), hasDueDate(), Opie::OPimRecord::isEmpty(), QString::number(), off, priority(), progress(), summary(), text, QDate::toString(), and tr. Referenced by TodoItem::toRichText(). |
|
|
a small one line summary Implements Opie::OPimRecord. Definition at line 425 of file opimtodo.cpp. References summary(). Referenced by TodoItem::TodoItem(). |
|
|
reimplementations Implements Opie::OPimRecord. Definition at line 719 of file opimtodo.cpp. References QString::fromLatin1(). |
|
|
Reimplemented from Opie::OPimRecord. Definition at line 312 of file opimtodo.h. |
|
|
Definition at line 313 of file opimtodo.h. Referenced by changeOrModify(), completedDate(), deref(), description(), dueDate(), hasCompletedDate(), hasDueDate(), hasMaintainer(), hasNotifiers(), hasRecurrence(), hasStartDate(), hasState(), isCompleted(), isOverdue(), maintainer(), match(), notifiers(), operator=(), operator==(), OPimTodo(), priority(), progress(), recurrence(), setCompleted(), setCompletedDate(), setDescription(), setDueDate(), setHasDueDate(), setMaintainer(), setPriority(), setProgress(), setRecurrence(), setStartDate(), setState(), setSummary(), startDate(), state(), summary(), toMap(), and ~OPimTodo(). |
1.4.2