KCalCore Library
todo.cpp
Go to the documentation of this file.
159 d->mHasDueDate = dtDue.isValid();
255 // TODO: This doesn't seem right (rfc 2445/6 says, recurrence is calculated from the dtstart...)
virtual bool equals(const IncidenceBase &incidence) const
Compares this with Incidence incidence for equality.
Definition: incidence.cpp:224
IncidenceType type() const
void addComment(const QString &comment)
Adds a comment to thieincidence.
Definition: incidencebase.cpp:334
QByteArray typeStr() const
Role for looking up an incidence in a Calendar.
Definition: incidencebase.h:135
virtual void setDtStart(const KDateTime &dtStart)
Sets the incidence's starting date/time with a KDateTime.
Definition: incidencebase.cpp:290
Role for determining the date/time of the first alarm.
Definition: incidencebase.h:143
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
void setStartDateTime(const KDateTime &start)
Set start of recurrence.
Definition: recurrence.cpp:581
Field representing the LOCATION component.
Definition: incidencebase.h:162
bool isInProgress(bool first) const
Returns true, if the to-do is in-progress (started, or >0% completed); otherwise return false...
Definition: todo.cpp:333
An abstract class that provides a common base for all calendar incidence classes. ...
Definition: incidencebase.h:107
Role for determining an incidence's ending timezone.
Definition: incidencebase.h:137
Recurrence * recurrence() const
Returns the recurrence rule associated with this incidence.
Definition: incidence.cpp:535
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:561
Role for determining an incidence's dtEnd, will return an invalid KDateTime if the incidence does not...
Definition: incidencebase.h:139
KDateTime dtRecurrence() const
Returns the due date/time of the current occurrence if recurrent.
Definition: todo.cpp:413
void setRevision(int rev)
Sets the number of revisions this incidence has seen.
Definition: incidence.cpp:358
bool hasDueDate() const
Returns true if the todo has a due date, otherwise return false.
Definition: todo.cpp:193
Role for determining new start and end dates after a DnD.
Definition: incidencebase.h:152
Field representing the RELATED-TO component.
Definition: incidencebase.h:167
Role used for display purposes, represents the end boundary if an incidence supports dtEnd...
Definition: incidencebase.h:141
d mHasDueDate
Private class that helps to provide binary compatibility between releases.
Definition: todo.cpp:159
void updated()
Call this to notify the observers after the IncidenceBase object has changed.
Definition: incidencebase.cpp:572
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:339
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.
QSharedPointer< IncidenceBase > Ptr
A shared pointer to an IncidenceBase.
Definition: incidencebase.h:113
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:418
Field representing the COMPLETED component.
Definition: incidencebase.h:163
bool allDay() const
Returns true or false depending on whether the incidence is all-day.
Definition: incidencebase.cpp:305
void setFieldDirty(IncidenceBase::Field field)
Marks Field field as dirty.
Definition: incidencebase.cpp:625
QLatin1String iconName(const KDateTime &recurrenceId=KDateTime()) const
Definition: todo.cpp:573
Role for an incidence's date/time used when sorting.
Definition: incidencebase.h:134
void endUpdates()
Call this when a group of updates is complete, to notify observers that the instance has changed...
Definition: incidencebase.cpp:590
virtual void shiftTimes(const KDateTime::Spec &oldSpec, const KDateTime::Spec &newSpec)
Definition: incidence.cpp:385
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:584
void setDateTime(const KDateTime &dateTime, DateTimeRole role)
Definition: todo.cpp:545
Role for an incidence alarm's ending offset date/time.
Definition: incidencebase.h:133
void setDtRecurrence(const KDateTime &dt)
Sets the due date/time of the current occurrence if recurrent.
Definition: todo.cpp:407
virtual IncidenceBase & assign(const IncidenceBase &other)
Definition: incidence.cpp:211
Field representing the PERCENT-COMPLETE component.
Definition: incidencebase.h:164
int revision() const
Returns the number of revisions this incidence has seen.
Definition: incidence.cpp:371
Role for determining an incidence's starting timezone.
Definition: incidencebase.h:136
bool isOpenEnded() const
Returns true, if the to-do is open-ended (no due date); false otherwise.
Definition: todo.cpp:360
virtual bool recursOn(const QDate &date, const KDateTime::Spec &timeSpec) const
Definition: incidence.cpp:572
void setDtDue(const KDateTime &dtDue, bool first=false)
Sets due date and time.
static QLatin1String todoMimeType()
Returns the Akonadi specific sub MIME type of a KCalCore::Todo.
Definition: todo.cpp:568
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:364
void setAllDay(bool allDay)
Sets whether the dtstart is a all-day (i.e.
Definition: recurrence.cpp:182
bool hasStartDate() const
Returns true if the todo has a start date, otherwise return false.
Definition: todo.cpp:209
bool isCompleted() const
Returns true if the todo is 100% completed, otherwise return false.
Definition: todo.cpp:266
bool hasCompletedDate() const
Returns true, if the to-do has a date associated with completion, otherwise return false...
Definition: todo.cpp:306
virtual IncidenceBase & assign(const IncidenceBase &other)
KDateTime startDateTime() const
Return the start date/time of the recurrence (Time for all-day recurrences will be 0:00)...
Definition: recurrence.cpp:172
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:132
int percentComplete() const
Returns what percentage of the to-do is completed.
Definition: todo.cpp:311
virtual void shiftTimes(const KDateTime::Spec &oldSpec, const KDateTime::Spec &newSpec)
Definition: todo.cpp:391
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:369
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:300
Role for determining the start of the recurrence.
Definition: incidencebase.h:145
void setPercentComplete(int percent)
Sets what percentage of the to-do is completed.
Definition: todo.cpp:316
Role for display purposes, represents the start boundary of an incidence.
Definition: incidencebase.h:150
This file is part of the KDE documentation.
Documentation copyright © 1996-2017 The KDE developers.
Generated on Thu Dec 21 2017 20:44:00 by doxygen 1.8.5 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2017 The KDE developers.
Generated on Thu Dec 21 2017 20:44:00 by doxygen 1.8.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.