KCalendarCore
freebusy.cpp
Go to the documentation of this file.
95void FreeBusyPrivate::init(const Event::List &eventList, const QDateTime &start, const QDateTime &end)
366 if (!(((start.secsTo(eventStart) >= 0) && (eventStart.secsTo(mDtEnd) >= 0)) || ((start.secsTo(eventEnd) >= 0) && (eventEnd.secsTo(mDtEnd) >= 0)))) {
399QDataStream &KCalendarCore::operator<<(QDataStream &stream, const KCalendarCore::FreeBusy::Ptr &freebusy)
406QDataStream &KCalendarCore::operator>>(QDataStream &stream, KCalendarCore::FreeBusy::Ptr &freebusy)
Represents a span of time measured in seconds or days.
Definition duration.h:44
The period can be defined by either a start time and an end time or by a start time and a duration.
Definition freebusyperiod.h:34
Provides information about the free/busy time of a calendar.
Definition freebusy.h:43
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
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
bool equals(const IncidenceBase &freebusy) const override
Compare this with freebusy for equality.
Definition freebusy.cpp:320
FreeBusy::Ptr parseFreeBusy(const QString &string)
Converts a QString into a FreeBusy object.
Definition icalformat.cpp:448
QString createScheduleMessage(const IncidenceBase::Ptr &incidence, iTIPMethod method)
Creates a scheduling message string for an Incidence.
Definition icalformat.cpp:402
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
virtual void setDtStart(const QDateTime &dtStart)
Sets the incidence's starting date/time with a QDateTime.
Definition incidencebase.cpp:246
virtual void shiftTimes(const QTimeZone &oldZone, const QTimeZone &newZone)
Shift the times of the incidence so that they appear at the same clock time as before but in a new ti...
Definition incidencebase.cpp:285
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 IncidenceBase & assign(const IncidenceBase &other)
Provides polymorfic assignment.
Definition incidencebase.cpp:92
void setFieldDirty(IncidenceBase::Field field)
Marks Field field as dirty.
Definition incidencebase.cpp:571
virtual bool equals(const IncidenceBase &incidenceBase) const
Provides polymorfic comparison for equality.
Definition incidencebase.cpp:117
The period can be defined by either a start time and an end time or by a start time and a duration.
Definition period.h:38
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 FreeBusy class.
Q_SCRIPTABLE Q_NOREPLY void start()
This file is part of the API for handling calendar data and defines the ICalFormat class.
AKONADI_CALENDAR_EXPORT KCalendarCore::Event::Ptr event(const Akonadi::Item &item)
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
KCALENDARCORE_EXPORT bool identical(const QDateTime &dt1, const QDateTime &dt2)
Compare two QDateTimes for extended equality.
Definition incidencebase.cpp:608
QCA_EXPORT void init()
QDate addDays(qint64 ndays) const const
qint64 secsTo(const QDateTime &other) const const
void setDate(QDate date)
void setTime(QTime time)
QString toString(QStringView format, QCalendar cal) const const
iterator begin()
qsizetype count() const const
iterator end()
void reserve(qsizetype size)
bool isValid() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:40 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:40 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.