Changeset View
Changeset View
Standalone View
Standalone View
src/customproperties.cpp
Show All 28 Lines | 21 | /** | |||
---|---|---|---|---|---|
29 | @author David Jarvie \<djarvie@kde.org\> | 29 | @author David Jarvie \<djarvie@kde.org\> | ||
30 | */ | 30 | */ | ||
31 | 31 | | |||
32 | #include "customproperties.h" | 32 | #include "customproperties.h" | ||
33 | 33 | | |||
34 | #include <QDataStream> | 34 | #include <QDataStream> | ||
35 | #include "kcalcore_debug.h" | 35 | #include "kcalcore_debug.h" | ||
36 | 36 | | |||
37 | using namespace KCalCore; | 37 | using namespace KCalendarCore; | ||
38 | 38 | | |||
39 | //@cond PRIVATE | 39 | //@cond PRIVATE | ||
40 | static bool checkName(const QByteArray &name); | 40 | static bool checkName(const QByteArray &name); | ||
41 | 41 | | |||
42 | class Q_DECL_HIDDEN CustomProperties::Private | 42 | class Q_DECL_HIDDEN CustomProperties::Private | ||
43 | { | 43 | { | ||
44 | public: | 44 | public: | ||
45 | bool operator==(const Private &other) const; | 45 | bool operator==(const Private &other) const; | ||
▲ Show 20 Lines • Show All 201 Lines • ▼ Show 20 Line(s) | 243 | if ((ch >= 'A' && ch <= 'Z') || | |||
247 | continue; | 247 | continue; | ||
248 | } | 248 | } | ||
249 | return false; // invalid character found | 249 | return false; // invalid character found | ||
250 | } | 250 | } | ||
251 | return true; | 251 | return true; | ||
252 | } | 252 | } | ||
253 | //@endcond | 253 | //@endcond | ||
254 | 254 | | |||
255 | QDataStream &KCalCore::operator<<(QDataStream &stream, | 255 | QDataStream &KCalendarCore::operator<<(QDataStream &stream, | ||
256 | const KCalCore::CustomProperties &properties) | 256 | const KCalendarCore::CustomProperties &properties) | ||
257 | { | 257 | { | ||
258 | return stream << properties.d->mProperties | 258 | return stream << properties.d->mProperties | ||
259 | << properties.d->mPropertyParameters; | 259 | << properties.d->mPropertyParameters; | ||
260 | } | 260 | } | ||
261 | 261 | | |||
262 | QDataStream &KCalCore::operator>>(QDataStream &stream, | 262 | QDataStream &KCalendarCore::operator>>(QDataStream &stream, | ||
263 | KCalCore::CustomProperties &properties) | 263 | KCalendarCore::CustomProperties &properties) | ||
264 | { | 264 | { | ||
265 | properties.d->mVolatileProperties.clear(); | 265 | properties.d->mVolatileProperties.clear(); | ||
266 | return stream >> properties.d->mProperties | 266 | return stream >> properties.d->mProperties | ||
267 | >> properties.d->mPropertyParameters; | 267 | >> properties.d->mPropertyParameters; | ||
268 | } | 268 | } | ||
269 | 269 | |