KCalendarCore
freebusy.cpp
Go to the documentation of this file.
100 void FreeBusy::Private::init(const Event::List &eventList, const QDateTime &start, const QDateTime &end)
352 bool FreeBusy::Private::addLocalPeriod(FreeBusy *fb, const QDateTime &eventStart, const QDateTime &eventEnd)
360 if (!(((start.secsTo(eventStart) >= 0) && (eventStart.secsTo(mDtEnd) >= 0)) || ((start.secsTo(eventEnd) >= 0) && (eventEnd.secsTo(mDtEnd) >= 0)))) {
393 QDataStream &KCalendarCore::operator<<(QDataStream &stream, const KCalendarCore::FreeBusy::Ptr &freebusy)
400 QDataStream &KCalendarCore::operator>>(QDataStream &stream, KCalendarCore::FreeBusy::Ptr &freebusy)
KCALENDARCORE_EXPORT QDataStream & operator<<(QDataStream &out, const KCalendarCore::Alarm::Ptr &)
Alarm serializer.
Definition: alarm.cpp:821
QString toString(Qt::DateFormat format) const const
Period::List busyPeriods() const
Returns the list of all periods within the free/busy.
Definition: freebusy.cpp:225
QDateTime toUTC() const const
virtual IncidenceBase & assign(const IncidenceBase &other)
Provides polymorfic assignment.
Definition: incidencebase.cpp:140
This class provides the interface for a visitor of calendar components.
Definition: visitor.h:30
qint64 daysTo(const QDateTime &other) const const
bool equals(const IncidenceBase &freebusy) const override
Compare this with freebusy for equality.
Definition: freebusy.cpp:315
QLatin1String mimeType() const override
Definition: freebusy.cpp:383
QVector::const_iterator constEnd() const const
KCALENDARCORE_EXPORT QDataStream & operator>>(QDataStream &in, const KCalendarCore::Alarm::Ptr &)
Alarm deserializer.
Definition: alarm.cpp:834
void setTime(const QTime &time)
Provides information about the free/busy time of a calendar.
Definition: freebusy.h:39
virtual bool equals(const IncidenceBase &incidenceBase) const
Provides polymorfic comparison for equality.
Definition: incidencebase.cpp:165
typedef ConstIterator
An abstract class that provides a common base for all calendar incidence classes. ...
Definition: incidencebase.h:97
Represents a span of time measured in seconds or days.
Definition: duration.h:43
virtual QDateTime dtEnd() const
Returns the end datetime for the free/busy.
Definition: freebusy.cpp:220
virtual void setDtStart(const QDateTime &dtStart)
Sets the incidence's starting date/time with a QDateTime.
Definition: incidencebase.cpp:289
Duration duration() const
Returns the length of the incidence duration.
Definition: incidencebase.cpp:523
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 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:328
QString createScheduleMessage(const IncidenceBase::Ptr &incidence, iTIPMethod method)
Creates a scheduling message string for an Incidence.
Definition: icalformat.cpp:396
FreeBusy::Ptr parseFreeBusy(const QString &string)
Converts a QString into a FreeBusy object.
Definition: icalformat.cpp:441
void sortList()
Sorts the list of free/busy periods into ascending order.
Definition: freebusy.cpp:242
void setDate(const QDate &date)
This file is part of the API for handling calendar data and defines the FreeBusy class.
void merge(const FreeBusy::Ptr &freebusy)
Merges another free/busy into this free/busy.
Definition: freebusy.cpp:274
void reserve(int size)
static QLatin1String freeBusyMimeType()
Returns the Akonadi specific sub MIME type of a KCalendarCore::FreeBusy.
Definition: freebusy.cpp:388
void updated()
Call this to notify the observers after the IncidenceBase object has changed.
Definition: incidencebase.cpp:572
QCA_EXPORT void init()
IncidenceBase & assign(const IncidenceBase &other) override
Definition: freebusy.cpp:305
void setDtEnd(const QDateTime &end)
Sets the end datetime for the free/busy.
Definition: freebusy.cpp:215
QVector::const_iterator constBegin() const const
QDate date() const const
Event, to-do, journal or freebusy posting.
Definition: schedulemessage.h:23
qint64 secsTo(const QDateTime &other) const const
int count(const T &value) const const
QDateTime dateTime(DateTimeRole role) const override
Definition: freebusy.cpp:331
bool isValid() const const
void addPeriods(const Period::List &list)
Adds a list of periods to the freebusy object and then sorts that list.
Definition: freebusy.cpp:247
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:29
void addPeriod(const QDateTime &start, const QDateTime &end)
Adds a period to the freebusy list and sorts the list.
Definition: freebusy.cpp:262
void setDtStart(const QDateTime &start) override
Sets the start date/time for the free/busy.
Definition: freebusy.cpp:209
QDate addDays(qint64 ndays) 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: freebusyperiod.h:33
virtual QDateTime dtStart() const
Returns an incidence's starting date/time as a QDateTime.
FreeBusyPeriod::List fullBusyPeriods() const
Returns the list of all periods within the free/busy.
Definition: freebusy.cpp:237
QDateTime addDays(qint64 ndays) const const
void shiftTimes(const QTimeZone &oldZone, const QTimeZone &newZone) override
Definition: freebusy.cpp:293
void setDateTime(const QDateTime &dateTime, DateTimeRole role) override
Definition: freebusy.cpp:338
void virtual_hook(VirtualHook id, void *data) override
Definition: freebusy.cpp:344
This file is part of the API for handling calendar data and defines the ICalFormat class...
QTimeZone timeZone() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Apr 14 2021 22:50:51 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Apr 14 2021 22:50:51 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.