source: src/alarm/alarm.h @ 4693fa6

qt5
Last change on this file since 4693fa6 was cfd615d, checked in by pavelpa <pavelpa@…>, 13 years ago

work on alarm

  • Property mode set to 100644
File size: 606 bytes
Line 
1#ifndef ALARM_H
2#define ALARM_H
3
4#include <QObject>
5#include <QDateTime>
6
7extern "C"
8{
9#include <alarmd/libalarm.h>
10}
11
12#define APPID "fosdem-alarm"
13
14class 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.