qt5
Last change
on this file since 6bd729b was
b6cd05c,
checked in by pavelpa <pavelpa@…>, 13 years ago
|
added 'alarm' columnt to the 'EVENT' table to signalize
that the event has/hasn't alarm set
|
-
Property mode set to
100644
|
File size:
607 bytes
|
Line | |
---|
1 | #ifndef ALARM_H |
---|
2 | #define ALARM_H |
---|
3 | |
---|
4 | #include <QObject> |
---|
5 | #include <QDateTime> |
---|
6 | |
---|
7 | extern "C" |
---|
8 | { |
---|
9 | #include <alarmd/libalarm.h> |
---|
10 | } |
---|
11 | |
---|
12 | #define APPID "alarm-example" |
---|
13 | |
---|
14 | class Alarm : public QObject |
---|
15 | { |
---|
16 | Q_OBJECT |
---|
17 | public: |
---|
18 | Alarm() {} |
---|
19 | ~Alarm() {} |
---|
20 | int addAlarm(int aEventId, const QDateTime &aDateTime); |
---|
21 | void deleteAlarm(int aEventId); |
---|
22 | static bool hasEventAlarm(int aEventId); |
---|
23 | signals: |
---|
24 | void alarmAdded(int aEventId); |
---|
25 | void addAlarmFailed(int aEventId); |
---|
26 | void alarmDeleted(int aEventId); |
---|
27 | void deleteAlarmFailed(int aEventId); |
---|
28 | }; |
---|
29 | |
---|
30 | #endif /* ALARM_H */ |
---|
31 | |
---|
Note: See
TracBrowser
for help on using the repository browser.