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;
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
bool isMultiDay(const KDateTime::Spec &spec=KDateTime::Spec()) const
Returns true if the event spans multiple days, otherwise return false.
Definition event.cpp:198
virtual void setDtStart(const KDateTime &dt)
Sets the incidence starting date/time.
Definition event.cpp:132
virtual void shiftTimes(const KDateTime::Spec &oldSpec, const KDateTime::Spec &newSpec)
Definition event.cpp:233
QLatin1String iconName(const KDateTime &recurrenceId=KDateTime()) const
Definition event.cpp:353
void setDateTime(const KDateTime &dateTime, DateTimeRole role)
Definition event.cpp:310
void setTransparency(Transparency transparency)
Sets the event's time transparency level.
Definition event.cpp:243
Transparency transparency() const
Returns the event's time transparency level.
Definition event.cpp:254
KCALCORE_DEPRECATED void setHasEndDate(bool b)
Sets whether the event has an end date/time.
Definition event.cpp:187
static QLatin1String eventMimeType()
Returns the Akonadi specific sub MIME type of a KCalCore::Event.
Definition event.cpp:348
virtual IncidenceBase & assign(const IncidenceBase &other)
Definition event.cpp:97
virtual bool equals(const IncidenceBase &event) const
Compares two events for equality.
Definition event.cpp:107
An abstract class that provides a common base for all calendar incidence classes.
Definition incidencebase.h:110
void updated()
Call this to notify the observers after the IncidenceBase object has changed.
Definition incidencebase.cpp:604
bool allDay() const
Returns true or false depending on whether the incidence is all-day.
Definition incidencebase.cpp:326
Duration duration() const
Returns the length of the incidence duration.
Definition incidencebase.cpp:555
virtual KDateTime dtStart() const
Returns an incidence's starting date/time as a KDateTime.
Definition incidencebase.cpp:321
void update()
Call this to notify the observers after the IncidenceBase object will be changed.
Definition incidencebase.cpp:593
QSharedPointer< IncidenceBase > Ptr
A shared pointer to an IncidenceBase.
Definition incidencebase.h:115
virtual void setDuration(const Duration &duration)
Sets the incidence duration.
Definition incidencebase.cpp:546
void setHasDuration(bool hasDuration)
Sets if the incidence has a duration.
Definition incidencebase.cpp:560
void setFieldDirty(IncidenceBase::Field field)
Marks Field field as dirty.
Definition incidencebase.cpp:657
@ RoleAlarmEndOffset
Role for an incidence alarm's ending offset date/time.
Definition incidencebase.h:135
@ RoleDisplayEnd
Role used for display purposes, represents the end boundary if an incidence supports dtEnd.
Definition incidencebase.h:143
@ RoleRecurrenceStart
Role for determining the start of the recurrence.
Definition incidencebase.h:147
@ RoleAlarmStartOffset
Role for an incidence alarm's starting offset date/time.
Definition incidencebase.h:134
@ RoleStartTimeZone
Role for determining an incidence's starting timezone.
Definition incidencebase.h:138
@ RoleDisplayStart
Role for display purposes, represents the start boundary of an incidence.
Definition incidencebase.h:152
@ RoleEnd
Role for determining an incidence's dtEnd, will return an invalid KDateTime if the incidence does not...
Definition incidencebase.h:141
bool hasDuration() const
Returns true if the incidence has a duration; false otherwise.
Definition incidencebase.cpp:565
Provides the abstract base class common to non-FreeBusy (Events, To-dos, Journals) calendar component...
Definition incidence.h:70
virtual IncidenceBase & assign(const IncidenceBase &other)
Provides polymorfic assignment.
Definition incidence.cpp:218
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
virtual bool equals(const IncidenceBase &incidence) const
Compares this with Incidence incidence for equality.
Definition incidence.cpp:231
virtual void setDtStart(const KDateTime &dt)
Sets the incidence starting date/time.
Definition incidence.cpp:393
This class provides the interface for a visitor of calendar components.
Definition visitor.h:44
This file is part of the API for handling calendar data and defines the Event class.
static uint qHash(const KDateTime &dt)
Private class that helps to provide binary compatibility between releases.
Definition occurrenceiterator.cpp:157
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.