KCalCore Library
todo.cpp
Go to the documentation of this file.
168 if (recurs() && dtDue.isValid() && (!dtStart().isValid() || dtDue < recurrence()->startDateTime())) {
virtual bool equals(const IncidenceBase &incidence) const
Compares this with Incidence incidence for equality.
Definition: incidence.cpp:231
virtual KDateTime dtStart() const
Returns an incidence's starting date/time as a KDateTime.
Definition: todo.cpp:260
void addComment(const QString &comment)
Adds a comment to the incidence.
Definition: incidencebase.cpp:355
Duration duration() const
Returns the length of the incidence duration.
Definition: incidencebase.cpp:555
KCALCORE_DEPRECATED void setHasDueDate(bool hasDueDate)
Sets if the todo has a due datetime.
Definition: todo.cpp:208
Role for looking up an incidence in a Calendar.
Definition: incidencebase.h:137
Role for determining the date/time of the first alarm.
Definition: incidencebase.h:145
virtual bool visit(Event::Ptr event)
Reimplement this function in your concrete subclass of IncidenceBase::Visitor to perform actions on a...
Definition: visitor.cpp:42
Field representing the LOCATION component.
Definition: incidencebase.h:167
bool isInProgress(bool first) const
Returns true, if the to-do is in-progress (started, or >0% completed); otherwise return false...
Definition: todo.cpp:348
An abstract class that provides a common base for all calendar incidence classes. ...
Definition: incidencebase.h:109
Role for determining an incidence's ending timezone.
Definition: incidencebase.h:139
virtual void virtual_hook(int id, void *data)
Standard trick to add virtuals later.
Definition: todo.cpp:577
Recurrence * recurrence() const
Returns the recurrence rule associated with this incidence.
Definition: incidence.cpp:551
This class provides the interface for a visitor of calendar components.
Definition: visitor.h:43
void update()
Call this to notify the observers after the IncidenceBase object will be changed. ...
Definition: incidencebase.cpp:593
Role for determining an incidence's dtEnd, will return an invalid KDateTime if the incidence does not...
Definition: incidencebase.h:141
T & first()
KDateTime dtRecurrence() const
Returns the due date/time of the current occurrence if recurrent.
Definition: todo.cpp:428
void setRevision(int rev)
Sets the number of revisions this incidence has seen.
Definition: incidence.cpp:375
Role for determining new start and end dates after a DnD.
Definition: incidencebase.h:154
Field representing the RELATED-TO component.
Definition: incidencebase.h:172
Role used for display purposes, represents the end boundary if an incidence supports dtEnd...
Definition: incidencebase.h:143
QLatin1String mimeType() const
Returns the Akonadi specific sub MIME type of a KCalCore::IncidenceBase item, e.g.
Definition: todo.cpp:591
void updated()
Call this to notify the observers after the IncidenceBase object has changed.
Definition: incidencebase.cpp:604
This class represents a recurrence rule for a calendar incidence.
Definition: recurrence.h:87
bool removeComment(const QString &comment)
Removes a comment from the incidence.
Definition: incidencebase.cpp:360
virtual bool equals(const IncidenceBase &todo) const
Compare this with todo for equality.
This file is part of the API for handling calendar data and defines the Todo class.
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:433
KDateTime dateTime(DateTimeRole role) const
Returns a date/time corresponding to the specified DateTimeRole.
Definition: todo.cpp:514
virtual void setDtStart(const KDateTime &dt)
Sets the incidence starting date/time.
Definition: incidence.cpp:393
Field representing the COMPLETED component.
Definition: incidencebase.h:168
bool allDay() const
Returns true or false depending on whether the incidence is all-day.
Definition: incidencebase.cpp:326
void setFieldDirty(IncidenceBase::Field field)
Marks Field field as dirty.
Definition: incidencebase.cpp:657
QLatin1String iconName(const KDateTime &recurrenceId=KDateTime()) const
Returns the name of the icon that best represents this incidence.
Definition: todo.cpp:601
Role for an incidence's date/time used when sorting.
Definition: incidencebase.h:136
void endUpdates()
Call this when a group of updates is complete, to notify observers that the instance has changed...
Definition: incidencebase.cpp:622
virtual void shiftTimes(const KDateTime::Spec &oldSpec, const KDateTime::Spec &newSpec)
Shift the times of the incidence so that they appear at the same clock time as before but in a new ti...
Definition: incidence.cpp:401
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:481
void startUpdates()
Call this when a group of updates is going to be made.
Definition: incidencebase.cpp:616
void setDateTime(const KDateTime &dateTime, DateTimeRole role)
Sets the date/time corresponding to the specified DateTimeRole.
Definition: todo.cpp:563
Role for an incidence alarm's ending offset date/time.
Definition: incidencebase.h:135
void setDtRecurrence(const KDateTime &dt)
Sets the due date/time of the current occurrence if recurrent.
Definition: todo.cpp:422
virtual IncidenceBase & assign(const IncidenceBase &other)
Provides polymorfic assignment.
Definition: incidence.cpp:218
Field representing the PERCENT-COMPLETE component.
Definition: incidencebase.h:169
int revision() const
Returns the number of revisions this incidence has seen.
Definition: incidence.cpp:388
Role for determining an incidence's starting timezone.
Definition: incidencebase.h:138
bool isOpenEnded() const
Returns true, if the to-do is open-ended (no due date); false otherwise.
Definition: todo.cpp:375
virtual bool recursOn(const QDate &date, const KDateTime::Spec &timeSpec) const
Returns true if the date specified is one on which the event will recur.
Definition: incidence.cpp:588
KCALCORE_DEPRECATED void setHasStartDate(bool hasStartDate)
Sets if the todo has a start datetime.
Definition: todo.cpp:232
void setDtDue(const KDateTime &dtDue, bool first=false)
Sets due date and time.
void setDtStart(const KDateTime &dtStart)
Sets the start datetime of the todo.
Definition: todo.cpp:278
static QLatin1String todoMimeType()
Returns the Akonadi specific sub MIME type of a KCalCore::Todo.
Definition: todo.cpp:596
QDate currentDate()
KDateTime getNextDateTime(const KDateTime &preDateTime) const
Returns the date and time of the next recurrence, after the specified date/time.
Definition: recurrence.cpp:1018
QStringList comments() const
Returns all incidence comments as a list of strings.
Definition: incidencebase.cpp:385
bool hasCompletedDate() const
Returns if the to-do has a completion datetime.
Definition: todo.cpp:321
virtual IncidenceBase & assign(const IncidenceBase &other)
Provides polymorfic assignment.
KDateTime startDateTime() const
Return the start date/time of the recurrence (Time for all-day recurrences will be 0:00)...
Definition: recurrence.cpp:171
KDateTime endDateTime() const
Returns the date/time of the last recurrence.
Definition: recurrence.cpp:428
Role for an incidence alarm's starting offset date/time.
Definition: incidencebase.h:134
bool recursAt(const KDateTime &dt) const
Returns true if the date/time specified is one at which the event will recur.
Definition: incidence.cpp:594
int percentComplete() const
Returns what percentage of the to-do is completed.
Definition: todo.cpp:326
virtual void shiftTimes(const KDateTime::Spec &oldSpec, const KDateTime::Spec &newSpec)
Shift the times of the incidence so that they appear at the same clock time as before but in a new ti...
Definition: todo.cpp:406
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:384
Provides the abstract base class common to non-FreeBusy (Events, To-dos, Journals) calendar component...
Definition: incidence.h:68
virtual KDateTime dtStart() const
Returns an incidence's starting date/time as a KDateTime.
Definition: incidencebase.cpp:321
Role for determining the start of the recurrence.
Definition: incidencebase.h:147
void setPercentComplete(int percent)
Sets what percentage of the to-do is completed.
Definition: todo.cpp:331
Role for display purposes, represents the start boundary of an incidence.
Definition: incidencebase.h:152
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:36:53 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:36:53 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.