Changeset View
Changeset View
Standalone View
Standalone View
src/utils.h
Show All 22 Lines | |||||
23 | #define KCALCORE_UTILS_H | 23 | #define KCALCORE_UTILS_H | ||
24 | 24 | | |||
25 | #include "kcalcore_export.h" | 25 | #include "kcalcore_export.h" | ||
26 | 26 | | |||
27 | #include <QDateTime> | 27 | #include <QDateTime> | ||
28 | 28 | | |||
29 | class QDataStream; | 29 | class QDataStream; | ||
30 | 30 | | |||
31 | namespace KCalCore { | 31 | namespace KCalendarCore { | ||
32 | 32 | | |||
33 | /** | 33 | /** | ||
34 | * Helpers to retain backwards compatibility of binary serialization. | 34 | * Helpers to retain backwards compatibility of binary serialization. | ||
35 | */ | 35 | */ | ||
36 | KCALCORE_EXPORT void serializeQDateTimeAsKDateTime(QDataStream &out, const QDateTime &dt); | 36 | KCALCORE_EXPORT void serializeQDateTimeAsKDateTime(QDataStream &out, const QDateTime &dt); | ||
37 | KCALCORE_EXPORT void deserializeKDateTimeAsQDateTime(QDataStream &in, QDateTime &dt); | 37 | KCALCORE_EXPORT void deserializeKDateTimeAsQDateTime(QDataStream &in, QDateTime &dt); | ||
38 | 38 | | |||
39 | void serializeQDateTimeList(QDataStream &out, const QList<QDateTime> &list); | 39 | void serializeQDateTimeList(QDataStream &out, const QList<QDateTime> &list); | ||
40 | void deserializeQDateTimeList(QDataStream &in, QList<QDateTime> &list); | 40 | void deserializeQDateTimeList(QDataStream &in, QList<QDateTime> &list); | ||
41 | 41 | | |||
42 | void serializeQTimeZoneAsSpec(QDataStream &out, const QTimeZone &tz); | 42 | void serializeQTimeZoneAsSpec(QDataStream &out, const QTimeZone &tz); | ||
43 | void deserializeSpecAsQTimeZone(QDataStream &in, QTimeZone &tz); | 43 | void deserializeSpecAsQTimeZone(QDataStream &in, QTimeZone &tz); | ||
44 | 44 | | |||
45 | } | 45 | } | ||
46 | 46 | | |||
47 | #endif | 47 | #endif |