Changeset View
Changeset View
Standalone View
Standalone View
src/period.h
Show All 35 Lines | |||||
36 | 36 | | |||
37 | #include <QDateTime> | 37 | #include <QDateTime> | ||
38 | #include <QDataStream> | 38 | #include <QDataStream> | ||
39 | #include <QMetaType> | 39 | #include <QMetaType> | ||
40 | #include <QVector> | 40 | #include <QVector> | ||
41 | 41 | | |||
42 | class QTimeZone; | 42 | class QTimeZone; | ||
43 | 43 | | |||
44 | namespace KCalCore | 44 | namespace KCalendarCore | ||
45 | { | 45 | { | ||
46 | 46 | | |||
47 | /** | 47 | /** | ||
48 | The period can be defined by either a start time and an end time or | 48 | The period can be defined by either a start time and an end time or | ||
49 | by a start time and a duration. | 49 | by a start time and a duration. | ||
50 | */ | 50 | */ | ||
51 | class KCALCORE_EXPORT Period | 51 | class KCALCORE_EXPORT Period | ||
52 | { | 52 | { | ||
▲ Show 20 Lines • Show All 145 Lines • ▼ Show 20 Line(s) | |||||
198 | 198 | | |||
199 | private: | 199 | private: | ||
200 | //@cond PRIVATE | 200 | //@cond PRIVATE | ||
201 | class Private; | 201 | class Private; | ||
202 | Private *const d; | 202 | Private *const d; | ||
203 | //@endcond | 203 | //@endcond | ||
204 | 204 | | |||
205 | friend KCALCORE_EXPORT QDataStream &operator<<(QDataStream &stream, | 205 | friend KCALCORE_EXPORT QDataStream &operator<<(QDataStream &stream, | ||
206 | const KCalCore::Period &period); | 206 | const KCalendarCore::Period &period); | ||
207 | 207 | | |||
208 | friend KCALCORE_EXPORT QDataStream &operator>>(QDataStream &stream, | 208 | friend KCALCORE_EXPORT QDataStream &operator>>(QDataStream &stream, | ||
209 | KCalCore::Period &period); | 209 | KCalendarCore::Period &period); | ||
210 | }; | 210 | }; | ||
211 | 211 | | |||
212 | /** Write @p period to the datastream @p stream, in binary format. */ | 212 | /** Write @p period to the datastream @p stream, in binary format. */ | ||
213 | KCALCORE_EXPORT QDataStream &operator<<(QDataStream &stream, const KCalCore::Period &period); | 213 | KCALCORE_EXPORT QDataStream &operator<<(QDataStream &stream, const KCalendarCore::Period &period); | ||
214 | 214 | | |||
215 | /** Read a Period object into @p period from @p stream, in binary format. */ | 215 | /** Read a Period object into @p period from @p stream, in binary format. */ | ||
216 | KCALCORE_EXPORT QDataStream &operator>>(QDataStream &stream, KCalCore::Period &period); | 216 | KCALCORE_EXPORT QDataStream &operator>>(QDataStream &stream, KCalendarCore::Period &period); | ||
217 | 217 | | |||
218 | /** | 218 | /** | ||
219 | Return a hash value for a Period argument. | 219 | Return a hash value for a Period argument. | ||
220 | @param key is a Period. | 220 | @param key is a Period. | ||
221 | */ | 221 | */ | ||
222 | KCALCORE_EXPORT uint qHash(const KCalCore::Period &key); | 222 | KCALCORE_EXPORT uint qHash(const KCalendarCore::Period &key); | ||
223 | } | 223 | } | ||
224 | 224 | | |||
225 | //@cond PRIVATE | 225 | //@cond PRIVATE | ||
226 | Q_DECLARE_METATYPE(KCalCore::Period) | 226 | Q_DECLARE_METATYPE(KCalendarCore::Period) | ||
227 | Q_DECLARE_TYPEINFO(KCalCore::Period, Q_MOVABLE_TYPE); | 227 | Q_DECLARE_TYPEINFO(KCalendarCore::Period, Q_MOVABLE_TYPE); | ||
228 | //@endcond | 228 | //@endcond | ||
229 | 229 | | |||
230 | #endif | 230 | #endif |