Task Class Reference
The Task class holds the data of a todo entry. More...Inheritance diagram for Task:


Public Types | |
| enum | PriorityValue { VeryHigh = 1, High, Normal, Low, VeryLow } |
Public Member Functions | |
| Task () | |
| Task (const QMap< int, QString > &fromMap) | |
| ~Task () | |
| QMap< int, QString > | toMap () const |
| void | setPriority (int priority) |
| int | priority () const |
| void | setDescription (const QString &description) |
| const QString & | description () const |
| void | setDueDate (const QDate &date) |
| void | clearDueDate () |
| void | setDueDate (const QDate &date, bool hasDue) |
| void | setHasDueDate (bool b) |
| const QDate & | dueDate () const |
| bool | hasDueDate () const |
| void | setCompleted (bool b) |
| bool | isCompleted () const |
| void | save (QString &buf) const |
| bool | match (const QRegExp &r) const |
Static Public Member Functions | |
| void | writeVCalendar (const QString &filename, const QValueList< Task > &tasks) |
| void | writeVCalendar (const QString &filename, const Task &task) |
| QValueList< Task > | readVCalendar (const QString &filename) |
Detailed Description
The Task class holds the data of a todo entry.This data includes the priority of the task, a description, an optional due date, and whether the task is completed or not.
Definition at line 30 of file task.h.
Constructor & Destructor Documentation
|
|
Creates a new, empty task. |
|
|
Destroys a task. |
Member Function Documentation
|
||||||||||||
|
Writes the list of tasks as a set of VCards to the file filename. Definition at line 343 of file task.cpp. References QValueList::begin(), QValueList::end(), and QString::utf8(). |
|
||||||||||||
|
Writes task as a VCard to the file filename. Definition at line 364 of file task.cpp. References QString::utf8(). |
|
|
Returns the set of tasks read as VCards from the file filename. Definition at line 382 of file task.cpp. References QValueList::append(), and QString::utf8(). |
|
|
Sets the priority of the task to priority. |
|
|
Returns the priority of the task. |
|
|
Sets the description of the task to description. |
|
|
Returns the description of the task. |
|
|
Sets the due date of the task to date. Definition at line 90 of file task.h. References QDate::isValid(). |
|
|
Clears the due date of the task. |
|
|
Returns the due date of the task. |
|
|
Returns TRUE if there is a due date set for the task. Otherwise returns FALSE. |
|
|
If b is TRUE marks the task as completed. Otherwise marks the task as uncompleted. |
|
|
Returns TRUE if the task is completed. Otherwise returns FALSE. |
|
|
Returns TRUE if the task matches the regular expressions regexp. Otherwise returns FALSE. Reimplemented from Qtopia::Record. Definition at line 239 of file task.cpp. References QString::find(), match(), QString::number(), and QDate::toString(). Referenced by match(). |
The documentation for this class was generated from the following files:
