Changeset View
Changeset View
Standalone View
Standalone View
src/customproperties.h
Show All 28 Lines | |||||
29 | #ifndef KCALCORE_CUSTOMPROPERTIES_H | 29 | #ifndef KCALCORE_CUSTOMPROPERTIES_H | ||
30 | #define KCALCORE_CUSTOMPROPERTIES_H | 30 | #define KCALCORE_CUSTOMPROPERTIES_H | ||
31 | 31 | | |||
32 | #include "kcalcore_export.h" | 32 | #include "kcalcore_export.h" | ||
33 | 33 | | |||
34 | #include <QMap> | 34 | #include <QMap> | ||
35 | #include <QString> | 35 | #include <QString> | ||
36 | 36 | | |||
37 | namespace KCalCore | 37 | namespace KCalendarCore | ||
38 | { | 38 | { | ||
39 | 39 | | |||
40 | /** | 40 | /** | ||
41 | @brief | 41 | @brief | ||
42 | A class to manage custom calendar properties. | 42 | A class to manage custom calendar properties. | ||
43 | 43 | | |||
44 | This class represents custom calendar properties. | 44 | This class represents custom calendar properties. | ||
45 | It is used as a base class for classes which represent calendar components. | 45 | It is used as a base class for classes which represent calendar components. | ||
46 | A custom property name written by the kcalcore library has the form X-KDE-APP-KEY | 46 | A custom property name written by the kcalcore library has the form X-KDE-APP-KEY | ||
47 | where APP represents the application name, and KEY distinguishes individual | 47 | where APP represents the application name, and KEY distinguishes individual | ||
48 | properties for the application. | 48 | properties for the application. | ||
49 | In keeping with RFC2445, property names must be composed only of the | 49 | In keeping with RFC2445, property names must be composed only of the | ||
50 | characters A-Z, a-z, 0-9 and '-'. | 50 | characters A-Z, a-z, 0-9 and '-'. | ||
51 | */ | 51 | */ | ||
52 | class KCALCORE_EXPORT CustomProperties | 52 | class KCALCORE_EXPORT CustomProperties | ||
53 | { | 53 | { | ||
54 | friend KCALCORE_EXPORT QDataStream &operator<<(QDataStream &s, | 54 | friend KCALCORE_EXPORT QDataStream &operator<<(QDataStream &s, | ||
55 | const KCalCore::CustomProperties &properties); | 55 | const KCalendarCore::CustomProperties &properties); | ||
56 | friend KCALCORE_EXPORT QDataStream &operator>>(QDataStream &s, | 56 | friend KCALCORE_EXPORT QDataStream &operator>>(QDataStream &s, | ||
57 | KCalCore::CustomProperties &properties); | 57 | KCalendarCore::CustomProperties &properties); | ||
58 | public: | 58 | public: | ||
59 | /** | 59 | /** | ||
60 | Constructs an empty custom properties instance. | 60 | Constructs an empty custom properties instance. | ||
61 | */ | 61 | */ | ||
62 | CustomProperties(); | 62 | CustomProperties(); | ||
63 | 63 | | |||
64 | /** | 64 | /** | ||
65 | Copy constructor. | 65 | Copy constructor. | ||
▲ Show 20 Lines • Show All 137 Lines • ▼ Show 20 Line(s) | 200 | private: | |||
203 | Private *const d; | 203 | Private *const d; | ||
204 | //@endcond | 204 | //@endcond | ||
205 | }; | 205 | }; | ||
206 | 206 | | |||
207 | /** | 207 | /** | ||
208 | Serializes the @p properties object into the @p stream. | 208 | Serializes the @p properties object into the @p stream. | ||
209 | */ | 209 | */ | ||
210 | KCALCORE_EXPORT QDataStream &operator<<(QDataStream &stream, | 210 | KCALCORE_EXPORT QDataStream &operator<<(QDataStream &stream, | ||
211 | const KCalCore::CustomProperties &properties); | 211 | const KCalendarCore::CustomProperties &properties); | ||
212 | 212 | | |||
213 | /** | 213 | /** | ||
214 | Initializes the @p properties object from the @p stream. | 214 | Initializes the @p properties object from the @p stream. | ||
215 | */ | 215 | */ | ||
216 | KCALCORE_EXPORT QDataStream &operator>>(QDataStream &stream, | 216 | KCALCORE_EXPORT QDataStream &operator>>(QDataStream &stream, | ||
217 | KCalCore::CustomProperties &properties); | 217 | KCalendarCore::CustomProperties &properties); | ||
218 | 218 | | |||
219 | } | 219 | } | ||
220 | 220 | | |||
221 | #endif | 221 | #endif |