Diffstat (limited to 'noncore/apps/keyz-cfg/zkbxml.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/keyz-cfg/zkbxml.h | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/noncore/apps/keyz-cfg/zkbxml.h b/noncore/apps/keyz-cfg/zkbxml.h deleted file mode 100644 index 2b15cbb..0000000 --- a/noncore/apps/keyz-cfg/zkbxml.h +++ b/dev/null | |||
@@ -1,68 +0,0 @@ | |||
1 | #ifndef ZKBXML_H | ||
2 | #define ZKBXML_H | ||
3 | |||
4 | #include <qxml.h> | ||
5 | |||
6 | class ZkbXmlHandler : public QXmlDefaultHandler { | ||
7 | public: | ||
8 | ZkbXmlHandler(); | ||
9 | virtual ~ZkbXmlHandler(); | ||
10 | |||
11 | virtual bool startElement(const QString&, const QString&, | ||
12 | const QString& name, const QXmlAttributes& attr); | ||
13 | |||
14 | virtual bool endElement(const QString&, const QString&, | ||
15 | const QString& name); | ||
16 | |||
17 | virtual QString errorString(); | ||
18 | |||
19 | protected: | ||
20 | QString err; | ||
21 | QStringList elements; | ||
22 | |||
23 | virtual bool startKeymapElement(int ardelay, int arperiod, | ||
24 | const QString& author); | ||
25 | virtual bool startIncludeElement(const QString& file, | ||
26 | const QString& prfix); | ||
27 | virtual bool startLabelElement(const QString& label, | ||
28 | const QString& state); | ||
29 | virtual bool startStateElement(const QString& name, | ||
30 | const QString& parent, bool dflt); | ||
31 | virtual bool startMapElement(int key, bool pressed); | ||
32 | virtual bool startEventElement(int keycode, int unicode, int modifiers, | ||
33 | bool pressed, bool autorepeat); | ||
34 | virtual bool startNextStateElement(const QString& state); | ||
35 | |||
36 | virtual bool endKeymapElement(); | ||
37 | virtual bool endIncludeElement(); | ||
38 | virtual bool endLabelElement(); | ||
39 | virtual bool endStateElement(); | ||
40 | virtual bool endMapElement(); | ||
41 | virtual bool endEventElement(); | ||
42 | virtual bool endNextStateElement(); | ||
43 | |||
44 | bool start_keymap(const QXmlAttributes&); | ||
45 | bool start_include(const QXmlAttributes&); | ||
46 | bool start_label(const QXmlAttributes&); | ||
47 | bool start_state(const QXmlAttributes&); | ||
48 | bool start_map(const QXmlAttributes&); | ||
49 | bool start_event(const QXmlAttributes&); | ||
50 | bool start_next_state(const QXmlAttributes&); | ||
51 | bool end_keymap(); | ||
52 | bool end_include(); | ||
53 | bool end_label(); | ||
54 | bool end_state(); | ||
55 | bool end_map(); | ||
56 | bool end_event(); | ||
57 | bool end_next_state(); | ||
58 | |||
59 | void setError(const QString&); | ||
60 | int str2key(const QString&); | ||
61 | int str2modifier(const QString&); | ||
62 | bool str2bool(const QString&); | ||
63 | int str2unicode(const QString&); | ||
64 | int str2keycode(const QString&); | ||
65 | int str2uint(const QString&); | ||
66 | }; | ||
67 | |||
68 | #endif | ||