KCal::Todo Class Reference
This class provides a Todo in the sense of RFC2445. More...
#include <todo.h>
Inheritance diagram for KCal::Todo:

Public Types | |
typedef ListBase< Todo > | List |
Public Methods | |
Todo () | |
Todo (const Todo &) | |
~Todo () | |
bool | operator== (const Todo &) const |
QCString | type () const |
Todo * | clone () |
void | setDtDue (const QDateTime &dtDue) |
QDateTime | dtDue () const |
QString | dtDueTimeStr () const |
QString | dtDueDateStr (bool shortfmt=true) const |
QString | dtDueStr () const |
bool | hasDueDate () const |
void | setHasDueDate (bool hasDueDate) |
bool | hasStartDate () const |
void | setHasStartDate (bool hasStartDate) |
bool | isCompleted () const |
void | setCompleted (bool completed) |
int | percentComplete () const |
void | setPercentComplete (int) |
QDateTime | completed () const |
QString | completedStr () const |
void | setCompleted (const QDateTime &completed) |
bool | hasCompletedDate () const |
Detailed Description
This class provides a Todo in the sense of RFC2445.
Definition at line 31 of file todo.h.
Member Function Documentation
|
Return an exact copy of this todo. The returned object is owned by the caller. Implements KCal::Incidence. |
|
Set due date and time.
Definition at line 71 of file todo.cpp. References KCal::IncidenceBase::updated(). Referenced by KCal::DndFactory::pasteIncidence(), and KCal::VCalFormat::VTodoToEvent(). |
|
Return due date and time.
Definition at line 93 of file todo.cpp. Referenced by KCal::VCalFormat::eventToVTodo(), KCal::DndFactory::pasteIncidence(), KCal::Alarm::time(), and KCal::CalendarLocal::todos(). |
|
Return due time as string formatted according to the users locale settings.
Definition at line 98 of file todo.cpp. References QDateTime::time(). |
|
Return due date as string formatted according to the users locale settings.
Definition at line 103 of file todo.cpp. References QDateTime::date(). |
|
Return due date and time as string formatted according to the users locale settings.
|
|
Return true if the todo has a due date, otherwise return false.
Definition at line 113 of file todo.cpp. Referenced by KCal::VCalFormat::eventToVTodo(), and KCal::CalendarLocal::todos(). |
|
Set if the todo has a due date.
Definition at line 118 of file todo.cpp. References KCal::IncidenceBase::updated(). Referenced by KCal::VCalFormat::VTodoToEvent(). |
|
Return true if the todo has a start date, otherwise return false.
Definition at line 126 of file todo.cpp. Referenced by KCal::VCalFormat::eventToVTodo(). |
|
Set if the todo has a start date.
Definition at line 131 of file todo.cpp. References KCal::IncidenceBase::updated(). Referenced by KCal::VCalFormat::VTodoToEvent(). |
|
Return true if the todo is 100% completed, otherwise return false.
Definition at line 139 of file todo.cpp. Referenced by KCal::VCalFormat::eventToVTodo(), and KCal::CalFilter::filterTodo(). |
|
Set completed state.
Definition at line 145 of file todo.cpp. References KCal::IncidenceBase::updated(). Referenced by KCal::VCalFormat::VTodoToEvent(). |
|
Return how many percent of the task are completed. Returns a value between 0 and 100. |
|
Set how many percent of the task are completed. Valid values are in the range from 0 to 100. Definition at line 180 of file todo.cpp. References KCal::IncidenceBase::updated(). |
|
Return date and time when todo was completed.
Definition at line 152 of file todo.cpp. Referenced by KCal::VCalFormat::eventToVTodo(). |
|
Return string contaiting date and time when the todo was completed formatted according to the users locale settings.
|
|
Set date and time of completion.
Definition at line 162 of file todo.cpp. References KCal::IncidenceBase::updated(). |
|
Return true, if todo has a date associated with completion, otherwise return false.
Definition at line 170 of file todo.cpp. Referenced by KCal::VCalFormat::eventToVTodo(). |
The documentation for this class was generated from the following files: