| 1 | /* |
| 2 | This file is part of the kcalcore library. |
| 3 | |
| 4 | SPDX-FileCopyrightText: 1998 Preston Brown <[email protected]> |
| 5 | SPDX-FileCopyrightText: 2001, 2003 Cornelius Schumacher <[email protected]> |
| 6 | SPDX-FileCopyrightText: 2002, 2006, 2007 David Jarvie <[email protected]> |
| 7 | SPDX-FileCopyrightText: 2005 Reinhold Kainhofer <[email protected]> |
| 8 | |
| 9 | SPDX-License-Identifier: LGPL-2.0-or-later |
| 10 | */ |
| 11 | #ifndef KCALCORE_RECURRENCERULE_H |
| 12 | #define KCALCORE_RECURRENCERULE_Hcxx . . $ `3rdparty/kcalendarcore/src/recurrencerule.h:12:9`! |
| 13 | |
| 14 | #include <QDateTime> |
| 15 | #include <QTimeZone> |
| 16 | |
| 17 | class QTimeZonecxx . . $ QTimeZone#; |
| 18 | |
| 19 | namespace KCalendarCorecxx . . $ KCalendarCore/ { |
| 20 | // These two are duplicates wrt. incidencebase.h |
| 21 | typedef QListcxx . . $ QList#<QDatecxx . . $ QDate#> DateListcxx . . $ KCalendarCore/DateList#; |
| 22 | /* List of times */ |
| 23 | typedef QListcxx . . $ QList#<QTimecxx . . $ QTime#> TimeListcxx . . $ KCalendarCore/TimeList#; |
| 24 | |
| 25 | /** |
| 26 | This class represents a recurrence rule for a calendar incidence. |
| 27 | 此类表示日历事件的重复规则。 |
| 28 | */ |
| 29 | class Q_CORE_EXPORTcxx . . $ `<external>/6665208801063648054/qtcoreexports.h:15:13`! RecurrenceRulecxx . . $ KCalendarCore/RecurrenceRule# |
| 30 | { |
| 31 | public: |
| 32 | class RuleObservercxx . . $ KCalendarCore/RecurrenceRule#RuleObserver# |
| 33 | { |
| 34 | public: |
| 35 | virtual ~cxx . . $ KCalendarCore/RecurrenceRule#RuleObserver#`~RuleObserver`(ced63f7c635d850d).RuleObservercxx . . $ KCalendarCore/RecurrenceRule#RuleObserver#(); |
| 36 | /** This method is called on each change of the recurrence object |
| 37 | * 对递归对象的每次更改都会调用此方法 |
| 38 | */ |
| 39 | virtual void recurrenceChangedcxx . . $ KCalendarCore/RecurrenceRule#RuleObserver#recurrenceChanged(59f82185af1a1089).(RecurrenceRulecxx . . $ KCalendarCore/RecurrenceRule# *) = 0; |
| 40 | }; |
| 41 | typedef QListcxx . . $ QList#<RecurrenceRulecxx . . $ KCalendarCore/RecurrenceRule# *> Listcxx . . $ KCalendarCore/RecurrenceRule#List#; |
| 42 | |
| 43 | /** enum for describing the frequency how an event recurs, if at all. |
| 44 | * 枚举,用于描述事件递归的频率(如果有)。 |
| 45 | */ |
| 46 | enum PeriodTypecxx . . $ KCalendarCore/RecurrenceRule#PeriodType# { |
| 47 | rNonecxx . . $ KCalendarCore/RecurrenceRule#rNone. = 0, |
| 48 | rSecondlycxx . . $ KCalendarCore/RecurrenceRule#rSecondly., |
| 49 | rMinutelycxx . . $ KCalendarCore/RecurrenceRule#rMinutely., |
| 50 | rHourlycxx . . $ KCalendarCore/RecurrenceRule#rHourly., |
| 51 | rDailycxx . . $ KCalendarCore/RecurrenceRule#rDaily., |
| 52 | rWeeklycxx . . $ KCalendarCore/RecurrenceRule#rWeekly., |
| 53 | rMonthlycxx . . $ KCalendarCore/RecurrenceRule#rMonthly., |
| 54 | rYearlycxx . . $ KCalendarCore/RecurrenceRule#rYearly., |
| 55 | }; |
| 56 | |
| 57 | /** structure for describing the n-th weekday of the month/year. |
| 58 | * 用于描述月/年的第n个工作日的结构。 |
| 59 | */ |
| 60 | class Q_CORE_EXPORTcxx . . $ `<external>/6665208801063648054/qtcoreexports.h:15:13`! WDayPoscxx . . $ KCalendarCore/RecurrenceRule#WDayPos# // krazy:exclude=dpointer |
| 61 | { |
| 62 | public: |
| 63 | explicit WDayPoscxx . . $ KCalendarCore/RecurrenceRule#WDayPos#WDayPos(ce859b6b863b003).(int ps = 0, short dy = 0); |
| 64 | void setDaycxx . . $ KCalendarCore/RecurrenceRule#WDayPos#setDay(68e3ae50fe6578a9).(short dy); |
| 65 | short daycxx . . $ KCalendarCore/RecurrenceRule#WDayPos#day(524863554b4a534e).() const; |
| 66 | void setPoscxx . . $ KCalendarCore/RecurrenceRule#WDayPos#setPos(d4f767463ce0a6b3).(int ps); |
| 67 | int poscxx . . $ KCalendarCore/RecurrenceRule#WDayPos#pos(455f465bc33b4cdf).() const; |
| 68 | |
| 69 | bool operatorcxx . . $ KCalendarCore/RecurrenceRule#WDayPos#`operator==`(dae12b580a6ffbd9).==(const RecurrenceRulecxx . . $ KCalendarCore/RecurrenceRule#::WDayPoscxx . . $ KCalendarCore/RecurrenceRule#WDayPos# &pos2) const; |
| 70 | bool operatorcxx . . $ KCalendarCore/RecurrenceRule#WDayPos#`operator!=`(dae12b580a6ffbd9).!=(const RecurrenceRulecxx . . $ KCalendarCore/RecurrenceRule#::WDayPoscxx . . $ KCalendarCore/RecurrenceRule#WDayPos# &pos2) const; |
| 71 | |
| 72 | protected: |
| 73 | short mDaycxx . . $ KCalendarCore/RecurrenceRule#WDayPos#mDay.; // Weekday, 1=monday, 7=sunday |
| 74 | int mPoscxx . . $ KCalendarCore/RecurrenceRule#WDayPos#mPos.; // week of the day (-1 for last, 1 for first, 0 for all weeks) |
| 75 | // Bounded by -366 and +366, 0 means all weeks in that period |
| 76 | |
| 77 | friend Q_CORE_EXPORTcxx . . $ `<external>/6665208801063648054/qtcoreexports.h:15:13`! QDataStreamcxx . . $ QDataStream# &operatorcxx . . $ KCalendarCore/`operator<<`(d1f3a096c3693255).<<(QDataStreamcxx . . $ QDataStream# &out, const KCalendarCorecxx . . $ KCalendarCore/::RecurrenceRulecxx . . $ KCalendarCore/RecurrenceRule#::WDayPoscxx . . $ KCalendarCore/RecurrenceRule#WDayPos# &); |
| 78 | friend Q_CORE_EXPORTcxx . . $ `<external>/6665208801063648054/qtcoreexports.h:15:13`! QDataStreamcxx . . $ QDataStream# &operatorcxx . . $ KCalendarCore/`operator>>`(8f2622839bfae2de).>>(QDataStreamcxx . . $ QDataStream# &in, KCalendarCorecxx . . $ KCalendarCore/::RecurrenceRulecxx . . $ KCalendarCore/RecurrenceRule#::WDayPoscxx . . $ KCalendarCore/RecurrenceRule#WDayPos# &); |
| 79 | }; |
| 80 | |
| 81 | RecurrenceRulecxx . . $ KCalendarCore/RecurrenceRule#RecurrenceRule(49f6e7a06ebc5aa8).(); |
| 82 | RecurrenceRulecxx . . $ KCalendarCore/RecurrenceRule#RecurrenceRule(e84b255f47788529).(const RecurrenceRulecxx . . $ KCalendarCore/RecurrenceRule# &r); |
| 83 | ~cxx . . $ KCalendarCore/RecurrenceRule#`~RecurrenceRule`(49f6e7a06ebc5aa8).RecurrenceRulecxx . . $ KCalendarCore/RecurrenceRule#(); |
| 84 | |
| 85 | bool operatorcxx . . $ KCalendarCore/RecurrenceRule#`operator==`(6dc228598c7f6ef0).==(const RecurrenceRulecxx . . $ KCalendarCore/RecurrenceRule# &r) const; |
| 86 | bool operatorcxx . . $ KCalendarCore/RecurrenceRule#`operator!=`(6dc228598c7f6ef0).!=(const RecurrenceRulecxx . . $ KCalendarCore/RecurrenceRule# &r) const |
| 87 | { |
| 88 | return !operator==(r); |
| 89 | } |
| 90 | |
| 91 | RecurrenceRulecxx . . $ KCalendarCore/RecurrenceRule# &operatorcxx . . $ KCalendarCore/RecurrenceRule#`operator=`(3bb5bda2c1355d8).=(const RecurrenceRulecxx . . $ KCalendarCore/RecurrenceRule# &r); |
| 92 | |
| 93 | /** Set if recurrence is read-only or can be changed. |
| 94 | * .设置重复周期是只读的还是可以更改的 |
| 95 | * |
| 96 | */ |
| 97 | void setReadOnlycxx . . $ KCalendarCore/RecurrenceRule#setReadOnly(b45ddcbc8423892c).(bool readOnly); |
| 98 | |
| 99 | /** |
| 100 | Returns true if the recurrence is read-only; false if it can be changed. |
| 101 | |
| 102 | 如果重复周期为只读,则返回true;如果可以更改,则为false。 |
| 103 | */ |
| 104 | Q_REQUIRED_RESULTcxx . . $ `<external>/13147557517174114922/qcompilerdetection.h:974:11`! bool isReadOnlycxx . . $ KCalendarCore/RecurrenceRule#isReadOnly(50ce9a9e25b4a850).() const; |
| 105 | |
| 106 | /** |
| 107 | Returns the event's recurrence status. See the enumeration at the top |
| 108 | of this file for possible values. |
| 109 | 返回事件的重复状态。有关可能的值,请参阅此文件顶部的枚举。 |
| 110 | */ |
| 111 | Q_REQUIRED_RESULTcxx . . $ `<external>/13147557517174114922/qcompilerdetection.h:974:11`! bool recurscxx . . $ KCalendarCore/RecurrenceRule#recurs(50ce9a9e25b4a850).() const; |
| 112 | void setRecurrenceTypecxx . . $ KCalendarCore/RecurrenceRule#setRecurrenceType(176c1b09a195a6be).(PeriodTypecxx . . $ KCalendarCore/RecurrenceRule#PeriodType# period); |
| 113 | Q_REQUIRED_RESULTcxx . . $ `<external>/13147557517174114922/qcompilerdetection.h:974:11`! PeriodTypecxx . . $ KCalendarCore/RecurrenceRule#PeriodType# recurrenceTypecxx . . $ KCalendarCore/RecurrenceRule#recurrenceType(ed4f7378a08634b5).() const; |
| 114 | |
| 115 | /** Turns off recurrence for the event. */ |
| 116 | void clearcxx . . $ KCalendarCore/RecurrenceRule#clear(49f6e7a06ebc5aa8).(); |
| 117 | |
| 118 | /** |
| 119 | Returns the recurrence frequency, in terms of the recurrence time period type. |
| 120 | 返回按重复时间段类型表示的重复频率。 |
| 121 | */ |
| 122 | Q_REQUIRED_RESULTcxx . . $ `<external>/13147557517174114922/qcompilerdetection.h:974:11`! uintcxx . . $ uint# frequencycxx . . $ KCalendarCore/RecurrenceRule#frequency(ddd8539a2fcdd4ce).() const; |
| 123 | |
| 124 | /** |
| 125 | Sets the recurrence frequency, in terms of the recurrence time period type. |
| 126 | 根据重复时间段类型设置重复频率。 |
| 127 | */ |
| 128 | void setFrequencycxx . . $ KCalendarCore/RecurrenceRule#setFrequency(d4f767463ce0a6b3).(int freq); |
| 129 | |
| 130 | /** |
| 131 | Returns the recurrence start date/time. |
| 132 | Note that the recurrence does not necessarily occur on the start date/time. |
| 133 | For this to happen, it must actually match the rule. |
| 134 | |
| 135 | 返回定期开始日期/时间。 |
| 136 | |
| 137 | 请注意,重复不一定发生在开始日期/时间。 |
| 138 | |
| 139 | 要做到这一点,它必须符合规则。 |
| 140 | */ |
| 141 | Q_REQUIRED_RESULTcxx . . $ `<external>/13147557517174114922/qcompilerdetection.h:974:11`! QDateTimecxx . . $ QDateTime# startDtcxx . . $ KCalendarCore/RecurrenceRule#startDt(4e062b5c490497ac).() const; |
| 142 | |
| 143 | /** |
| 144 | Sets the recurrence start date/time. |
| 145 | Note that setting the start date/time does not make the recurrence occur |
| 146 | on that date/time, it simply sets a lower limit to when the recurrences |
| 147 | take place (this applies only for the by- rules, not for i.e. an hourly |
| 148 | rule where the startDt is the first occurrence). |
| 149 | |
| 150 | 设置定期开始日期/时间。 |
| 151 | 请注意,设置开始日期/时间不会使重复发生在该日期/时间,它只会设置重复发生的时间下限(这仅适用于by规则,而不适用于startDt是第一次发生的每小时规则)。 |
| 152 | |
| 153 | Note that setting @p start to a date-only value does not make an all-day |
| 154 | recurrence: to do this, call setAllDay(true). |
| 155 | |
| 156 | @param start the recurrence's start date and time |
| 157 | */ |
| 158 | void setStartDtcxx . . $ KCalendarCore/RecurrenceRule#setStartDt(3672ecc950120406).(const QDateTimecxx . . $ QDateTime# &start); |
| 159 | |
| 160 | /** Returns whether the start date has no time associated. All-Day |
| 161 | means -- according to rfc2445 -- that the event has no time associate. */ |
| 162 | Q_REQUIRED_RESULTcxx . . $ `<external>/13147557517174114922/qcompilerdetection.h:974:11`! bool allDaycxx . . $ KCalendarCore/RecurrenceRule#allDay(50ce9a9e25b4a850).() const; |
| 163 | |
| 164 | /** Sets whether the dtstart is all-day (i.e. has no time attached) |
| 165 | * |
| 166 | * @param allDay Whether start datetime is all-day |
| 167 | */ |
| 168 | void setAllDaycxx . . $ KCalendarCore/RecurrenceRule#setAllDay(b45ddcbc8423892c).(bool allDay); |
| 169 | |
| 170 | /** Returns the date and time of the last recurrence. |
| 171 | * An invalid date is returned if the recurrence has no end. |
| 172 | * @param result if non-null, *result is updated to true if successful, |
| 173 | * or false if there is no recurrence or its end date cannot be determined. |
| 174 | */ |
| 175 | Q_REQUIRED_RESULTcxx . . $ `<external>/13147557517174114922/qcompilerdetection.h:974:11`! QDateTimecxx . . $ QDateTime# endDtcxx . . $ KCalendarCore/RecurrenceRule#endDt(6d51ddc909128aed).(bool *result = nullptr) const; |
| 176 | |
| 177 | /** Sets the date and time of the last recurrence. |
| 178 | * @param endDateTime the ending date/time after which to stop recurring. */ |
| 179 | void setEndDtcxx . . $ KCalendarCore/RecurrenceRule#setEndDt(3672ecc950120406).(const QDateTimecxx . . $ QDateTime# &endDateTime); |
| 180 | |
| 181 | /** |
| 182 | * Returns -1 if the event recurs infinitely, 0 if the end date is set, |
| 183 | * otherwise the total number of recurrences, including the initial occurrence. |
| 184 | * 如果事件无限重复,则返回-1;如果设置了结束日期,则返回0;否则返回包括初始事件在内的重复总数。 |
| 185 | */ |
| 186 | Q_REQUIRED_RESULTcxx . . $ `<external>/13147557517174114922/qcompilerdetection.h:974:11`! int durationcxx . . $ KCalendarCore/RecurrenceRule#duration(455f465bc33b4cdf).() const; |
| 187 | |
| 188 | /** Sets the total number of times the event is to occur, including both the |
| 189 | * first and last. |
| 190 | * 设置事件发生的总次数,包括第一次和最后一次。 |
| 191 | */ |
| 192 | void setDurationcxx . . $ KCalendarCore/RecurrenceRule#setDuration(d4f767463ce0a6b3).(int duration); |
| 193 | |
| 194 | /** Returns the number of recurrences up to and including the date/time specified. */ |
| 195 | //返回指定日期/时间之前(包括指定日期/时间)的复发次数 |
| 196 | Q_REQUIRED_RESULTcxx . . $ `<external>/13147557517174114922/qcompilerdetection.h:974:11`! int durationTocxx . . $ KCalendarCore/RecurrenceRule#durationTo(71386549b66d6b34).(const QDateTimecxx . . $ QDateTime# &dt) const; |
| 197 | |
| 198 | /** Returns the number of recurrences up to and including the date specified. |
| 199 | * 返回指定日期之前(包括指定日期)的重复次数。 |
| 200 | */ |
| 201 | Q_REQUIRED_RESULTcxx . . $ `<external>/13147557517174114922/qcompilerdetection.h:974:11`! int durationTocxx . . $ KCalendarCore/RecurrenceRule#durationTo(4b262c972be30f9b).(const QDatecxx . . $ QDate# &date) const; |
| 202 | |
| 203 | /** |
| 204 | Shift the times of the rule so that they appear at the same clock |
| 205 | time as before but in a new time zone. The shift is done from a viewing |
| 206 | time zone rather than from the actual rule time zone. |
| 207 | |
| 208 | For example, shifting a rule whose start time is 09:00 America/New York, |
| 209 | using an old viewing time zone (@p oldTz) of Europe/London, to a new time |
| 210 | zone (@p newTz) of Europe/Paris, will result in the time being shifted |
| 211 | from 14:00 (which is the London time of the rule start) to 14:00 Paris |
| 212 | time. |
| 213 | |
| 214 | @param oldTz the time specification which provides the clock times |
| 215 | @param newTz the new time specification |
| 216 | */ |
| 217 | void shiftTimescxx . . $ KCalendarCore/RecurrenceRule#shiftTimes(da4e21e83450dd31).(const QTimeZonecxx . . $ QTimeZone# &oldTz, const QTimeZonecxx . . $ QTimeZone# &newTz); |
| 218 | |
| 219 | /** Returns true if the date specified is one on which the event will |
| 220 | * recur. The start date returns true only if it actually matches the rule. |
| 221 | * 如果指定的日期是事件将再次发生的日期,则返回true。仅当开始日期与规则实际匹配时,才会返回true。 |
| 222 | * @param date date to check |
| 223 | * @param timeZone time specification for @p date |
| 224 | */ |
| 225 | Q_REQUIRED_RESULTcxx . . $ `<external>/13147557517174114922/qcompilerdetection.h:974:11`! bool recursOncxx . . $ KCalendarCore/RecurrenceRule#recursOn(cd52a04c46fde48c).(const QDatecxx . . $ QDate# &date, const QTimeZonecxx . . $ QTimeZone# &timeZone) const; |
| 226 | |
| 227 | /** Returns true if the date/time specified is one at which the event will |
| 228 | * recur. Times are rounded down to the nearest minute to determine the result. |
| 229 | * The start date/time returns true only if it actually matches the rule. |
| 230 | * 如果指定的日期/时间是事件将重复出现的日期/时间,则返回 true。时间向下舍入到最接近的分钟以确定结果。开始日期/时间仅当实际与规则匹配时才返回 true。 |
| 231 | * @param dt the date+time to check for recurrency |
| 232 | */ |
| 233 | Q_REQUIRED_RESULTcxx . . $ `<external>/13147557517174114922/qcompilerdetection.h:974:11`! bool recursAtcxx . . $ KCalendarCore/RecurrenceRule#recursAt(147858620bc979f5).(const QDateTimecxx . . $ QDateTime# &dt) const; |
| 234 | |
| 235 | /** Returns true if the date matches the rules. It does not necessarily |
| 236 | mean that this is an actual occurrence. In particular, the method does |
| 237 | not check if the date is after the end date, or if the frequency interval |
| 238 | matches. |
| 239 | |
| 240 | @param dt the date+time to check for matching the rules |
| 241 | */ |
| 242 | Q_REQUIRED_RESULTcxx . . $ `<external>/13147557517174114922/qcompilerdetection.h:974:11`! bool dateMatchesRulescxx . . $ KCalendarCore/RecurrenceRule#dateMatchesRules(147858620bc979f5).(const QDateTimecxx . . $ QDateTime# &dt) const; |
| 243 | |
| 244 | /** Returns a list of the times on the specified date at which the |
| 245 | * recurrence will occur. The returned times should be interpreted in the |
| 246 | * context of @p timeZone. |
| 247 | * 返回在指定日期重复发生的时间列表。 |
| 248 | * @param date the date for which to find the recurrence times |
| 249 | * @param timeZone time specification for @p date |
| 250 | */ |
| 251 | Q_REQUIRED_RESULTcxx . . $ `<external>/13147557517174114922/qcompilerdetection.h:974:11`! TimeListcxx . . $ KCalendarCore/TimeList# recurTimesOncxx . . $ KCalendarCore/RecurrenceRule#recurTimesOn(f586b554451b6d89).(const QDatecxx . . $ QDate# &date, const QTimeZonecxx . . $ QTimeZone# &timeZone) const; |
| 252 | |
| 253 | /** Returns a list of all the times at which the recurrence will occur |
| 254 | * between two specified times. |
| 255 | * 返回在两个指定时间之间重复发生的所有时间的列表。 |
| 256 | * There is a (large) maximum limit to the number of times returned. If due to |
| 257 | * this limit the list is incomplete, this is indicated by the last entry being |
| 258 | * set to an invalid QDateTime value. If you need further values, call the |
| 259 | * method again with a start time set to just after the last valid time returned. |
| 260 | * @param start inclusive start of interval |
| 261 | * @param end inclusive end of interval |
| 262 | * @return list of date/time values |
| 263 | */ |
| 264 | Q_REQUIRED_RESULTcxx . . $ `<external>/13147557517174114922/qcompilerdetection.h:974:11`! QListcxx . . $ QList#<QDateTimecxx . . $ QDateTime#> timesInIntervalcxx . . $ KCalendarCore/RecurrenceRule#timesInInterval(88dd9fc7bbfba21).(const QDateTimecxx . . $ QDateTime# &start, const QDateTimecxx . . $ QDateTime# &end) const; |
| 265 | |
| 266 | /** Returns the date and time of the next recurrence, after the specified date/time. |
| 267 | * 返回指定日期/时间之后下次重复的日期和时间。 |
| 268 | * If the recurrence has no time, the next date after the specified date is returned. |
| 269 | * @param preDateTime the date/time after which to find the recurrence. |
| 270 | * @return date/time of next recurrence, or invalid date if none. |
| 271 | */ |
| 272 | Q_REQUIRED_RESULTcxx . . $ `<external>/13147557517174114922/qcompilerdetection.h:974:11`! QDateTimecxx . . $ QDateTime# getNextDatecxx . . $ KCalendarCore/RecurrenceRule#getNextDate(95fcc8ff209f7839).(const QDateTimecxx . . $ QDateTime# &preDateTime) const; |
| 273 | |
| 274 | /** Returns the date and time of the last previous recurrence, before the specified date/time. |
| 275 | * 返回指定日期/时间之前上次重复的日期和时间。 |
| 276 | * If a time later than 00:00:00 is specified and the recurrence has no time, 00:00:00 on |
| 277 | * the specified date is returned if that date recurs. |
| 278 | * @param afterDateTime the date/time before which to find the recurrence. |
| 279 | * @return date/time of previous recurrence, or invalid date if none. |
| 280 | */ |
| 281 | Q_REQUIRED_RESULTcxx . . $ `<external>/13147557517174114922/qcompilerdetection.h:974:11`! QDateTimecxx . . $ QDateTime# getPreviousDatecxx . . $ KCalendarCore/RecurrenceRule#getPreviousDate(95fcc8ff209f7839).(const QDateTimecxx . . $ QDateTime# &afterDateTime) const; |
| 282 | |
| 283 | void setBySecondscxx . . $ KCalendarCore/RecurrenceRule#setBySeconds(27380459aebc118).(const QListcxx . . $ QList#<int> &bySeconds); |
| 284 | void setByMinutescxx . . $ KCalendarCore/RecurrenceRule#setByMinutes(27380459aebc118).(const QListcxx . . $ QList#<int> &byMinutes); |
| 285 | void setByHourscxx . . $ KCalendarCore/RecurrenceRule#setByHours(27380459aebc118).(const QListcxx . . $ QList#<int> &byHours); |
| 286 | |
| 287 | void setByDayscxx . . $ KCalendarCore/RecurrenceRule#setByDays(b8c067c8277da6a8).(const QListcxx . . $ QList#<WDayPoscxx . . $ KCalendarCore/RecurrenceRule#WDayPos#> &byDays); |
| 288 | void setByMonthDayscxx . . $ KCalendarCore/RecurrenceRule#setByMonthDays(27380459aebc118).(const QListcxx . . $ QList#<int> &byMonthDays); |
| 289 | void setByYearDayscxx . . $ KCalendarCore/RecurrenceRule#setByYearDays(27380459aebc118).(const QListcxx . . $ QList#<int> &byYearDays); |
| 290 | void setByWeekNumberscxx . . $ KCalendarCore/RecurrenceRule#setByWeekNumbers(27380459aebc118).(const QListcxx . . $ QList#<int> &byWeekNumbers); |
| 291 | void setByMonthscxx . . $ KCalendarCore/RecurrenceRule#setByMonths(27380459aebc118).(const QListcxx . . $ QList#<int> &byMonths); |
| 292 | void setBySetPoscxx . . $ KCalendarCore/RecurrenceRule#setBySetPos(27380459aebc118).(const QListcxx . . $ QList#<int> &bySetPos); |
| 293 | void setWeekStartcxx . . $ KCalendarCore/RecurrenceRule#setWeekStart(68e3ae50fe6578a9).(short weekStart); |
| 294 | |
| 295 | const QListcxx . . $ QList#<int> &bySecondscxx . . $ KCalendarCore/RecurrenceRule#bySeconds(30ae2b00a0763b05).() const; |
| 296 | const QListcxx . . $ QList#<int> &byMinutescxx . . $ KCalendarCore/RecurrenceRule#byMinutes(30ae2b00a0763b05).() const; |
| 297 | const QListcxx . . $ QList#<int> &byHourscxx . . $ KCalendarCore/RecurrenceRule#byHours(30ae2b00a0763b05).() const; |
| 298 | |
| 299 | const QListcxx . . $ QList#<WDayPoscxx . . $ KCalendarCore/RecurrenceRule#WDayPos#> &byDayscxx . . $ KCalendarCore/RecurrenceRule#byDays(a1f0ffc0389f4e67).() const; |
| 300 | const QListcxx . . $ QList#<int> &byMonthDayscxx . . $ KCalendarCore/RecurrenceRule#byMonthDays(30ae2b00a0763b05).() const; |
| 301 | const QListcxx . . $ QList#<int> &byYearDayscxx . . $ KCalendarCore/RecurrenceRule#byYearDays(30ae2b00a0763b05).() const; |
| 302 | const QListcxx . . $ QList#<int> &byWeekNumberscxx . . $ KCalendarCore/RecurrenceRule#byWeekNumbers(30ae2b00a0763b05).() const; |
| 303 | const QListcxx . . $ QList#<int> &byMonthscxx . . $ KCalendarCore/RecurrenceRule#byMonths(30ae2b00a0763b05).() const; |
| 304 | const QListcxx . . $ QList#<int> &bySetPoscxx . . $ KCalendarCore/RecurrenceRule#bySetPos(30ae2b00a0763b05).() const; |
| 305 | short weekStartcxx . . $ KCalendarCore/RecurrenceRule#weekStart(524863554b4a534e).() const; |
| 306 | |
| 307 | /** |
| 308 | Set the RRULE string for the rule. |
| 309 | This is merely stored for future reference. The string is not used in any way |
| 310 | by the RecurrenceRule. |
| 311 | |
| 312 | @param rrule the RRULE string |
| 313 | */ |
| 314 | void setRRulecxx . . $ KCalendarCore/RecurrenceRule#setRRule(3520e46b33348bf6).(const QStringcxx . . $ QString# &rrule); |
| 315 | Q_REQUIRED_RESULTcxx . . $ `<external>/13147557517174114922/qcompilerdetection.h:974:11`! QStringcxx . . $ QString# rrulecxx . . $ KCalendarCore/RecurrenceRule#rrule(6ef7b6c27b00b43d).() const; |
| 316 | |
| 317 | void setDirtycxx . . $ KCalendarCore/RecurrenceRule#setDirty(49f6e7a06ebc5aa8).(); |
| 318 | /** |
| 319 | Installs an observer. Whenever some setting of this recurrence |
| 320 | object is changed, the recurrenceUpdated( Recurrence* ) method |
| 321 | of each observer will be called to inform it of changes. |
| 322 | 安装一个观察者。每当此递归对象的某些设置发生更改时,将调用每个观察者的recurrenceUpdated(recurrence*)方法来通知其更改。 |
| 323 | @param observer the Recurrence::Observer-derived object, which |
| 324 | will be installed as an observer of this object. |
| 325 | */ |
| 326 | void addObservercxx . . $ KCalendarCore/RecurrenceRule#addObserver(c6b607732eb9af8c).(RuleObservercxx . . $ KCalendarCore/RecurrenceRule#RuleObserver# *observer); |
| 327 | |
| 328 | /** |
| 329 | Removes an observer that was added with addObserver. If the |
| 330 | given object was not an observer, it does nothing. |
| 331 | @param observer the Recurrence::Observer-derived object to |
| 332 | be removed from the list of observers of this object. |
| 333 | */ |
| 334 | void removeObservercxx . . $ KCalendarCore/RecurrenceRule#removeObserver(c6b607732eb9af8c).(RuleObservercxx . . $ KCalendarCore/RecurrenceRule#RuleObserver# *observer); |
| 335 | |
| 336 | /** |
| 337 | Debug output. |
| 338 | */ |
| 339 | void dumpcxx . . $ KCalendarCore/RecurrenceRule#dump(83f5f38750778ac8).() const; |
| 340 | |
| 341 | private: |
| 342 | //@cond PRIVATE |
| 343 | class Privatecxx . . $ KCalendarCore/RecurrenceRule#Private#; |
| 344 | Privatecxx . . $ KCalendarCore/RecurrenceRule#Private# *const dcxx . . $ KCalendarCore/RecurrenceRule#d.; |
| 345 | //@endcond |
| 346 | |
| 347 | friend Q_CORE_EXPORTcxx . . $ `<external>/6665208801063648054/qtcoreexports.h:15:13`! QDataStreamcxx . . $ QDataStream# &operatorcxx . . $ KCalendarCore/`operator<<`(57ba5421b5e1fc39).<<(QDataStreamcxx . . $ QDataStream# &out, const KCalendarCorecxx . . $ KCalendarCore/::RecurrenceRulecxx . . $ KCalendarCore/RecurrenceRule# *); |
| 348 | friend Q_CORE_EXPORTcxx . . $ `<external>/6665208801063648054/qtcoreexports.h:15:13`! QDataStreamcxx . . $ QDataStream# &operatorcxx . . $ KCalendarCore/`operator>>`(57ba5421b5e1fc39).>>(QDataStreamcxx . . $ QDataStream# &in, const KCalendarCorecxx . . $ KCalendarCore/::RecurrenceRulecxx . . $ KCalendarCore/RecurrenceRule# *); |
| 349 | }; |
| 350 | |
| 351 | /** |
| 352 | * RecurrenceRule serializer and deserializer. |
| 353 | * @since 4.12 |
| 354 | */ |
| 355 | Q_CORE_EXPORTcxx . . $ `<external>/6665208801063648054/qtcoreexports.h:15:13`! QDataStreamcxx . . $ QDataStream# &operatorcxx . . $ KCalendarCore/`operator<<`(57ba5421b5e1fc39).<<(QDataStreamcxx . . $ QDataStream# &out, const KCalendarCorecxx . . $ KCalendarCore/::RecurrenceRulecxx . . $ KCalendarCore/RecurrenceRule# *); |
| 356 | Q_CORE_EXPORTcxx . . $ `<external>/6665208801063648054/qtcoreexports.h:15:13`! QDataStreamcxx . . $ QDataStream# &operatorcxx . . $ KCalendarCore/`operator>>`(57ba5421b5e1fc39).>>(QDataStreamcxx . . $ QDataStream# &in, const KCalendarCorecxx . . $ KCalendarCore/::RecurrenceRulecxx . . $ KCalendarCore/RecurrenceRule# *); |
| 357 | |
| 358 | /** |
| 359 | * RecurrenceRule::WDayPos serializer and deserializer. |
| 360 | * @since 4.12 |
| 361 | */ |
| 362 | Q_CORE_EXPORTcxx . . $ `<external>/6665208801063648054/qtcoreexports.h:15:13`! QDataStreamcxx . . $ QDataStream# &operatorcxx . . $ KCalendarCore/`operator<<`(d1f3a096c3693255).<<(QDataStreamcxx . . $ QDataStream# &out, const KCalendarCorecxx . . $ KCalendarCore/::RecurrenceRulecxx . . $ KCalendarCore/RecurrenceRule#::WDayPoscxx . . $ KCalendarCore/RecurrenceRule#WDayPos# &); |
| 363 | Q_CORE_EXPORTcxx . . $ `<external>/6665208801063648054/qtcoreexports.h:15:13`! QDataStreamcxx . . $ QDataStream# &operatorcxx . . $ KCalendarCore/`operator>>`(8f2622839bfae2de).>>(QDataStreamcxx . . $ QDataStream# &in, KCalendarCorecxx . . $ KCalendarCore/::RecurrenceRulecxx . . $ KCalendarCore/RecurrenceRule#::WDayPoscxx . . $ KCalendarCore/RecurrenceRule#WDayPos# &); |
| 364 | } // namespace KCalendarCore |
| 365 | |
| 366 | Q_DECLARE_TYPEINFOcxx . . $ QTypeInfo#(KCalendarCore::RecurrenceRule::WDayPos, Q_MOVABLE_TYPE); |
| 367 | |
| 368 | #endif |