Changeset View
Changeset View
Standalone View
Standalone View
src/occurrenceiterator.h
Show All 26 Lines | |||||
27 | */ | 27 | */ | ||
28 | 28 | | |||
29 | #ifndef KCALCORE_OCCURRENCEITERATOR_H | 29 | #ifndef KCALCORE_OCCURRENCEITERATOR_H | ||
30 | #define KCALCORE_OCCURRENCEITERATOR_H | 30 | #define KCALCORE_OCCURRENCEITERATOR_H | ||
31 | 31 | | |||
32 | #include "kcalcore_export.h" | 32 | #include "kcalcore_export.h" | ||
33 | #include "incidence.h" | 33 | #include "incidence.h" | ||
34 | 34 | | |||
35 | namespace KCalCore | 35 | namespace KCalendarCore | ||
36 | { | 36 | { | ||
37 | 37 | | |||
38 | class Calendar; | 38 | class Calendar; | ||
39 | /** | 39 | /** | ||
40 | * Iterate over calendar items in a calendar. | 40 | * Iterate over calendar items in a calendar. | ||
41 | * | 41 | * | ||
42 | * The iterator takes recurrences and exceptions to recurrences into account | 42 | * The iterator takes recurrences and exceptions to recurrences into account | ||
43 | * | 43 | * | ||
Show All 11 Lines | 54 | explicit OccurrenceIterator(const Calendar &calendar, | |||
55 | const QDateTime &start = QDateTime(), | 55 | const QDateTime &start = QDateTime(), | ||
56 | const QDateTime &end = QDateTime()); | 56 | const QDateTime &end = QDateTime()); | ||
57 | 57 | | |||
58 | /** | 58 | /** | ||
59 | * Creates iterator that iterates over all occurrences | 59 | * Creates iterator that iterates over all occurrences | ||
60 | * of @param incidence between @param start and @param end (inclusive) | 60 | * of @param incidence between @param start and @param end (inclusive) | ||
61 | */ | 61 | */ | ||
62 | OccurrenceIterator(const Calendar &calendar, | 62 | OccurrenceIterator(const Calendar &calendar, | ||
63 | const KCalCore::Incidence::Ptr &incidence, | 63 | const KCalendarCore::Incidence::Ptr &incidence, | ||
64 | const QDateTime &start = QDateTime(), | 64 | const QDateTime &start = QDateTime(), | ||
65 | const QDateTime &end = QDateTime()); | 65 | const QDateTime &end = QDateTime()); | ||
66 | ~OccurrenceIterator(); | 66 | ~OccurrenceIterator(); | ||
67 | bool hasNext() const; | 67 | bool hasNext() const; | ||
68 | 68 | | |||
69 | /** | 69 | /** | ||
70 | * Advance iterator to the next occurrence. | 70 | * Advance iterator to the next occurrence. | ||
71 | */ | 71 | */ | ||
Show All 34 Lines |