N9profile
[n9profile] / event.h
1 /** \file event.h
2   \brief   contain class for event
3   \author Jakub Šplíchal <jakub.bzouk@gmail.com>
4  */
5 #ifndef EVENT_H
6 #define EVENT_H
7
8 #include <QObject>
9 #include <QtCore/QDateTime>
10 class QTimer;
11
12 /** \class Event
13   \brief class for store event in calendars
14   class store events from calendar
15  */
16 class Event : public QObject
17 {
18     Q_OBJECT
19 public:
20     explicit Event(QObject *parent = 0);
21     void SetTime(QString I, QString des , QString sum, QDateTime SDate,QDateTime EDate);
22     QString GetSummary();
23     bool isNow();
24     bool isOld();
25     QString GetId();
26
27 signals:
28     void  s_event_change(Event *);
29 public slots:
30
31 private:
32     QTimer *timer;
33     QString Id_event;
34     QString summary; // title
35     QString description;
36     QDateTime start_Date;
37     QDateTime end_Date;
38
39     void timerSet();
40
41     bool is_now;
42     bool is_old;
43
44 private slots:
45     void TimerTimeout();
46 };
47
48 #endif // EVENT_H