-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathcalendarevent.h
62 lines (45 loc) · 1.36 KB
/
calendarevent.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#ifndef CALENDAREVENT_H
#define CALENDAREVENT_H
#include <QSharedDataPointer>
#include <QDateTime>
#include <QMetaType>
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(QDateTime alertTime READ alertTime WRITE setAlertTime)
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);
QDateTime alertTime() const;
void setAlertTime(const QDateTime &alertTime);
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<CalendarEventData> data;
};
}
#endif // CALENDAREVENT_H