author | alwin <alwin> | 2005-02-28 09:40:30 (UTC) |
---|---|---|
committer | alwin <alwin> | 2005-02-28 09:40:30 (UTC) |
commit | 2b64a84d39eeed5681d0ee5068c7d11a01527750 (patch) (unidiff) | |
tree | c8693340dbc5ef5e2f9afa90b690829ddff2c4bd /noncore/applets/keyhelper/keyhelperapplet/extension/KeyLauncher.h | |
parent | 61fa699140c5efbb6ba0bf2a62f7e8fbf62976be (diff) | |
download | opie-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/extension/KeyLauncher.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/applets/keyhelper/keyhelperapplet/extension/KeyLauncher.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/noncore/applets/keyhelper/keyhelperapplet/extension/KeyLauncher.h b/noncore/applets/keyhelper/keyhelperapplet/extension/KeyLauncher.h new file mode 100644 index 0000000..fbad3da --- a/dev/null +++ b/noncore/applets/keyhelper/keyhelperapplet/extension/KeyLauncher.h | |||
@@ -0,0 +1,63 @@ | |||
1 | #ifndef _KEY_LAUNCHER_H_ | ||
2 | #define _KEY_LAUNCHER_H_ | ||
3 | |||
4 | #include <qstring.h> | ||
5 | #include <qstringlist.h> | ||
6 | #include <qvaluelist.h> | ||
7 | |||
8 | #include <qpe/qpeapplication.h> | ||
9 | #include <qpe/config.h> | ||
10 | #include <qpe/applnk.h> | ||
11 | #include <qpe/global.h> | ||
12 | #include <qpe/qcopenvelope_qws.h> | ||
13 | |||
14 | #include "ExtensionInterface.h" | ||
15 | #include "KeyNames.h" | ||
16 | #include "LnkWrapper.h" | ||
17 | #include "ConfigEx.h" | ||
18 | |||
19 | class KeyLauncher : public ExtensionInterface | ||
20 | { | ||
21 | public: | ||
22 | KeyLauncher(const QString& kind = "launch"); | ||
23 | virtual ~KeyLauncher(); | ||
24 | |||
25 | virtual bool onKeyPress(int keycode); | ||
26 | virtual bool onModRelease(int /*modcode*/){return(false);} | ||
27 | virtual int getKeycode() | ||
28 | { | ||
29 | return(m_keycode); | ||
30 | } | ||
31 | virtual int getKeymask() | ||
32 | { | ||
33 | return(m_keymask); | ||
34 | } | ||
35 | virtual const QValueList<int>& getModcodes() | ||
36 | { | ||
37 | return(m_modcodes); | ||
38 | } | ||
39 | virtual void setKeycode(int keycode) | ||
40 | { | ||
41 | m_keycode = keycode; | ||
42 | } | ||
43 | virtual void setKeymask(int keymask) | ||
44 | { | ||
45 | m_keymask = keymask; | ||
46 | } | ||
47 | virtual void setModcodes(const QValueList<int>& modcodes) | ||
48 | { | ||
49 | m_modcodes = modcodes; | ||
50 | } | ||
51 | virtual const QString& kind() | ||
52 | { | ||
53 | return(m_kind); | ||
54 | } | ||
55 | private: | ||
56 | int m_keycode; | ||
57 | int m_keymask; | ||
58 | QString m_kind; | ||
59 | QValueList<int> m_modcodes; | ||
60 | }; | ||
61 | |||
62 | #endif /* _KEY_LAUNCHER_H_ */ | ||
63 | |||