-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathluaevent.h
43 lines (38 loc) · 890 Bytes
/
luaevent.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
#ifndef LUAEVENT_H
#define LUAEVENT_H
#include <QHash>
#include <QObject>
#include <QString>
class LuaEvent : public QObject
{
Q_OBJECT
public:
LuaEvent();
enum LuaEventType
{
EVENT_NONE = 0,
EVENT_FUN,
EVENT_EXIT,
EVENT_PAUSE,
EVENT_SET_TEXT,
EVENT_SET_TITLE,
EVENT_SET_FN_TEXT,
EVENT_END
};
enum LuaEventExraType
{
EXTRA_NONE = 0,
EXTRA_INT,
EXTRA_STRING,
EXTRA_HASH,
EXTRA_END
};
LuaEventType Type;
LuaEventExraType ExtraType;
int ExtraInt;
QString ExtraString;
QHash<QString, QString> ExtraHash;
LuaEvent(const LuaEvent &e) : QObject(), Type(e.Type), ExtraType(e.ExtraType), ExtraInt(e.ExtraInt), ExtraString(e.ExtraString), ExtraHash(e.ExtraHash) {}
LuaEvent &operator=(const LuaEvent &e);
};
#endif // LUAEVENT_H