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 );
74 void setPos(
int ps );
91 bool operator!=(
const RecurrenceRule &r )
const {
return !operator==(r); }
95 void setReadOnly(
bool readOnly );
100 bool isReadOnly()
const;
107 void setRecurrenceType( PeriodType period );
108 PeriodType recurrenceType()
const;
116 uint frequency()
const;
121 void setFrequency(
int freq );
128 KDateTime startDt()
const;
141 void setStartDt(
const KDateTime &start );
151 void setAllDay(
bool allDay );
158 KDateTime endDt(
bool *result = 0 )
const;
162 void setEndDt(
const KDateTime &endDateTime );
168 int duration()
const;
172 void setDuration(
int duration );
175 int durationTo(
const KDateTime &dt )
const;
178 int durationTo(
const QDate &date )
const;
194 void shiftTimes(
const KDateTime::Spec &oldSpec,
const KDateTime::Spec &newSpec );
202 bool recursOn(
const QDate &date,
const KDateTime::Spec &timeSpec )
const;
210 bool recursAt(
const KDateTime &dt )
const;
219 bool dateMatchesRules(
const KDateTime &dt )
const;
227 TimeList recurTimesOn(
const QDate &date,
const KDateTime::Spec &timeSpec )
const;
240 DateTimeList timesInInterval(
const KDateTime &start,
const KDateTime &end )
const;
247 KDateTime getNextDate(
const KDateTime &preDateTime )
const;
255 KDateTime getPreviousDate(
const KDateTime &afterDateTime )
const;
257 void setBySeconds(
const QList<int> &bySeconds );
258 void setByMinutes(
const QList<int> &byMinutes );
259 void setByHours(
const QList<int> &byHours );
261 void setByDays(
const QList<WDayPos> &byDays );
262 void setByMonthDays(
const QList<int> &byMonthDays );
263 void setByYearDays(
const QList<int> &byYearDays );
264 void setByWeekNumbers(
const QList<int> &byWeekNumbers );
265 void setByMonths(
const QList<int> &byMonths );
266 void setBySetPos(
const QList<int> &bySetPos );
267 void setWeekStart(
short weekStart );
269 const QList<int> &bySeconds()
const;
270 const QList<int> &byMinutes()
const;
271 const QList<int> &byHours()
const;
273 const QList<WDayPos> &byDays()
const;
274 const QList<int> &byMonthDays()
const;
275 const QList<int> &byYearDays()
const;
276 const QList<int> &byWeekNumbers()
const;
277 const QList<int> &byMonths()
const;
278 const QList<int> &bySetPos()
const;
279 short weekStart()
const;
288 void setRRule(
const QString &rrule );
289 QString rrule()
const;
299 void addObserver( RuleObserver *observer );
307 void removeObserver( RuleObserver *observer );
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jul 13 2013 01:24:52 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.