Changeset View
Changeset View
Standalone View
Standalone View
src/recurrencerule.h
Show All 19 Lines | 1 | /* | |||
---|---|---|---|---|---|
20 | along with this library; see the file COPYING.LIB. If not, write to | 20 | along with this library; see the file COPYING.LIB. If not, write to | ||
21 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 21 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
22 | Boston, MA 02110-1301, USA. | 22 | Boston, MA 02110-1301, USA. | ||
23 | */ | 23 | */ | ||
24 | #ifndef KCALCORE_RECURRENCERULE_H | 24 | #ifndef KCALCORE_RECURRENCERULE_H | ||
25 | #define KCALCORE_RECURRENCERULE_H | 25 | #define KCALCORE_RECURRENCERULE_H | ||
26 | 26 | | |||
27 | #include "kcalcore_export.h" | 27 | #include "kcalcore_export.h" | ||
28 | #include "sortablelist.h" | | |||
29 | 28 | | |||
30 | #include <QDateTime> | 29 | #include <QDateTime> | ||
31 | #include <QTimeZone> | 30 | #include <QTimeZone> | ||
32 | 31 | | |||
33 | class QTimeZone; | 32 | class QTimeZone; | ||
34 | 33 | | |||
35 | namespace KCalCore { | 34 | namespace KCalCore { | ||
36 | // These two are duplicates wrt. incidencebase.h | 35 | // These two are duplicates wrt. incidencebase.h | ||
37 | typedef SortableList<QDate> DateList; | 36 | typedef QList<QDate> DateList; | ||
38 | /* List of times */ | 37 | /* List of times */ | ||
39 | typedef SortableList<QTime> TimeList; | 38 | typedef QList<QTime> TimeList; | ||
40 | 39 | | |||
41 | /** | 40 | /** | ||
42 | This class represents a recurrence rule for a calendar incidence. | 41 | This class represents a recurrence rule for a calendar incidence. | ||
43 | */ | 42 | */ | ||
44 | class KCALCORE_EXPORT RecurrenceRule | 43 | class KCALCORE_EXPORT RecurrenceRule | ||
45 | { | 44 | { | ||
46 | public: | 45 | public: | ||
47 | class RuleObserver | 46 | class RuleObserver | ||
▲ Show 20 Lines • Show All 193 Lines • ▼ Show 20 Line(s) | |||||
241 | * There is a (large) maximum limit to the number of times returned. If due to | 240 | * There is a (large) maximum limit to the number of times returned. If due to | ||
242 | * this limit the list is incomplete, this is indicated by the last entry being | 241 | * this limit the list is incomplete, this is indicated by the last entry being | ||
243 | * set to an invalid QDateTime value. If you need further values, call the | 242 | * set to an invalid QDateTime value. If you need further values, call the | ||
244 | * method again with a start time set to just after the last valid time returned. | 243 | * method again with a start time set to just after the last valid time returned. | ||
245 | * @param start inclusive start of interval | 244 | * @param start inclusive start of interval | ||
246 | * @param end inclusive end of interval | 245 | * @param end inclusive end of interval | ||
247 | * @return list of date/time values | 246 | * @return list of date/time values | ||
248 | */ | 247 | */ | ||
249 | Q_REQUIRED_RESULT SortableList<QDateTime> timesInInterval(const QDateTime &start, const QDateTime &end) const; | 248 | Q_REQUIRED_RESULT QList<QDateTime> timesInInterval(const QDateTime &start, const QDateTime &end) const; | ||
250 | 249 | | |||
251 | /** Returns the date and time of the next recurrence, after the specified date/time. | 250 | /** Returns the date and time of the next recurrence, after the specified date/time. | ||
252 | * If the recurrence has no time, the next date after the specified date is returned. | 251 | * If the recurrence has no time, the next date after the specified date is returned. | ||
253 | * @param preDateTime the date/time after which to find the recurrence. | 252 | * @param preDateTime the date/time after which to find the recurrence. | ||
254 | * @return date/time of next recurrence, or invalid date if none. | 253 | * @return date/time of next recurrence, or invalid date if none. | ||
255 | */ | 254 | */ | ||
256 | Q_REQUIRED_RESULT QDateTime getNextDate(const QDateTime &preDateTime) const; | 255 | Q_REQUIRED_RESULT QDateTime getNextDate(const QDateTime &preDateTime) const; | ||
257 | 256 | | |||
▲ Show 20 Lines • Show All 93 Lines • Show Last 20 Lines |