summaryrefslogtreecommitdiff
path: root/noncore/applets/keyhelper/keyhelperapplet/config/KeycfgHandler.h
Unidiff
Diffstat (limited to 'noncore/applets/keyhelper/keyhelperapplet/config/KeycfgHandler.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/applets/keyhelper/keyhelperapplet/config/KeycfgHandler.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/noncore/applets/keyhelper/keyhelperapplet/config/KeycfgHandler.h b/noncore/applets/keyhelper/keyhelperapplet/config/KeycfgHandler.h
new file mode 100644
index 0000000..9ddded3
--- a/dev/null
+++ b/noncore/applets/keyhelper/keyhelperapplet/config/KeycfgHandler.h
@@ -0,0 +1,56 @@
1#ifndef _KEYCFG_HANDLER_H_
2#define _KEYCFG_HANDLER_H_
3
4#include <qxml.h>
5#include <qstring.h>
6#include "ModifiersHandler.h"
7#include "MappingsHandler.h"
8#include "ExtensionsHandler.h"
9#include "RepeaterHandler.h"
10
11class KeycfgHandler : public QXmlDefaultHandler
12{
13public:
14 KeycfgHandler(QXmlReader* parser);
15 ~KeycfgHandler();
16
17 void dispose(QXmlReader* parser, QXmlContentHandler* parent);
18
19 void setKeyModifiers(KeyModifiers* mod)
20 {
21 m_pModifiers = mod;
22 }
23 void setKeyMappings(KeyMappings* map)
24 {
25 m_pMappings = map;
26 }
27 void setKeyExtensions(KeyExtensions* ext)
28 {
29 m_pExtensions = ext;
30 }
31 void setKeyRepeater(KeyRepeater* rep)
32 {
33 m_pRepeater = rep;
34 }
35
36
37 bool startElement(const QString& namespaceURI,
38 const QString& localName,
39 const QString& qName,
40 const QXmlAttributes& atts);
41private:
42 QXmlContentHandler* m_parent;
43 QXmlReader* m_parser;
44
45 ModifiersHandler* m_pModHandler;
46 MappingsHandler* m_pMapHandler;
47 ExtensionsHandler* m_pExtHandler;
48 RepeaterHandler* m_pRepHandler;
49
50 KeyModifiers* m_pModifiers;
51 KeyMappings* m_pMappings;
52 KeyExtensions* m_pExtensions;
53 KeyRepeater* m_pRepeater;
54};
55
56#endif /* _KEYCFG_HANDLER_H_ */