Changeset View
Changeset View
Standalone View
Standalone View
src/recurrence.h
Show First 20 Lines • Show All 238 Lines • ▼ Show 20 Line(s) | 91 | public: | |||
---|---|---|---|---|---|
239 | * this limit the list is incomplete, this is indicated by the last entry being | 239 | * this limit the list is incomplete, this is indicated by the last entry being | ||
240 | * set to an invalid QDateTime value. If you need further values, call the | 240 | * set to an invalid QDateTime value. If you need further values, call the | ||
241 | * method again with a start time set to just after the last valid time returned. | 241 | * method again with a start time set to just after the last valid time returned. | ||
242 | * | 242 | * | ||
243 | * @param start inclusive start of interval | 243 | * @param start inclusive start of interval | ||
244 | * @param end inclusive end of interval | 244 | * @param end inclusive end of interval | ||
245 | * @return list of date/time values | 245 | * @return list of date/time values | ||
246 | */ | 246 | */ | ||
247 | Q_REQUIRED_RESULT SortableList<QDateTime> timesInInterval(const QDateTime &start, const QDateTime &end) const; | 247 | Q_REQUIRED_RESULT QList<QDateTime> timesInInterval(const QDateTime &start, const QDateTime &end) const; | ||
248 | 248 | | |||
249 | /** Returns the date and time of the next recurrence, after the specified date/time. | 249 | /** Returns the date and time of the next recurrence, after the specified date/time. | ||
250 | * If the recurrence has no time, the next date after the specified date is returned. | 250 | * If the recurrence has no time, the next date after the specified date is returned. | ||
251 | * @param preDateTime the date/time after which to find the recurrence. | 251 | * @param preDateTime the date/time after which to find the recurrence. | ||
252 | * @return date/time of next recurrence (strictly later than the given | 252 | * @return date/time of next recurrence (strictly later than the given | ||
253 | * QDateTime), or invalid date if none. | 253 | * QDateTime), or invalid date if none. | ||
254 | */ | 254 | */ | ||
255 | Q_REQUIRED_RESULT QDateTime getNextDateTime(const QDateTime &preDateTime) const; | 255 | Q_REQUIRED_RESULT QDateTime getNextDateTime(const QDateTime &preDateTime) const; | ||
▲ Show 20 Lines • Show All 355 Lines • ▼ Show 20 Line(s) | |||||
611 | 611 | | |||
612 | /** | 612 | /** | ||
613 | Remove an exception rule from the recurrence and delete it. | 613 | Remove an exception rule from the recurrence and delete it. | ||
614 | @param exrule the exception rule to remove | 614 | @param exrule the exception rule to remove | ||
615 | */ | 615 | */ | ||
616 | void deleteExRule(RecurrenceRule *exrule); | 616 | void deleteExRule(RecurrenceRule *exrule); | ||
617 | 617 | | |||
618 | // RDATE | 618 | // RDATE | ||
619 | Q_REQUIRED_RESULT SortableList<QDateTime> rDateTimes() const; | 619 | Q_REQUIRED_RESULT QList<QDateTime> rDateTimes() const; | ||
620 | Q_REQUIRED_RESULT DateList rDates() const; | 620 | Q_REQUIRED_RESULT DateList rDates() const; | ||
621 | void setRDateTimes(const SortableList<QDateTime> &rdates); | 621 | void setRDateTimes(const QList<QDateTime> &rdates); | ||
622 | void setRDates(const DateList &rdates); | 622 | void setRDates(const DateList &rdates); | ||
623 | void addRDateTime(const QDateTime &rdate); | 623 | void addRDateTime(const QDateTime &rdate); | ||
624 | void addRDate(const QDate &rdate); | 624 | void addRDate(const QDate &rdate); | ||
625 | 625 | | |||
626 | // ExDATE | 626 | // ExDATE | ||
627 | Q_REQUIRED_RESULT SortableList<QDateTime> exDateTimes() const; | 627 | Q_REQUIRED_RESULT QList<QDateTime> exDateTimes() const; | ||
628 | Q_REQUIRED_RESULT DateList exDates() const; | 628 | Q_REQUIRED_RESULT DateList exDates() const; | ||
629 | void setExDateTimes(const SortableList<QDateTime> &exdates); | 629 | void setExDateTimes(const QList<QDateTime> &exdates); | ||
630 | void setExDates(const DateList &exdates); | 630 | void setExDates(const DateList &exdates); | ||
631 | void addExDateTime(const QDateTime &exdate); | 631 | void addExDateTime(const QDateTime &exdate); | ||
632 | void addExDate(const QDate &exdate); | 632 | void addExDate(const QDate &exdate); | ||
633 | 633 | | |||
634 | RecurrenceRule *defaultRRule(bool create = false) const; | 634 | RecurrenceRule *defaultRRule(bool create = false) const; | ||
635 | RecurrenceRule *defaultRRuleConst() const; | 635 | RecurrenceRule *defaultRRuleConst() const; | ||
636 | void updated(); | 636 | void updated(); | ||
637 | 637 | | |||
▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines |