KCalCore Library
24 #ifndef KCALCORE_RECURRENCERULE_H
25 #define KCALCORE_RECURRENCERULE_H
27 #include "kcalcore_export.h"
30 #include <KDE/KDateTime>
36 typedef SortableList<QDate>
DateList;
38 typedef SortableList<QTime> TimeList;
49 virtual ~RuleObserver();
53 typedef QList<RecurrenceRule*> List;
71 explicit WDayPos(
int ps = 0,
short dy = 0);
72 void setDay(
short dy);
92 return !operator==(r);
97 void setReadOnly(
bool readOnly);
102 bool isReadOnly()
const;
109 void setRecurrenceType(PeriodType period);
110 PeriodType recurrenceType()
const;
118 uint frequency()
const;
123 void setFrequency(
int freq);
130 KDateTime startDt()
const;
144 void setStartDt(
const KDateTime &start);
154 void setAllDay(
bool allDay);
161 KDateTime endDt(
bool *result = 0)
const;
165 void setEndDt(
const KDateTime &endDateTime);
171 int duration()
const;
175 void setDuration(
int duration);
178 int durationTo(
const KDateTime &dt)
const;
181 int durationTo(
const QDate &date)
const;
197 void shiftTimes(
const KDateTime::Spec &oldSpec,
const KDateTime::Spec &newSpec);
205 bool recursOn(
const QDate &date,
const KDateTime::Spec &timeSpec)
const;
213 bool recursAt(
const KDateTime &dt)
const;
222 bool dateMatchesRules(
const KDateTime &dt)
const;
230 TimeList recurTimesOn(
const QDate &date,
const KDateTime::Spec &timeSpec)
const;
243 DateTimeList timesInInterval(
const KDateTime &start,
const KDateTime &end)
const;
250 KDateTime getNextDate(
const KDateTime &preDateTime)
const;
258 KDateTime getPreviousDate(
const KDateTime &afterDateTime)
const;
260 void setBySeconds(
const QList<int> &bySeconds);
261 void setByMinutes(
const QList<int> &byMinutes);
262 void setByHours(
const QList<int> &byHours);
264 void setByDays(
const QList<WDayPos> &byDays);
265 void setByMonthDays(
const QList<int> &byMonthDays);
266 void setByYearDays(
const QList<int> &byYearDays);
267 void setByWeekNumbers(
const QList<int> &byWeekNumbers);
268 void setByMonths(
const QList<int> &byMonths);
269 void setBySetPos(
const QList<int> &bySetPos);
270 void setWeekStart(
short weekStart);
272 const QList<int> &bySeconds()
const;
273 const QList<int> &byMinutes()
const;
274 const QList<int> &byHours()
const;
276 const QList<WDayPos> &byDays()
const;
277 const QList<int> &byMonthDays()
const;
278 const QList<int> &byYearDays()
const;
279 const QList<int> &byWeekNumbers()
const;
280 const QList<int> &byMonths()
const;
281 const QList<int> &bySetPos()
const;
282 short weekStart()
const;
291 void setRRule(
const QString &rrule);
292 QString rrule()
const;
302 void addObserver(RuleObserver *observer);
310 void removeObserver(RuleObserver *observer);
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Thu Jan 9 2014 17:48:40 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.