KCalendarCore
period.cpp
Go to the documentation of this file.
Represents a span of time measured in seconds or days.
Definition duration.h:44
bool isDaily() const
Returns whether the duration is specified in terms of days rather than seconds.
Definition duration.cpp:181
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
bool operator==(const Period &other) const
Returns true if this period is equal to the other one.
Definition period.cpp:83
bool operator<(const Period &other) const
Returns true if the start of this period is earlier than the start of the other one.
Definition period.cpp:78
bool hasDuration() const
Returns true if this period has a set duration, false if it just has a start and an end.
Definition period.cpp:129
Period & operator=(const Period &other)
Sets this period equal to the other one.
Definition period.cpp:89
void shiftTimes(const QTimeZone &oldZone, const QTimeZone &newZone)
Shift the times of the period so that they appear at the same clock time as before but in a new time ...
Definition period.cpp:134
Q_SCRIPTABLE Q_NOREPLY void start()
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
KCALENDARCORE_EXPORT bool identical(const QDateTime &dt1, const QDateTime &dt2)
Compare two QDateTimes for extended equality.
Definition incidencebase.cpp:608
const QList< QKeySequence > & end()
This file is part of the API for handling calendar data and defines the Period class.
bool isValid() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:01:23 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:01:23 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.