KCalCore Library
event.cpp
Go to the documentation of this file.
361 out << d->mDtEnd << d->mHasEndDate << static_cast<quint32>(d->mTransparency) << d->mMultiDayValid << d->mMultiDay;
virtual bool equals(const IncidenceBase &incidence) const
Compares this with Incidence incidence for equality.
Definition: incidence.cpp:231
virtual void shiftTimes(const KDateTime::Spec &oldSpec, const KDateTime::Spec &newSpec)
Definition: event.cpp:233
Duration duration() const
Returns the length of the incidence duration.
Definition: incidencebase.cpp:555
Role for looking up an incidence in a Calendar.
Definition: incidencebase.h:137
virtual bool equals(const IncidenceBase &event) const
Compares two events for equality.
Definition: event.cpp:107
Role for determining the date/time of the first alarm.
Definition: incidencebase.h:145
Field representing the DTSTART component.
Definition: incidencebase.h:162
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
bool isMultiDay(const KDateTime::Spec &spec=KDateTime::Spec()) const
Returns true if the event spans multiple days, otherwise return false.
Definition: event.cpp:198
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
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()
virtual IncidenceBase & assign(const IncidenceBase &other)
Definition: event.cpp:97
bool hasDuration() const
Returns true if the incidence has a duration; false otherwise.
Definition: incidencebase.cpp:565
void setHasDuration(bool hasDuration)
Sets if the incidence has a duration.
Definition: incidencebase.cpp:560
Role for determining new start and end dates after a DnD.
Definition: incidencebase.h:154
KDateTime end(const KDateTime &start) const
Computes a duration end time by adding the number of seconds or days in the duration to the specified...
Definition: duration.cpp:184
Role used for display purposes, represents the end boundary if an incidence supports dtEnd...
Definition: incidencebase.h:143
virtual void setDuration(const Duration &duration)
Sets the incidence duration.
Definition: incidencebase.cpp:546
virtual void setDtStart(const KDateTime &dt)
Sets the incidence starting date/time.
Definition: event.cpp:132
void updated()
Call this to notify the observers after the IncidenceBase object has changed.
Definition: incidencebase.cpp:604
virtual void setDtStart(const KDateTime &dt)
Sets the incidence starting date/time.
Definition: incidence.cpp:393
bool allDay() const
Returns true or false depending on whether the incidence is all-day.
Definition: incidencebase.cpp:326
void setTransparency(Transparency transparency)
Sets the event's time transparency level.
Definition: event.cpp:243
void setFieldDirty(IncidenceBase::Field field)
Marks Field field as dirty.
Definition: incidencebase.cpp:657
Role for an incidence's date/time used when sorting.
Definition: incidencebase.h:136
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
KCALCORE_DEPRECATED void setHasEndDate(bool b)
Sets whether the event has an end date/time.
Definition: event.cpp:187
QLatin1String iconName(const KDateTime &recurrenceId=KDateTime()) const
Definition: event.cpp:353
Role for an incidence alarm's ending offset date/time.
Definition: incidencebase.h:135
static QLatin1String eventMimeType()
Returns the Akonadi specific sub MIME type of a KCalCore::Event.
Definition: event.cpp:348
virtual IncidenceBase & assign(const IncidenceBase &other)
Provides polymorfic assignment.
Definition: incidence.cpp:218
Role for determining an incidence's starting timezone.
Definition: incidencebase.h:138
This file is part of the API for handling calendar data and defines the Event class.
Transparency transparency() const
Returns the event's time transparency level.
Definition: event.cpp:254
Role for an incidence alarm's starting offset date/time.
Definition: incidencebase.h:134
Field representing the STATUS component.
Definition: incidencebase.h:176
void setDateTime(const KDateTime &dateTime, DateTimeRole role)
Definition: event.cpp:310
void setDuration(const Duration &duration)
Sets the duration of this event.
Definition: event.cpp:259
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
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.