KCal Library
todo.cpp
Go to the documentation of this file.
310 // TODO: This doesn't seem right (rfc 2445/6 says, recurrence is calculated from the dtstart...)
KDateTime dtRecurrence() const
Returns the due date/time of the current occurrence if recurrent.
Definition: todo.cpp:557
virtual void shiftTimes(const KDateTime::Spec &oldSpec, const KDateTime::Spec &newSpec)
Definition: incidence.cpp:363
bool hasCompletedDate() const
Returns true, if the to-do has a date associated with completion, otherwise return false...
Definition: todo.cpp:458
int duration() const
Returns -1 if the event recurs infinitely, 0 if the end date is set, otherwise the total number of re...
Definition: recurrence.cpp:485
bool operator==(const Incidence &incidence) const
Compares this with Incidence ib for equality.
Definition: incidence.cpp:235
void updated()
Call this to notify the observers after the IncidenceBase object has changed.
Definition: incidencebase.cpp:475
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
KCAL_DEPRECATED_EXPORT QString timeToString(const KDateTime &date, bool shortfmt=true, const KDateTime::Spec &spec=KDateTime::Spec())
Build a QString time representation of a KDateTime object.
Definition: incidenceformatter.cpp:3720
void setAllDay(bool allDay)
Sets whether the dtstart is a all-day (i.e.
Definition: recurrence.cpp:186
virtual KDateTime dtStart() const
Returns an incidence's starting date/time as a KDateTime.
Definition: incidencebase.cpp:248
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
Todo * clone()
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
bool isCompleted() const
Returns true if the todo is 100% completed, otherwise return false.
Definition: todo.cpp:411
This file is part of the API for handling calendar data and provides static functions for formatting ...
d mHasDueDate
Private class that helps to provide binary compatibility between releases.
Definition: todo.cpp:160
virtual void setDtStart(const KDateTime &dtStart)
Sets the incidence's starting date/time with a KDateTime.
Definition: incidencebase.cpp:240
void setDtRecurrence(const KDateTime &dt)
Sets the due date/time of the current occurrence if recurrent.
Definition: todo.cpp:552
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
bool allDay() const
Returns true or false depending on whether the incidence is all-day.
Definition: incidencebase.cpp:310
This file is part of the API for handling calendar data and defines the Todo class.
Provides the abstract base class common to non-FreeBusy (Events, To-dos, Journals) calendar component...
Definition: incidence.h:68
bool hasDueDate() const
Returns true if the todo has a due date, otherwise return false.
Definition: todo.cpp:252
bool isOpenEnded() const
Returns true, if the to-do is open-ended (no due date); false otherwise.
Definition: todo.cpp:505
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
KDateTime endDateTime() const
Returns the date/time of the last recurrence.
Definition: recurrence.cpp:432
KDateTime getNextDateTime(const KDateTime &preDateTime) const
Returns the date and time of the next recurrence, after the specified date/time.
Definition: recurrence.cpp:1012
KDateTime startDateTime() const
Return the start date/time of the recurrence (Time for all-day recurrences will be 0:00)...
Definition: recurrence.cpp:176
virtual void shiftTimes(const KDateTime::Spec &oldSpec, const KDateTime::Spec &newSpec)
Definition: todo.cpp:536
void addComment(const QString &comment)
Adds a comment to thieincidence.
Definition: incidencebase.cpp:332
bool hasStartDate() const
Returns true if the todo has a start date, otherwise return false.
Definition: todo.cpp:266
void setRevision(int rev)
Sets the number of revisions this incidence has seen.
Definition: incidence.cpp:333
QDate currentDate()
KCAL_DEPRECATED_EXPORT QString dateToString(const KDateTime &date, bool shortfmt=true, const KDateTime::Spec &spec=KDateTime::Spec())
Build a QString date representation of a KDateTime object.
Definition: incidenceformatter.cpp:3737
void setPercentComplete(int percent)
Sets what percentage of the to-do is completed.
Definition: todo.cpp:468
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
virtual KDateTime endDateRecurrenceBase() const
Returns the end date/time of the base incidence.
Definition: todo.cpp:583
Recurrence * recurrence() const
Returns the recurrence rule associated with this incidence.
Definition: incidence.cpp:545
int percentComplete() const
Returns what percentage of the to-do is completed.
Definition: todo.cpp:463
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
int revision() const
Returns the number of revisions this incidence has seen.
Definition: incidence.cpp:344
bool removeComment(const QString &comment)
Removes a comment from the incidence.
Definition: incidencebase.cpp:337
QStringList comments() const
Returns all incidence comments as a list of strings.
Definition: incidencebase.cpp:357
void setStartDateTime(const KDateTime &start)
Set start of recurrence.
Definition: recurrence.cpp:582
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
virtual bool recursOn(const QDate &date, const KDateTime::Spec &timeSpec) const
Definition: incidence.cpp:582
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
This class represents a recurrence rule for a calendar incidence.
Definition: recurrence.h:91
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
QByteArray type() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:30 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:30 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.