Changeset View
Changeset View
Standalone View
Standalone View
src/recurrencerule.h
Show All 25 Lines | |||||
26 | 26 | | |||
27 | #include "kcalcore_export.h" | 27 | #include "kcalcore_export.h" | ||
28 | 28 | | |||
29 | #include <QDateTime> | 29 | #include <QDateTime> | ||
30 | #include <QTimeZone> | 30 | #include <QTimeZone> | ||
31 | 31 | | |||
32 | class QTimeZone; | 32 | class QTimeZone; | ||
33 | 33 | | |||
34 | namespace KCalCore { | 34 | namespace KCalendarCore { | ||
35 | // These two are duplicates wrt. incidencebase.h | 35 | // These two are duplicates wrt. incidencebase.h | ||
36 | typedef QList<QDate> DateList; | 36 | typedef QList<QDate> DateList; | ||
37 | /* List of times */ | 37 | /* List of times */ | ||
38 | typedef QList<QTime> TimeList; | 38 | typedef QList<QTime> TimeList; | ||
39 | 39 | | |||
40 | /** | 40 | /** | ||
41 | This class represents a recurrence rule for a calendar incidence. | 41 | This class represents a recurrence rule for a calendar incidence. | ||
42 | */ | 42 | */ | ||
Show All 34 Lines | 70 | public: | |||
77 | bool operator==(const RecurrenceRule::WDayPos &pos2) const; | 77 | bool operator==(const RecurrenceRule::WDayPos &pos2) const; | ||
78 | bool operator!=(const RecurrenceRule::WDayPos &pos2) const; | 78 | bool operator!=(const RecurrenceRule::WDayPos &pos2) const; | ||
79 | 79 | | |||
80 | protected: | 80 | protected: | ||
81 | short mDay; // Weekday, 1=monday, 7=sunday | 81 | short mDay; // Weekday, 1=monday, 7=sunday | ||
82 | int mPos; // week of the day (-1 for last, 1 for first, 0 for all weeks) | 82 | int mPos; // week of the day (-1 for last, 1 for first, 0 for all weeks) | ||
83 | // Bounded by -366 and +366, 0 means all weeks in that period | 83 | // Bounded by -366 and +366, 0 means all weeks in that period | ||
84 | 84 | | |||
85 | friend KCALCORE_EXPORT QDataStream &operator<<(QDataStream &out, const KCalCore::RecurrenceRule::WDayPos &); | 85 | friend KCALCORE_EXPORT QDataStream &operator<<(QDataStream &out, const KCalendarCore::RecurrenceRule::WDayPos &); | ||
86 | friend KCALCORE_EXPORT QDataStream &operator>>(QDataStream &in, KCalCore::RecurrenceRule::WDayPos &); | 86 | friend KCALCORE_EXPORT QDataStream &operator>>(QDataStream &in, KCalendarCore::RecurrenceRule::WDayPos &); | ||
87 | }; | 87 | }; | ||
88 | 88 | | |||
89 | RecurrenceRule(); | 89 | RecurrenceRule(); | ||
90 | RecurrenceRule(const RecurrenceRule &r); | 90 | RecurrenceRule(const RecurrenceRule &r); | ||
91 | ~RecurrenceRule(); | 91 | ~RecurrenceRule(); | ||
92 | 92 | | |||
93 | bool operator==(const RecurrenceRule &r) const; | 93 | bool operator==(const RecurrenceRule &r) const; | ||
94 | bool operator!=(const RecurrenceRule &r) const | 94 | bool operator!=(const RecurrenceRule &r) const | ||
▲ Show 20 Lines • Show All 225 Lines • ▼ Show 20 Line(s) | |||||
320 | void dump() const; | 320 | void dump() const; | ||
321 | 321 | | |||
322 | private: | 322 | private: | ||
323 | //@cond PRIVATE | 323 | //@cond PRIVATE | ||
324 | class Private; | 324 | class Private; | ||
325 | Private *const d; | 325 | Private *const d; | ||
326 | //@endcond | 326 | //@endcond | ||
327 | 327 | | |||
328 | friend KCALCORE_EXPORT QDataStream &operator<<(QDataStream &out, const KCalCore::RecurrenceRule *); | 328 | friend KCALCORE_EXPORT QDataStream &operator<<(QDataStream &out, const KCalendarCore::RecurrenceRule *); | ||
329 | friend KCALCORE_EXPORT QDataStream &operator>>(QDataStream &in, const KCalCore::RecurrenceRule *); | 329 | friend KCALCORE_EXPORT QDataStream &operator>>(QDataStream &in, const KCalendarCore::RecurrenceRule *); | ||
330 | }; | 330 | }; | ||
331 | 331 | | |||
332 | /** | 332 | /** | ||
333 | * RecurrenceRule serializer and deserializer. | 333 | * RecurrenceRule serializer and deserializer. | ||
334 | * @since 4.12 | 334 | * @since 4.12 | ||
335 | */ | 335 | */ | ||
336 | KCALCORE_EXPORT QDataStream &operator<<(QDataStream &out, const KCalCore::RecurrenceRule *); | 336 | KCALCORE_EXPORT QDataStream &operator<<(QDataStream &out, const KCalendarCore::RecurrenceRule *); | ||
337 | KCALCORE_EXPORT QDataStream &operator>>(QDataStream &in, const KCalCore::RecurrenceRule *); | 337 | KCALCORE_EXPORT QDataStream &operator>>(QDataStream &in, const KCalendarCore::RecurrenceRule *); | ||
338 | 338 | | |||
339 | /** | 339 | /** | ||
340 | * RecurrenceRule::WDayPos serializer and deserializer. | 340 | * RecurrenceRule::WDayPos serializer and deserializer. | ||
341 | * @since 4.12 | 341 | * @since 4.12 | ||
342 | */ | 342 | */ | ||
343 | KCALCORE_EXPORT QDataStream &operator<<(QDataStream &out, const KCalCore::RecurrenceRule::WDayPos &); | 343 | KCALCORE_EXPORT QDataStream &operator<<(QDataStream &out, const KCalendarCore::RecurrenceRule::WDayPos &); | ||
344 | KCALCORE_EXPORT QDataStream &operator>>(QDataStream &in, KCalCore::RecurrenceRule::WDayPos &); | 344 | KCALCORE_EXPORT QDataStream &operator>>(QDataStream &in, KCalendarCore::RecurrenceRule::WDayPos &); | ||
345 | } | 345 | } | ||
346 | 346 | | |||
347 | Q_DECLARE_TYPEINFO(KCalCore::RecurrenceRule::WDayPos, Q_MOVABLE_TYPE); | 347 | Q_DECLARE_TYPEINFO(KCalendarCore::RecurrenceRule::WDayPos, Q_MOVABLE_TYPE); | ||
348 | 348 | | |||
349 | #endif | 349 | #endif |