libkcal
KCal::Todo Class Reference
#include <todo.h>
Inheritance diagram for KCal::Todo:

Detailed Description
This class provides a Todo in the sense of RFC2445.
Definition at line 31 of file todo.h.
Public Types | |
typedef ListBase< Todo > | List |
Public Member Functions | |
Todo () | |
Todo (const Todo &) | |
~Todo () | |
bool | operator== (const Todo &) const |
QCString | type () const |
Todo * | clone () |
void | setDtDue (const QDateTime &dtDue, bool first=false) |
QDateTime | dtDue (bool first=false) 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) |
QDateTime | dtStart (bool first=false) const |
void | setDtStart (const QDateTime &dtStart) |
QString | dtStartTimeStr (bool first=false) const |
QString | dtStartDateStr (bool shortfmt=true, bool first=false) const |
QString | dtStartStr (bool first=false) const |
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 |
void | setDtRecurrence (const QDateTime &dt) |
QDateTime | dtRecurrence () const |
virtual bool | recursOn (const QDate &date) const |
bool | isOverdue () const |
Protected Member Functions | |
virtual QDateTime | endDateRecurrenceBase () const |
Member Function Documentation
|
Returns an exact copy of this todo. The returned object is owned by the caller. Implements KCal::Incidence. |
|
Returns date and time when todo was completed.
|
|
Returns string contaiting date and time when the todo was completed formatted according to the users locale settings.
|
|
Returns due date and time.
|
|
Returns due date as string formatted according to the users locale settings.
|
|
Returns due date and time as string formatted according to the users locale settings.
|
|
Returns due time as string formatted according to the users locale settings.
|
|
Returns the due date/time of the current occurrence if recurrent.
|
|
Returns the startdate of the todo.
|
|
Returns an todo's starting date as a string formatted according to the users locale settings.
|
|
Returns an todo's starting date and time as a string formatted according to the users locale settings.
|
|
Returns an todo's starting time as a string formatted according to the users locale settings.
|
|
Return the end date/time of the base incidence.
Reimplemented from KCal::Incidence. |
|
Returns true, if todo has a date associated with completion, otherwise return false.
|
|
Returns true if the todo has a due date, otherwise return false.
|
|
Returns true if the todo has a start date, otherwise return false.
|
|
Returns true if the todo is 100% completed, otherwise return false.
|
|
Returns true if this todo is overdue (e.g. due date is lower than today and not completed), else false. |
|
Returns how many percent of the task are completed. Returns a value between 0 and 100. |
|
Returns true if the date specified is one on which the todo will recur. Todo's are a special case, hence the overload. It adds an extra check, which make it return false if there's an occurrence between the recurstart and today. Reimplemented from KCal::Incidence. |
|
Set date and time of completion.
|
|
Set completed state.
|
|
Sets due date and time.
|
|
Sets the due date/time of the current occurrence if recurrent.
|
|
Sets the startdate of the todo.
Reimplemented from KCal::Incidence. |
|
Set if the todo has a due date.
|
|
Set if the todo has a start date.
|
|
Set how many percent of the task are completed. Valid values are in the range from 0 to 100. |
The documentation for this class was generated from the following files: