Diffstat (limited to 'noncore/applets/keyhelper/keyhelperapplet/config/ExtensionsHandler.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/applets/keyhelper/keyhelperapplet/config/ExtensionsHandler.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/noncore/applets/keyhelper/keyhelperapplet/config/ExtensionsHandler.h b/noncore/applets/keyhelper/keyhelperapplet/config/ExtensionsHandler.h new file mode 100644 index 0000000..cc2422b --- a/dev/null +++ b/noncore/applets/keyhelper/keyhelperapplet/config/ExtensionsHandler.h | |||
@@ -0,0 +1,48 @@ | |||
1 | #ifndef _EXTENSIONS_HANDLER_H_ | ||
2 | #define _EXTENSIONS_HANDLER_H_ | ||
3 | |||
4 | #include <qstring.h> | ||
5 | #include <qstringlist.h> | ||
6 | #include <qvaluelist.h> | ||
7 | #include <qxml.h> | ||
8 | #include "KeyModifiers.h" | ||
9 | #include "KeyExtensions.h" | ||
10 | #include "KeyNames.h" | ||
11 | #include "KHUtil.h" | ||
12 | |||
13 | class ExtensionsHandler : public QXmlDefaultHandler | ||
14 | { | ||
15 | public: | ||
16 | void dispose(QXmlReader* parser, QXmlContentHandler* parent); | ||
17 | |||
18 | void setKeyModifiers(KeyModifiers* mod) | ||
19 | { | ||
20 | m_pModifiers = mod; | ||
21 | } | ||
22 | void setKeyExtensions(KeyExtensions* ext) | ||
23 | { | ||
24 | m_pExtensions = ext; | ||
25 | } | ||
26 | |||
27 | bool startElement(const QString& namespaceURI, | ||
28 | const QString& localName, | ||
29 | const QString& qName, | ||
30 | const QXmlAttributes& atts); | ||
31 | bool endElement(const QString& namespaceURI, | ||
32 | const QString& localName, | ||
33 | const QString& qName); | ||
34 | private: | ||
35 | QXmlContentHandler* m_parent; | ||
36 | QXmlReader* m_parser; | ||
37 | |||
38 | KeyModifiers* m_pModifiers; | ||
39 | KeyExtensions* m_pExtensions; | ||
40 | |||
41 | QString m_kind; | ||
42 | int m_code; | ||
43 | QStringList m_modlist; | ||
44 | //int m_mask; | ||
45 | |||
46 | }; | ||
47 | |||
48 | #endif /* _EXTENSIONS_HANDLER_H_ */ | ||