Changeset View
Changeset View
Standalone View
Standalone View
src/event.h
Show All 27 Lines | |||||
28 | #ifndef KCALCORE_EVENT_H | 28 | #ifndef KCALCORE_EVENT_H | ||
29 | #define KCALCORE_EVENT_H | 29 | #define KCALCORE_EVENT_H | ||
30 | 30 | | |||
31 | #include "kcalcore_export.h" | 31 | #include "kcalcore_export.h" | ||
32 | #include "incidence.h" | 32 | #include "incidence.h" | ||
33 | 33 | | |||
34 | #include <QTimeZone> | 34 | #include <QTimeZone> | ||
35 | 35 | | |||
36 | namespace KCalCore | 36 | namespace KCalendarCore | ||
37 | { | 37 | { | ||
38 | 38 | | |||
39 | /** | 39 | /** | ||
40 | @brief | 40 | @brief | ||
41 | This class provides an Event in the sense of RFC2445. | 41 | This class provides an Event in the sense of RFC2445. | ||
42 | */ | 42 | */ | ||
43 | class KCALCORE_EXPORT Event : public Incidence | 43 | class KCALCORE_EXPORT Event : public Incidence | ||
44 | { | 44 | { | ||
45 | Q_GADGET | 45 | Q_GADGET | ||
46 | Q_PROPERTY(QDateTime dtEnd READ dtEnd WRITE setDtEnd) | 46 | Q_PROPERTY(QDateTime dtEnd READ dtEnd WRITE setDtEnd) | ||
47 | Q_PROPERTY(KCalCore::Event::Transparency transparency READ transparency WRITE setTransparency) | 47 | Q_PROPERTY(KCalendarCore::Event::Transparency transparency READ transparency WRITE setTransparency) | ||
48 | public: | 48 | public: | ||
49 | /** | 49 | /** | ||
50 | The different Event transparency types. | 50 | The different Event transparency types. | ||
51 | */ | 51 | */ | ||
52 | enum Transparency { | 52 | enum Transparency { | ||
53 | Opaque, /**< Event appears in free/busy time */ | 53 | Opaque, /**< Event appears in free/busy time */ | ||
54 | Transparent /**< Event does @b not appear in free/busy time */ | 54 | Transparent /**< Event does @b not appear in free/busy time */ | ||
55 | }; | 55 | }; | ||
▲ Show 20 Lines • Show All 161 Lines • ▼ Show 20 Line(s) | |||||
217 | 217 | | |||
218 | /** | 218 | /** | ||
219 | @copydoc | 219 | @copydoc | ||
220 | Incidence::supportsGroupwareCommunication() | 220 | Incidence::supportsGroupwareCommunication() | ||
221 | */ | 221 | */ | ||
222 | Q_REQUIRED_RESULT bool supportsGroupwareCommunication() const override; | 222 | Q_REQUIRED_RESULT bool supportsGroupwareCommunication() const override; | ||
223 | 223 | | |||
224 | /** | 224 | /** | ||
225 | Returns the Akonadi specific sub MIME type of a KCalCore::Event. | 225 | Returns the Akonadi specific sub MIME type of a KCalendarCore::Event. | ||
226 | */ | 226 | */ | ||
227 | Q_REQUIRED_RESULT static QLatin1String eventMimeType(); | 227 | Q_REQUIRED_RESULT static QLatin1String eventMimeType(); | ||
228 | 228 | | |||
229 | protected: | 229 | protected: | ||
230 | /** | 230 | /** | ||
231 | Compares two events for equality. | 231 | Compares two events for equality. | ||
232 | @param event is the event to compare. | 232 | @param event is the event to compare. | ||
233 | */ | 233 | */ | ||
Show All 31 Lines | 248 | private: | |||
265 | void deserialize(QDataStream &in) override; | 265 | void deserialize(QDataStream &in) override; | ||
266 | 266 | | |||
267 | //@cond PRIVATE | 267 | //@cond PRIVATE | ||
268 | class Private; | 268 | class Private; | ||
269 | Private *const d; | 269 | Private *const d; | ||
270 | //@endcond | 270 | //@endcond | ||
271 | }; | 271 | }; | ||
272 | 272 | | |||
273 | } // namespace KCalCore | 273 | } // namespace KCalendarCore | ||
274 | 274 | | |||
275 | //@cond PRIVATE | 275 | //@cond PRIVATE | ||
276 | Q_DECLARE_TYPEINFO(KCalCore::Event::Ptr, Q_MOVABLE_TYPE); | 276 | Q_DECLARE_TYPEINFO(KCalendarCore::Event::Ptr, Q_MOVABLE_TYPE); | ||
277 | Q_DECLARE_METATYPE(KCalCore::Event::Ptr) | 277 | Q_DECLARE_METATYPE(KCalendarCore::Event::Ptr) | ||
278 | Q_DECLARE_METATYPE(KCalCore::Event *) | 278 | Q_DECLARE_METATYPE(KCalendarCore::Event *) | ||
279 | //@endcond | 279 | //@endcond | ||
280 | 280 | | |||
281 | #endif | 281 | #endif |