From fa539e0228bb618516372d330b9e57f8f482d422 Mon Sep 17 00:00:00 2001 From: Javier Date: Sun, 28 Aug 2016 17:03:04 +0200 Subject: add calendar feature --- calendarevent.h | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 calendarevent.h (limited to 'calendarevent.h') diff --git a/calendarevent.h b/calendarevent.h new file mode 100644 index 0000000..40aa2fc --- /dev/null +++ b/calendarevent.h @@ -0,0 +1,57 @@ +#ifndef CALENDAREVENT_H +#define CALENDAREVENT_H + +#include +#include + +namespace watchfish +{ + +struct CalendarEventData; + +class CalendarEvent +{ + Q_GADGET + + Q_PROPERTY(QString uid READ uid WRITE setUid) + Q_PROPERTY(QDateTime start READ start WRITE setStart) + Q_PROPERTY(QDateTime end READ end WRITE setEnd) + Q_PROPERTY(QString title READ title WRITE setTitle) + Q_PROPERTY(QString location READ location WRITE setLocation) + Q_PROPERTY(QString description READ description WRITE setDescription) + Q_PROPERTY(bool allDay READ allDay WRITE setAllDay) + +public: + CalendarEvent(); + CalendarEvent(const CalendarEvent &); + CalendarEvent &operator=(const CalendarEvent &); + ~CalendarEvent(); + + QString uid() const; + void setUid(const QString &uid); + + QDateTime start() const; + void setStart(const QDateTime &state); + + QDateTime end() const; + void setEnd(const QDateTime &end); + + QString title() const; + void setTitle(const QString &v); + + QString location() const; + void setLocation(const QString &v); + + QString description() const; + void setDescription(const QString &v); + + bool allDay() const; + void setAllDay(bool allDay); + +private: + QSharedDataPointer data; +}; + +} + +#endif // CALENDAREVENT_H -- cgit v1.2.3