Diffstat (limited to 'noncore/applets/keyhelper/keyhelperapplet/extension/KeyExtensions.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/applets/keyhelper/keyhelperapplet/extension/KeyExtensions.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/noncore/applets/keyhelper/keyhelperapplet/extension/KeyExtensions.h b/noncore/applets/keyhelper/keyhelperapplet/extension/KeyExtensions.h new file mode 100644 index 0000000..20ffc45 --- a/dev/null +++ b/noncore/applets/keyhelper/keyhelperapplet/extension/KeyExtensions.h @@ -0,0 +1,40 @@ +#ifndef _KEY_EXTENSIONS_H_ +#define _KEY_EXTENSIONS_H_ + +#include <qstring.h> +#include <qstringlist.h> +#include "KeyNames.h" +#include "KeyModifiers.h" +#include "ExtensionFactory.h" + +class KeyExtensions +{ +public: + KeyExtensions(); + ~KeyExtensions(); + + void setKeyModifiers(KeyModifiers* mod) + { + m_pModifiers = mod; + } + + void assign(const QString& kind, int keycode, + int keymask, const QValueList<int>& modcodes); + void assign(const QString& kind, int keycode, + int keymask, int modcode); + bool doKey(int keycode, int keymask, bool isPress); + + void statistics(); + + void reset(); + void init(); +private: + KeyModifiers* m_pModifiers; + ExtensionFactory m_oExtFactory; + int m_cancelcode; + + void clear(); +}; + +#endif /* _KEY_EXTENSIONS_H_ */ + |