KCalendarCore
duration.cpp
Go to the documentation of this file.
206QDataStream &KCalendarCore::operator<<(QDataStream &out, const KCalendarCore::Duration &duration)
Represents a span of time measured in seconds or days.
Definition duration.h:44
bool operator==(const Duration &other) const
Returns true if this duration is equal to the other.
Definition duration.cpp:128
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
Duration & operator=(const Duration &duration)
Sets this duration equal to duration.
Definition duration.cpp:103
bool isDaily() const
Returns whether the duration is specified in terms of days rather than seconds.
Definition duration.cpp:181
Type type() const
Returns the time units (seconds or days) used to specify the duration.
Definition duration.cpp:176
Duration & operator+=(const Duration &other)
Adds another duration to this one.
Definition duration.cpp:136
bool operator<(const Duration &other) const
Returns true if this duration is smaller than the other.
Definition duration.cpp:119
Duration & operator-=(const Duration &other)
Subtracts another duration from this one.
Definition duration.cpp:154
This file is part of the API for handling calendar data and defines the Duration class.
Q_SCRIPTABLE Q_NOREPLY void start()
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
QDateTime addDays(qint64 ndays) const const
QDateTime addSecs(qint64 s) const const
QTime time() const const
QTimeZone timeZone() const const
QDateTime toTimeZone(const QTimeZone &timeZone) 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.