Changeset View
Changeset View
Standalone View
Standalone View
src/person.h
Show All 32 Lines | |||||
33 | 33 | | |||
34 | #include "kcalcore_export.h" | 34 | #include "kcalcore_export.h" | ||
35 | 35 | | |||
36 | #include <QString> | 36 | #include <QString> | ||
37 | #include <QHash> | 37 | #include <QHash> | ||
38 | #include <QMetaType> | 38 | #include <QMetaType> | ||
39 | #include <QSharedDataPointer> | 39 | #include <QSharedDataPointer> | ||
40 | 40 | | |||
41 | namespace KCalCore | 41 | namespace KCalendarCore | ||
42 | { | 42 | { | ||
43 | 43 | | |||
44 | /** | 44 | /** | ||
45 | @brief | 45 | @brief | ||
46 | Represents a person, by name and email address. | 46 | Represents a person, by name and email address. | ||
47 | 47 | | |||
48 | This class represents a person, with a name and an email address. | 48 | This class represents a person, with a name and an email address. | ||
49 | It supports the "FirstName LastName\ <mail@domain\>" format. | 49 | It supports the "FirstName LastName\ <mail@domain\>" format. | ||
▲ Show 20 Lines • Show All 124 Lines • ▼ Show 20 Line(s) | 59 | public: | |||
174 | Person &operator=(const Person &person); | 174 | Person &operator=(const Person &person); | ||
175 | 175 | | |||
176 | private: | 176 | private: | ||
177 | //@cond PRIVATE | 177 | //@cond PRIVATE | ||
178 | class Private; | 178 | class Private; | ||
179 | QSharedDataPointer<Private> d; | 179 | QSharedDataPointer<Private> d; | ||
180 | //@endcond | 180 | //@endcond | ||
181 | 181 | | |||
182 | friend KCALCORE_EXPORT QDataStream &operator<<(QDataStream &s, const KCalCore::Person &person); | 182 | friend KCALCORE_EXPORT QDataStream &operator<<(QDataStream &s, const KCalendarCore::Person &person); | ||
183 | friend KCALCORE_EXPORT QDataStream &operator>>(QDataStream &s, KCalCore::Person &person); | 183 | friend KCALCORE_EXPORT QDataStream &operator>>(QDataStream &s, KCalendarCore::Person &person); | ||
184 | }; | 184 | }; | ||
185 | 185 | | |||
186 | /** | 186 | /** | ||
187 | Serializes the @p person object into the @p stream. | 187 | Serializes the @p person object into the @p stream. | ||
188 | */ | 188 | */ | ||
189 | KCALCORE_EXPORT QDataStream &operator<<(QDataStream &stream, const KCalCore::Person &person); | 189 | KCALCORE_EXPORT QDataStream &operator<<(QDataStream &stream, const KCalendarCore::Person &person); | ||
190 | 190 | | |||
191 | /** | 191 | /** | ||
192 | Initializes the @p person object from the @p stream. | 192 | Initializes the @p person object from the @p stream. | ||
193 | */ | 193 | */ | ||
194 | KCALCORE_EXPORT QDataStream &operator>>(QDataStream &stream, KCalCore::Person &person); | 194 | KCALCORE_EXPORT QDataStream &operator>>(QDataStream &stream, KCalendarCore::Person &person); | ||
195 | 195 | | |||
196 | /** | 196 | /** | ||
197 | Return a hash value for a Person argument. | 197 | Return a hash value for a Person argument. | ||
198 | @param key is a Person. | 198 | @param key is a Person. | ||
199 | */ | 199 | */ | ||
200 | KCALCORE_EXPORT uint qHash(const KCalCore::Person &key); | 200 | KCALCORE_EXPORT uint qHash(const KCalendarCore::Person &key); | ||
201 | 201 | | |||
202 | } | 202 | } | ||
203 | 203 | | |||
204 | //@cond PRIVATE | 204 | //@cond PRIVATE | ||
205 | Q_DECLARE_TYPEINFO(KCalCore::Person, Q_MOVABLE_TYPE); | 205 | Q_DECLARE_TYPEINFO(KCalendarCore::Person, Q_MOVABLE_TYPE); | ||
206 | Q_DECLARE_METATYPE(KCalCore::Person) | 206 | Q_DECLARE_METATYPE(KCalendarCore::Person) | ||
207 | //@endcond | 207 | //@endcond | ||
208 | 208 | | |||
209 | #endif | 209 | #endif |