KAlarm Library
karecurrence.cpp
71 bool init(RecurrenceRule::PeriodType, int freq, int count, int feb29Type, const KDateTime& start, const KDateTime& end);
154 bool KARecurrence::set(Type t, int freq, int count, const KDateTime& start, const KDateTime& end)
159 bool KARecurrence::set(Type t, int freq, int count, const KDateTime& start, const KDateTime& end, Feb29Type f29)
164 bool KARecurrence::Private::set(Type recurType, int freq, int count, int f29, const KDateTime& start, const KDateTime& end)
207 bool KARecurrence::init(RecurrenceRule::PeriodType t, int freq, int count, const KDateTime& start, const KDateTime& end)
212 bool KARecurrence::init(RecurrenceRule::PeriodType t, int freq, int count, const KDateTime& start, const KDateTime& end, Feb29Type f29)
217 bool KARecurrence::Private::init(RecurrenceRule::PeriodType recurType, int freq, int count, int f29, const KDateTime& start,
686 if (mFeb29Type == Feb29_Feb28 && dt.date().month() == 2 && !QDate::isLeapYear(dt.date().year()))
917 int KARecurrence::Private::combineDurations(const RecurrenceRule* rrule1, const RecurrenceRule* rrule2, QDate& end) const
int daysTo(const QDate &d) const
void clear()
QList< KCalCore::RecurrenceRule::WDayPos > monthPositions() const
Returns list of day positions in months.
Definition: karecurrence.cpp:735
void setFrequency(int freq)
int durationTo(const KDateTime &dt) const
Returns the number of recurrences up to and including the date/time specified.
Definition: karecurrence.cpp:903
int frequency() const
Returns frequency of recurrence, in terms of the recurrence time period type.
Definition: karecurrence.cpp:883
void setDuration(int duration)
void setStartDateTime(const KDateTime &start)
KARecurrence & operator=(const KARecurrence &r)
Assignment operator.
Definition: karecurrence.cpp:120
void setDuration(int duration)
void setRecurReadOnly(bool readOnly)
Set if recurrence is read-only or can be changed.
Definition: karecurrence.cpp:715
void addWeeklyDays(const QBitArray &days)
Adds days to the weekly day recurrence list.
Definition: karecurrence.cpp:765
void setEndDateTime(const KDateTime &endDateTime)
Feb29Type
When annual February 29th recurrences should occur in non-leap years.
Definition: karecurrence.h:79
int month() const
KDateTime endDateTime() const
Return the date/time of the last recurrence.
Definition: karecurrence.cpp:621
KCalCore::DateTimeList timesInInterval(const KDateTime &start, const KDateTime &end) const
Returns a list of all the times at which the recurrence will occur between two specified times...
Definition: karecurrence.cpp:878
void writeRecurrence(KCalCore::Recurrence &) const
Initialise a KCalCore::Recurrence to be the same as this instance.
Definition: karecurrence.cpp:475
QList< int > yearDays() const
Returns the day numbers within a yearly recurrence.
Definition: karecurrence.cpp:745
int count(const T &value) const
KDateTime getPreviousDateTime(const KDateTime &afterDateTime) const
Get the previous time the recurrence occurred, strictly before a specified time.
Definition: karecurrence.cpp:827
KCalCore::Duration longestInterval() const
Return the longest interval between recurrences.
Definition: karecurrence.cpp:992
void append(const T &value)
bool recursAt(const KDateTime &dt) const
Returns true if the date/time specified is one at which the event will recur.
Definition: karecurrence.cpp:868
void setEndDt(const KDateTime &endDateTime)
QDate startDate() const
Return the start date/time of the recurrence.
Definition: karecurrence.cpp:606
bool setYMD(int y, int m, int d)
bool isEmpty() const
bool isEmpty() const
int removeAll(const T &value)
QList< int > monthDays() const
Returns list of day numbers of a month.
Definition: karecurrence.cpp:740
int day() const
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
void setDuration(int duration)
Sets the total number of times the event is to occur, including both the first and last...
Definition: karecurrence.cpp:898
int duration() const
Returns -1 if the event recurs infinitely, 0 if the end date is set, otherwise the total number of re...
Definition: karecurrence.cpp:893
int year() const
T & first()
KDateTime getNextDateTime(const KDateTime &preDateTime) const
Get the next time the recurrence occurs, strictly after a specified time.
Definition: karecurrence.cpp:808
uint frequency() const
KDateTime endDt(bool *result=0) const
KDateTime startDt() const
void clear()
bool recursOn(const QDate &date, const KDateTime::Spec &timeSpec) const
QList< KCalCore::RecurrenceRule::WDayPos > yearPositions() const
Returns the positions within a yearly recurrence.
Definition: karecurrence.cpp:760
static void setDefaultFeb29Type(Feb29Type t)
Set the default way that 29th February annual recurrences should occur in non-leap years...
Definition: karecurrence.cpp:143
void setEndDateTime(const KDateTime &endDateTime)
Sets the date and time of the last recurrence.
Definition: karecurrence.cpp:705
PeriodType
bool set(const QString &icalRRULE)
Initialise the recurrence from an iCalendar RRULE string.
Definition: karecurrence.cpp:275
bool isLeapYear(int year)
void unsetRecurs()
void addRRule(RecurrenceRule *rrule)
QString mid(int position, int n) const
QList< int > yearDates() const
Returns the dates within a yearly recurrence.
Definition: karecurrence.cpp:750
void setFrequency(int freq)
Sets the frequency of recurrence, in terms of the recurrence time period type.
Definition: karecurrence.cpp:888
void setEndDate(const QDate &endDate)
Sets the date of the last recurrence.
Definition: karecurrence.cpp:700
int durationTo(const KDateTime &dt) const
bool recurReadOnly() const
Returns true if the recurrence is read-only, or false if it can be changed.
Definition: karecurrence.cpp:720
KDateTime startDateTime() const
Return the start date/time of the recurrence (Time for all-day recurrences will be 0:00)...
Definition: karecurrence.cpp:601
KDateTime getNextDateTime(const KDateTime &preDateTime) const
bool init(KCalCore::RecurrenceRule::PeriodType t, int freq, int count, const KDateTime &start, const KDateTime &end)
Set up a KARecurrence from recurrence parameters.
Definition: karecurrence.cpp:207
int duration() const
int length() const
bool recursOn(const QDate &, const KDateTime::Spec &) const
Return whether the event will recur on the specified date.
Definition: karecurrence.cpp:847
void setAllDay(bool allDay)
KDateTime getPreviousDateTime(const KDateTime &afterDateTime) const
void addMonthlyPos(short pos, const QBitArray &days)
Adds a position (e.g.
Definition: karecurrence.cpp:790
KCalCore::TimeList recurTimesOn(const QDate &date, const KDateTime::Spec &timeSpec) const
Returns a list of the times on the specified date at which the recurrence will occur.
Definition: karecurrence.cpp:873
void addYearlyPos(short pos, const QBitArray &days)
Adds position within month/year within a yearly recurrence.
Definition: karecurrence.cpp:785
void addYearlyDay(int day)
Adds day number of year within a yearly recurrence.
Definition: karecurrence.cpp:770
QList< int > yearMonths() const
Returns the months within a yearly recurrence.
Definition: karecurrence.cpp:755
void setStartDt(const KDateTime &start)
bool fromString(const Calendar::Ptr &calendar, const QString &string, bool deleted=false, const QString ¬ebook=QString())
bool allDay() const
Set whether the recurrence has no time, just a date.
Definition: karecurrence.cpp:710
bool testBit(int i) const
Feb29Type feb29Type() const
Return when 29th February annual recurrences should occur in non-leap years.
Definition: karecurrence.cpp:133
static Feb29Type defaultFeb29Type()
Return the default way that 29th February annual recurrences should occur in non-leap years...
Definition: karecurrence.cpp:138
KARecurrence::Type recurType() const
Return the recurrence period type for the event.
Definition: kaevent.cpp:3201
bool operator==(const KARecurrence &r) const
Comparison operator for equality.
Definition: karecurrence.cpp:127
void setStartDateTime(const KDateTime &dt, bool dateOnly)
Set the recurrence start date/time, and optionally set it to all-day.
Definition: karecurrence.cpp:611
void shiftTimes(const KDateTime::Spec &oldSpec, const KDateTime::Spec &newSpec)
Shift the times of the recurrence so that they appear at the same clock time as before but in a new t...
Definition: karecurrence.cpp:1224
static bool dailyType(const KCalCore::RecurrenceRule *)
Check if the recurrence rule is a daily rule with or without BYDAYS specified.
Definition: karecurrence.cpp:1268
KCalCore::Duration regularInterval() const
Return the interval between recurrences, if the interval between successive occurrences does not vary...
Definition: karecurrence.cpp:1125
KDateTime getPreviousDate(const KDateTime &afterDateTime) const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:49 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:49 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.