KCalendarCore
freebusy.cpp
Go to the documentation of this file.
95 void 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)))) {
399 QDataStream &KCalendarCore::operator<<(QDataStream &stream, const KCalendarCore::FreeBusy::Ptr &freebusy)
406 QDataStream &KCalendarCore::operator>>(QDataStream &stream, KCalendarCore::FreeBusy::Ptr &freebusy)
QLatin1String mimeType() const override
Definition: freebusy.cpp:389
static QLatin1String freeBusyMimeType()
Returns the Akonadi specific sub MIME type of a KCalendarCore::FreeBusy.
Definition: freebusy.cpp:394
void merge(const FreeBusy::Ptr &freebusy)
Merges another free/busy into this free/busy.
Definition: freebusy.cpp:274
KCALENDARCORE_EXPORT QDataStream & operator<<(QDataStream &out, const KCalendarCore::Alarm::Ptr &)
Alarm serializer.
Definition: alarm.cpp:820
Represents a span of time measured in seconds or days.
Definition: duration.h:43
void setDtEnd(const QDateTime &end)
Sets the end datetime for the free/busy.
Definition: freebusy.cpp:203
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
QVector::iterator begin()
QCA_EXPORT void init()
int count(const T &value) const const
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:37
virtual void setDtStart(const QDateTime &dtStart)
Sets the incidence's starting date/time with a QDateTime.
Definition: incidencebase.cpp:262
bool equals(const IncidenceBase &freebusy) const override
Compare this with freebusy for equality.
Definition: freebusy.cpp:320
void setDtStart(const QDateTime &start) override
Sets the start date/time for the free/busy.
Definition: freebusy.cpp:198
void update()
Call this to notify the observers after the IncidenceBase object will be changed.
Definition: incidencebase.cpp:523
KCALENDARCORE_EXPORT bool identical(QDateTime, QDateTime)
Compare two QDateTimes for extended equality.
Definition: incidencebase.cpp:618
virtual IncidenceBase & assign(const IncidenceBase &other)
Provides polymorfic assignment.
Definition: incidencebase.cpp:108
KCALENDARCORE_EXPORT QDataStream & operator>>(QDataStream &in, const KCalendarCore::Alarm::Ptr &)
Alarm deserializer.
Definition: alarm.cpp:833
IncidenceBase & assign(const IncidenceBase &other) override
Definition: freebusy.cpp:309
FreeBusyPeriod::List fullBusyPeriods() const
Returns the list of all periods within the free/busy.
Definition: freebusy.cpp:231
FreeBusy::Ptr parseFreeBusy(const QString &string)
Converts a QString into a FreeBusy object.
Definition: icalformat.cpp:475
void addPeriod(const QDateTime &start, const QDateTime &end)
Adds a period to the freebusy list and sorts the list.
Definition: freebusy.cpp:260
QString createScheduleMessage(const IncidenceBase::Ptr &incidence, iTIPMethod method)
Creates a scheduling message string for an Incidence.
Definition: icalformat.cpp:429
void setDateTime(const QDateTime &dateTime, DateTimeRole role) override
Definition: freebusy.cpp:344
void setDate(const QDate &date)
void sortList()
Sorts the list of free/busy periods into ascending order.
Definition: freebusy.cpp:237
An abstract class that provides a common base for all calendar incidence classes.
Definition: incidencebase.h:98
Q_SCRIPTABLE Q_NOREPLY void start()
void updated()
Call this to notify the observers after the IncidenceBase object has changed.
Definition: incidencebase.cpp:534
qint64 secsTo(const QDateTime &other) const const
Provides information about the free/busy time of a calendar.
Definition: freebusy.h:42
QDateTime dateTime(DateTimeRole role) const override
Definition: freebusy.cpp:337
bool isValid() const const
AKONADI_CALENDAR_EXPORT KCalendarCore::Event::Ptr event(const Akonadi::Item &item)
QDate addDays(qint64 ndays) const const
This class provides the interface for a visitor of calendar components.
Definition: visitor.h:30
void reserve(int size)
QVector::iterator end()
Period::List busyPeriods() const
Returns the list of all periods within the free/busy.
Definition: freebusy.cpp:218
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:301
int count(const T &value) const const
void virtual_hook(VirtualHook id, void *data) override
Definition: freebusy.cpp:350
virtual bool equals(const IncidenceBase &incidenceBase) const
Provides polymorfic comparison for equality.
Definition: incidencebase.cpp:133
QString toString(Qt::DateFormat format) const const
void shiftTimes(const QTimeZone &oldZone, const QTimeZone &newZone) override
Definition: freebusy.cpp:293
void setFieldDirty(IncidenceBase::Field field)
Marks Field field as dirty.
Definition: incidencebase.cpp:587
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:33
Duration duration() const
Returns the length of the incidence duration.
Definition: incidencebase.cpp:483
void setTime(const QTime &time)
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
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Sep 28 2023 03:53:12 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Sep 28 2023 03:53:12 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.