KAlarm Library
23 #ifndef KALARM_REPETITION_H
24 #define KALARM_REPETITION_H
26 #include "kalarmcal_export.h"
27 #ifndef KALARMCAL_USE_KRESOURCES
30 #include <kcal/duration.h>
55 #ifndef KALARMCAL_USE_KRESOURCES
64 Repetition(
const KCal::Duration& interval,
int count);
73 #ifndef KALARMCAL_USE_KRESOURCES
78 void set(
const KCal::Duration& interval,
int count);
81 #ifndef KALARMCAL_USE_KRESOURCES
92 void set(
const KCal::Duration& interval);
98 operator bool()
const;
106 bool operator!=(
const Repetition& r)
const {
return !operator==(r); }
111 #ifndef KALARMCAL_USE_KRESOURCES
124 KCal::Duration interval()
const;
127 KCal::Duration duration()
const;
132 KCal::Duration duration(
int count)
const;
136 bool isDaily()
const;
141 int intervalDays()
const;
146 int intervalMinutes()
const;
149 int intervalSeconds()
const;
155 int nextRepeatCount(
const KDateTime& from,
const KDateTime& preDateTime)
const;
161 int previousRepeatCount(
const KDateTime& from,
const KDateTime& afterDateTime)
const;
172 #endif // KALARM_REPETITION_H
Represents a sub-repetition, defined by interval and repeat count.
bool operator!() const
Returns whether no repetition is defined.
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:01:14 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.