KCalendarCore
event.cpp
Go to the documentation of this file.
350 out << hasEndDate() << static_cast<quint32>(d->mTransparency) << d->mMultiDayValid << d->mMultiDay;
Represents a span of time measured in seconds or days.
Definition duration.h:44
QDateTime end(const QDateTime &start) const
Computes a duration end time by adding the number of seconds or days in the duration to the specified...
Definition duration.cpp:171
QLatin1String iconName(const QDateTime &recurrenceId={}) const override
Definition event.cpp:340
void virtual_hook(VirtualHook id, void *data) override
Definition event.cpp:324
void setTransparency(Transparency transparency)
Sets the event's time transparency level.
Definition event.cpp:236
bool isMultiDay(const QTimeZone &zone={}) const
Returns true if the event spans multiple days, otherwise return false.
Definition event.cpp:184
void setDuration(const Duration &duration) override
Sets the duration of this event.
Definition event.cpp:254
bool supportsGroupwareCommunication() const override
Definition event.cpp:366
QDateTime dateTime(DateTimeRole role) const override
Definition event.cpp:276
IncidenceBase & assign(const IncidenceBase &other) override
Definition event.cpp:87
void setDateTime(const QDateTime &dateTime, DateTimeRole role) override
Definition event.cpp:306
static QLatin1String eventMimeType()
Returns the Akonadi specific sub MIME type of a KCalendarCore::Event.
Definition event.cpp:335
void setDtStart(const QDateTime &dt) override
Sets the incidence starting date/time.
Definition event.cpp:122
void shiftTimes(const QTimeZone &oldZone, const QTimeZone &newZone) override
Definition event.cpp:223
bool equals(const IncidenceBase &event) const override
Compares two events for equality.
Definition event.cpp:101
An abstract class that provides a common base for all calendar incidence classes.
Definition incidencebase.h:99
void updated()
Call this to notify the observers after the IncidenceBase object has changed.
Definition incidencebase.cpp:518
Duration duration() const
Returns the length of the incidence duration.
Definition incidencebase.cpp:467
void update()
Call this to notify the observers after the IncidenceBase object will be changed.
Definition incidencebase.cpp:507
virtual void setDuration(const Duration &duration)
Sets the incidence duration.
Definition incidencebase.cpp:458
void setHasDuration(bool hasDuration)
Sets if the incidence has a duration.
Definition incidencebase.cpp:472
void setFieldDirty(IncidenceBase::Field field)
Marks Field field as dirty.
Definition incidencebase.cpp:571
@ RoleAlarmStartOffset
Role for an incidence alarm's starting offset date/time.
Definition incidencebase.h:132
@ RoleDisplayEnd
Role used for display purposes, represents the end boundary if an incidence supports dtEnd.
Definition incidencebase.h:141
@ RoleAlarmEndOffset
Role for an incidence alarm's ending offset date/time.
Definition incidencebase.h:133
@ RoleStartTimeZone
Role for determining an incidence's starting timezone.
Definition incidencebase.h:136
@ RoleEnd
Role for determining an incidence's dtEnd, will return an invalid QDateTime if the incidence does not...
Definition incidencebase.h:139
@ RoleRecurrenceStart
Role for determining the start of the recurrence.
Definition incidencebase.h:145
@ RoleDisplayStart
Role for display purposes, represents the start boundary of an incidence.
Definition incidencebase.h:150
bool hasDuration() const
Returns true if the incidence has a duration; false otherwise.
Definition incidencebase.cpp:477
Provides the abstract base class common to non-FreeBusy (Events, To-dos, Journals) calendar component...
Definition incidence.h:60
void setAllDay(bool allDay) override
Sets whether the incidence is all-day, i.e.
Definition incidence.cpp:305
void serialize(QDataStream &out) const override
Sub-type specific serialization.
Definition incidence.cpp:1179
void shiftTimes(const QTimeZone &oldZone, const QTimeZone &newZone) override
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:367
IncidenceBase & assign(const IncidenceBase &other) override
Provides polymorfic assignment.
Definition incidence.cpp:166
bool equals(const IncidenceBase &incidence) const override
Compares this with Incidence incidence for equality.
Definition incidence.cpp:180
void setDtStart(const QDateTime &dt) override
Sets the incidence starting date/time.
Definition incidence.cpp:358
void deserialize(QDataStream &in) override
Sub-type specific deserialization.
Definition incidence.cpp:1207
This class provides the interface for a visitor of calendar components.
Definition visitor.h:31
virtual bool visit(const Event::Ptr &event)
Reimplement this function in your concrete subclass of IncidenceBase::Visitor to perform actions on a...
Definition visitor.cpp:25
This file is part of the API for handling calendar data and defines the Event class.
Q_SCRIPTABLE CaptureState status()
Q_SCRIPTABLE Q_NOREPLY void start()
KCALENDARCORE_EXPORT bool identical(const QDateTime &dt1, const QDateTime &dt2)
Compare two QDateTimes for extended equality.
Definition incidencebase.cpp:608
QDateTime addSecs(qint64 s) const const
bool isValid() const const
qint64 secsTo(const QDateTime &other) const const
QDateTime toTimeZone(const QTimeZone &timeZone) const const
const_reference at(qsizetype i) const const
bool isValid() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:57:05 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:57:05 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.