KCalendarCore
freebusy.h
Go to the documentation of this file.
44 friend KCALENDARCORE_EXPORT QDataStream &operator<<(QDataStream &s, const KCalendarCore::FreeBusy::Ptr &freebusy);
45 friend KCALENDARCORE_EXPORT QDataStream &operator>>(QDataStream &s, KCalendarCore::FreeBusy::Ptr &freebusy);
266KCALENDARCORE_EXPORT QDataStream &operator<<(QDataStream &stream, const KCalendarCore::FreeBusy::Ptr &freebusy);
270KCALENDARCORE_EXPORT QDataStream &operator>>(QDataStream &stream, KCalendarCore::FreeBusy::Ptr &freebusy);
Represents a span of time measured in seconds or days.
Definition duration.h:44
void addPeriod(const QDateTime &start, const QDateTime &end)
Adds a period to the freebusy list and sorts the list.
Definition freebusy.cpp:260
void setDateTime(const QDateTime &dateTime, DateTimeRole role) override
Definition freebusy.cpp:344
Period::List busyPeriods() const
Returns the list of all periods within the free/busy.
Definition freebusy.cpp:218
friend KCALENDARCORE_EXPORT QDataStream & operator<<(QDataStream &s, const KCalendarCore::FreeBusy::Ptr &freebusy)
Serializes the freebusy object into the stream.
void setDtEnd(const QDateTime &end)
Sets the end datetime for the free/busy.
Definition freebusy.cpp:203
static QLatin1String freeBusyMimeType()
Returns the Akonadi specific sub MIME type of a KCalendarCore::FreeBusy.
Definition freebusy.cpp:394
FreeBusyPeriod::List fullBusyPeriods() const
Returns the list of all periods within the free/busy.
Definition freebusy.cpp:231
void addPeriods(const Period::List &list)
Adds a list of periods to the freebusy object and then sorts that list.
Definition freebusy.cpp:243
virtual QDateTime dtEnd() const
Returns the end datetime for the free/busy.
Definition freebusy.cpp:212
void shiftTimes(const QTimeZone &oldZone, const QTimeZone &newZone) override
Definition freebusy.cpp:293
void merge(const FreeBusy::Ptr &freebusy)
Merges another free/busy into this free/busy.
Definition freebusy.cpp:274
QDateTime dateTime(DateTimeRole role) const override
Definition freebusy.cpp:337
IncidenceBase & assign(const IncidenceBase &other) override
Definition freebusy.cpp:309
void setDtStart(const QDateTime &start) override
Sets the start date/time for the free/busy.
Definition freebusy.cpp:198
void virtual_hook(VirtualHook id, void *data) override
Definition freebusy.cpp:350
friend KCALENDARCORE_EXPORT QDataStream & operator>>(QDataStream &s, KCalendarCore::FreeBusy::Ptr &freebusy)
Initializes the freebusy object from the stream.
bool equals(const IncidenceBase &freebusy) const override
Compare this with freebusy for equality.
Definition freebusy.cpp:320
Duration duration() const
Returns the length of the incidence duration.
Definition incidencebase.cpp:467
QSharedPointer< IncidenceBase > Ptr
A shared pointer to an IncidenceBase.
Definition incidencebase.h:113
This class provides the interface for a visitor of calendar components.
Definition visitor.h:31
This file is part of the API for handling calendar data and defines the Event class.
This file is part of the API for handling calendar data and defines the Period class.
Q_SCRIPTABLE QString start(QString train="")
This file is part of the API for handling calendar data and defines the IncidenceBase class.
KCALENDARCORE_EXPORT QDataStream & operator>>(QDataStream &in, const KCalendarCore::Alarm::Ptr &)
Alarm deserializer.
Definition alarm.cpp:833
KCALENDARCORE_EXPORT QDataStream & operator<<(QDataStream &out, const KCalendarCore::Alarm::Ptr &)
Alarm serializer.
Definition alarm.cpp:820
This file is part of the API for handling calendar data and defines the Period class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:53:53 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:53:53 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.