KCal Library
todo.h
Go to the documentation of this file.
This class provides the interface for a visitor of calendar components.
Definition incidencebase.h:113
virtual bool visit(Event *event)
Reimplement this function in your concrete subclass of IncidenceBase::Visitor to perform actions on a...
Definition incidencebase.cpp:513
void setPercentComplete(int percent)
Sets what percentage of the to-do is completed.
Definition todo.cpp:468
KCAL_DEPRECATED QString dtStartTimeStr(bool shortfmt, bool first, const KDateTime::Spec &spec=KDateTime::Spec()) const
Returns a todo's starting time as a string formatted according to the user's locale settings.
Definition todo.cpp:319
bool hasDueDate() const
Returns true if the todo has a due date, otherwise return false.
Definition todo.cpp:252
virtual KDateTime endDateRecurrenceBase() const
Returns the end date/time of the base incidence.
Definition todo.cpp:583
virtual void shiftTimes(const KDateTime::Spec &oldSpec, const KDateTime::Spec &newSpec)
Definition todo.cpp:536
bool isCompleted() const
Returns true if the todo is 100% completed, otherwise return false.
Definition todo.cpp:411
KDateTime dtRecurrence() const
Returns the due date/time of the current occurrence if recurrent.
Definition todo.cpp:557
bool isNotStarted(bool first) const
Returns true, if the to-do has yet to be started (no start date and 0% completed); otherwise return f...
Definition todo.cpp:514
QString completedStr(bool shortfmt=false) const
Returns string contaiting date and time when the todo was completed formatted according to the user's...
Definition todo.cpp:441
KCAL_DEPRECATED QString dtDueDateStr(bool shortfmt=true, const KDateTime::Spec &spec=KDateTime::Spec()) const
Returns due date as string formatted according to the user's locale settings.
Definition todo.cpp:210
bool hasStartDate() const
Returns true if the todo has a start date, otherwise return false.
Definition todo.cpp:266
boost::shared_ptr< const Todo > ConstPtr
A shared pointer to a non-mutable Todo object.
Definition todo.h:60
bool isOpenEnded() const
Returns true, if the to-do is open-ended (no due date); false otherwise.
Definition todo.cpp:505
KCAL_DEPRECATED QString dtStartStr(bool shortfmt, bool first, const KDateTime::Spec &spec=KDateTime::Spec()) const
Returns a todo's starting date and time as a string formatted according to the user's locale settings...
Definition todo.cpp:365
KCAL_DEPRECATED QString dtDueStr(bool shortfmt=true, const KDateTime::Spec &spec=KDateTime::Spec()) const
Returns due date and time as string formatted according to the user's locale settings.
Definition todo.cpp:229
bool isInProgress(bool first) const
Returns true, if the to-do is in-progress (started, or >0% completed); otherwise return false.
Definition todo.cpp:478
KCAL_DEPRECATED QString dtDueTimeStr(bool shortfmt=true, const KDateTime::Spec &spec=KDateTime::Spec()) const
Returns due time as string formatted according to the user's locale settings.
Definition todo.cpp:193
KCAL_DEPRECATED QString dtStartDateStr(bool shortfmt, bool first, const KDateTime::Spec &spec=KDateTime::Spec()) const
Returns a todo's starting date as a string formatted according to the user's locale settings.
Definition todo.cpp:341
void setDtRecurrence(const KDateTime &dt)
Sets the due date/time of the current occurrence if recurrent.
Definition todo.cpp:552
int percentComplete() const
Returns what percentage of the to-do is completed.
Definition todo.cpp:463
QByteArray type() const
bool hasCompletedDate() const
Returns true, if the to-do has a date associated with completion, otherwise return false.
Definition todo.cpp:458
virtual bool recursOn(const QDate &date, const KDateTime::Spec &timeSpec) const
Returns true if the date specified is one on which the to-do will recur.
Definition todo.cpp:562
Todo * clone()
This file is part of the API for handling calendar data and defines the Incidence class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.