forked from dresden-elektronik/deconz-rest-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
event.h
33 lines (25 loc) · 723 Bytes
/
event.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
#ifndef EVENT_H
#define EVENT_H
#include <QString>
class Resource;
class ResourceItem;
class Event
{
public:
Event();
Event(const char *resource, const char *what, const QString &id, ResourceItem *item);
Event(const char *resource, const char *what, const QString &id);
Event(const char *resource, const char *what, int num);
const char *resource() const { return m_resource; }
const char *what() const { return m_what; }
const QString &id() const { return m_id; }
int num() const { return m_num; }
int numPrevious() const { return m_numPrev; }
private:
const char *m_resource;
const char *m_what;
QString m_id;
int m_num;
int m_numPrev;
};
#endif // EVENT_H