KCal Library
   24 #ifndef KCAL_RECURRENCE_H 
   25 #define KCAL_RECURRENCE_H 
   27 #include "kcal_export.h" 
   28 #include "recurrencerule.h" 
   30 #include <kdatetime.h> 
   32 #include <QtCore/QString> 
   33 #include <QtCore/QBitArray> 
   34 #include <QtCore/QList> 
   91 class KCAL_DEPRECATED_EXPORT 
Recurrence : 
public RecurrenceRule::RuleObserver
 
   94     class RecurrenceObserver
 
   97         virtual ~RecurrenceObserver() {}
 
   99         virtual void recurrenceUpdated( 
Recurrence *r ) = 0;
 
  109       rMonthlyPos = 0x0005,
 
  110       rMonthlyDay = 0x0006,
 
  111       rYearlyMonth = 0x0007,
 
  158     KDateTime startDateTime() 
const;
 
  160     QDate startDate() 
const;
 
  166     void setStartDateTime( 
const KDateTime &start );
 
  178     void setAllDay( 
bool allDay );
 
  181     void setRecurReadOnly( 
bool readOnly );
 
  184     bool recurReadOnly() 
const;
 
  191     ushort recurrenceType() 
const;
 
  206     bool recursOn( 
const QDate &date, 
const KDateTime::Spec &timeSpec ) 
const;
 
  215     bool recursAt( 
const KDateTime &dt ) 
const;
 
  234     TimeList recurTimesOn( 
const QDate &date, 
const KDateTime::Spec &timeSpec ) 
const;
 
  248     DateTimeList timesInInterval( 
const KDateTime &start, 
const KDateTime &end ) 
const;
 
  256     KDateTime getNextDateTime( 
const KDateTime &preDateTime ) 
const;
 
  266     KDateTime getPreviousDateTime( 
const KDateTime &afterDateTime ) 
const;
 
  269     int frequency() 
const;
 
  272     void setFrequency( 
int freq );
 
  278     int duration() 
const;
 
  282     void setDuration( 
int duration );
 
  287     int durationTo( 
const KDateTime &dt ) 
const;
 
  292     int durationTo( 
const QDate &date ) 
const;
 
  297     KDateTime endDateTime() 
const;
 
  302     QDate endDate() 
const;
 
  307     void setEndDate( 
const QDate &endDate );
 
  311     void setEndDateTime( 
const KDateTime &endDateTime );
 
  327     void shiftTimes( 
const KDateTime::Spec &oldSpec, 
const KDateTime::Spec &newSpec );
 
  339     void setMinutely( 
int freq );
 
  354     void setHourly( 
int freq );
 
  369     void setDaily( 
int freq );
 
  382     void setWeekly( 
int freq, 
int weekStart = 1 );
 
  395     void setWeekly( 
int freq, 
const QBitArray &days, 
int weekStart = 1 );
 
  400     void addWeeklyDays( 
const QBitArray &days );
 
  406     int weekStart() 
const;
 
  409     QBitArray days() 
const; 
 
  425     void setMonthly( 
int freq );
 
  434     void addMonthlyPos( 
short pos, 
const QBitArray &days );
 
  435     void addMonthlyPos( 
short pos, ushort day );
 
  441     void addMonthlyDate( 
short day );
 
  444     QList<RecurrenceRule::WDayPos> monthPositions() 
const;
 
  448     QList<int> monthDays() 
const;
 
  472     void setYearly( 
int freq );
 
  480     void addYearlyDay( 
int day );
 
  490     void addYearlyDate( 
int date );
 
  497     void addYearlyMonth( 
short _rNum );
 
  515     void addYearlyPos( 
short pos, 
const QBitArray &days );
 
  522     QList<int> yearDays() 
const;
 
  531     QList<int> yearDates() 
const;
 
  541     QList<int> yearMonths() 
const;
 
  552     QList<RecurrenceRule::WDayPos> yearPositions() 
const;
 
  611     void setRDates( 
const DateList &rdates );
 
  612     void addRDateTime( 
const KDateTime &rdate );
 
  613     void addRDate( 
const QDate &rdate );
 
  619     void setExDates( 
const DateList &exdates );
 
  620     void addExDateTime( 
const KDateTime &exdate );
 
  621     void addExDate( 
const QDate &exdate );
 
  634     void addObserver( RecurrenceObserver *observer );
 
  641     void removeObserver( RecurrenceObserver *observer );
 
This class provides a template for lists of pointers. 
 
static const QDate MAX_DATE
Upper date limit for recurrences. 
 
bool operator!=(const Recurrence &r) const 
Comparison operator for inequality. 
 
A QList which can be sorted. 
 
PeriodType
enum for describing the frequency how an event recurs, if at all. 
 
This class represents a recurrence rule for a calendar incidence. 
 
This class represents a recurrence rule for a calendar incidence. 
 
  
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:58 by
doxygen 1.8.7 written
by 
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.