summaryrefslogtreecommitdiff
path: root/noncore/applets/keyhelper/keyhelperapplet/config/ExtensionsHandler.h
authoralwin <alwin>2005-02-28 09:40:30 (UTC)
committer alwin <alwin>2005-02-28 09:40:30 (UTC)
commit2b64a84d39eeed5681d0ee5068c7d11a01527750 (patch) (unidiff)
treec8693340dbc5ef5e2f9afa90b690829ddff2c4bd /noncore/applets/keyhelper/keyhelperapplet/config/ExtensionsHandler.h
parent61fa699140c5efbb6ba0bf2a62f7e8fbf62976be (diff)
downloadopie-2b64a84d39eeed5681d0ee5068c7d11a01527750.zip
opie-2b64a84d39eeed5681d0ee5068c7d11a01527750.tar.gz
opie-2b64a84d39eeed5681d0ee5068c7d11a01527750.tar.bz2
other keymapping tool - not working this moment, I have to check it out
- the reason is that the config file is somewhat easier to understand than from zkbapplet and has a nice config tool. Please don't put it into any repositories this moment.
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.h48
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
13class ExtensionsHandler : public QXmlDefaultHandler
14{
15public:
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);
34private:
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_ */