Qt Mobility Reference Documentation

QOrganizerTodo Class Reference

The QOrganizerTodo class provides a task which should be completed More...

 #include <QOrganizerTodo>

Inherits QOrganizerItem.


Public Functions

Q_DECLARE_CUSTOM_ORGANIZER_ITEM ( QOrganizerTodo, QOrganizerItemType::TypeTodo )
QDateTime dueDateTime () const
QList<QDate> exceptionDates () const
QList<QOrganizerItemRecurrenceRule> exceptionRules () const
QDateTime finishedDateTime () const
bool isTimeSpecified () const
QOrganizerItemPriority::Priority priority () const
int progressPercentage () const
QList<QDate> recurrenceDates () const
QList<QOrganizerItemRecurrenceRule> recurrenceRules () const
void setDueDateTime ( const QDateTime & dueDateTime )
void setExceptionDates ( const QList<QDate> & exdates )
void setExceptionRules ( const QList<QOrganizerItemRecurrenceRule> & exrules )
void setFinishedDateTime ( const QDateTime & finishedDateTime )
void setPriority ( QOrganizerItemPriority::Priority priority )
void setProgressPercentage ( int percentage )
void setRecurrenceDates ( const QList<QDate> & rdates )
void setRecurrenceRules ( const QList<QOrganizerItemRecurrenceRule> & rrules )
void setStatus ( QOrganizerTodoProgress::Status status )
void setTimeSpecified ( bool isTimeSpecified )
QDateTime startDateTime () const
QOrganizerTodoProgress::Status status () const

Detailed Description

The QOrganizerTodo class provides a task which should be completed

A todo is an item which contains information about a task which has to be completed. It might be associated with a particular point in time (for example, water the garden tomorrow evening) or it might have no specific temporal association (for example, climb Mount Everest someday).

A todo can reoccur (for example, water the garden every evening) or it can occur only once.

Todos can be used to schedule agenda items or tasks in a meaningful manner.


Member Function Documentation

QOrganizerTodo::Q_DECLARE_CUSTOM_ORGANIZER_ITEM ( QOrganizerTodo, QOrganizerItemType::TypeTodo )

QDateTime QOrganizerTodo::dueDateTime () const

Returns the date time by which the task should be completed

See also setDueDateTime().

QList<QDate> QOrganizerTodo::exceptionDates () const

Returns the dates on which the todo does not occur, where it otherwise would occur as described by the recurrence rules.

See also setExceptionDates().

QList<QOrganizerItemRecurrenceRule> QOrganizerTodo::exceptionRules () const

Returns the recurrence rules which describe the dates on which the todo does not occur, where it otherwise would occur as described by the recurrence rules set the setRecurrenceRules().

See also setExceptionRules().

QDateTime QOrganizerTodo::finishedDateTime () const

Returns the date and time at which the task was completed, if known.

See also setFinishedDateTime().

bool QOrganizerTodo::isTimeSpecified () const

Returns whether the time component of the start datetime or end datetime are significant.

QOrganizerItemPriority::Priority QOrganizerTodo::priority () const

Returns the priority of the task.

See also setPriority().

int QOrganizerTodo::progressPercentage () const

Returns the percentage of progress completed on the task described by the todo.

See also setProgressPercentage().

QList<QDate> QOrganizerTodo::recurrenceDates () const

Returns the dates on which the todo reoccurs, which have been explicitly set by calling setRecurrenceDates()

See also setRecurrenceDates().

QList<QOrganizerItemRecurrenceRule> QOrganizerTodo::recurrenceRules () const

Returns the list of recurrence rules which define when the todo occurs

See also setRecurrenceRules().

void QOrganizerTodo::setDueDateTime ( const QDateTime & dueDateTime )

Sets the date time by which the task should be completed to dueDateTime

See also dueDateTime().

void QOrganizerTodo::setExceptionDates ( const QList<QDate> & exdates )

Sets the dates on which the todo does not occur despite the date fulfilling the recurrence rules of the todo, to exdates

See also exceptionDates().

void QOrganizerTodo::setExceptionRules ( const QList<QOrganizerItemRecurrenceRule> & exrules )

Sets the recurrence rules which describe the dates on which the todo does not occur, where it otherwise would occur as described by the recurrence rules set with setRecurrenceRules(), to exrules

See also exceptionRules().

void QOrganizerTodo::setFinishedDateTime ( const QDateTime & finishedDateTime )

Sets the date and time at which the task was completed to finishedDateTime

See also finishedDateTime().

void QOrganizerTodo::setPriority ( QOrganizerItemPriority::Priority priority )

Sets the priority of the todo to priority

See also priority().

void QOrganizerTodo::setProgressPercentage ( int percentage )

Sets the percentage of progress completed on the task described by the todo item to percentage

See also progressPercentage().

void QOrganizerTodo::setRecurrenceDates ( const QList<QDate> & rdates )

Sets the dates on which the todo reoccurs to rdates

See also recurrenceDates().

void QOrganizerTodo::setRecurrenceRules ( const QList<QOrganizerItemRecurrenceRule> & rrules )

Sets the recurrence rules which define when the todo occurs to rrules

See also recurrenceRules().

void QOrganizerTodo::setStatus ( QOrganizerTodoProgress::Status status )

Sets the progress status of the task to status

See also status().

void QOrganizerTodo::setTimeSpecified ( bool isTimeSpecified )

Sets whether the time component of the start datetime or end datetime are significant.

See also isTimeSpecified().

QDateTime QOrganizerTodo::startDateTime () const

Returns the date time at which the task should be started

QOrganizerTodoProgress::Status QOrganizerTodo::status () const

Returns the progress status of the task described by the todo

See also setStatus().

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.