summaryrefslogtreecommitdiff
path: root/noncore/applets/keyhelper/keyhelperapplet/extension/TaskSwitcher.h
Unidiff
Diffstat (limited to 'noncore/applets/keyhelper/keyhelperapplet/extension/TaskSwitcher.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/applets/keyhelper/keyhelperapplet/extension/TaskSwitcher.h61
1 files changed, 61 insertions, 0 deletions
diff --git a/noncore/applets/keyhelper/keyhelperapplet/extension/TaskSwitcher.h b/noncore/applets/keyhelper/keyhelperapplet/extension/TaskSwitcher.h
new file mode 100644
index 0000000..7bbde55
--- a/dev/null
+++ b/noncore/applets/keyhelper/keyhelperapplet/extension/TaskSwitcher.h
@@ -0,0 +1,61 @@
1#ifndef _TASK_SWITCHER_H_
2#define _TASK_SWITCHER_H_
3
4#include <qstring.h>
5#include <qstringlist.h>
6#include <qvaluelist.h>
7#include <qwindowsystem_qws.h>
8
9#include <qpe/global.h>
10
11#include "ExtensionInterface.h"
12
13class TaskSwitcher : public ExtensionInterface
14{
15public:
16 TaskSwitcher(const QString& kind = "switch");
17 virtual ~TaskSwitcher();
18
19 virtual bool onKeyPress(int keycode);
20 virtual bool onModRelease(int modcode);
21 virtual int getKeycode()
22 {
23 return(m_keycode);
24 }
25 virtual int getKeymask()
26 {
27 return(m_keymask);
28 }
29 virtual const QValueList<int>& getModcodes()
30 {
31 return(m_modcodes);
32 }
33 virtual void setKeycode(int keycode)
34 {
35 m_keycode = keycode;
36 }
37 virtual void setKeymask(int keymask)
38 {
39 m_keymask = keymask;
40 }
41 virtual void setModcodes(const QValueList<int>& modcodes)
42 {
43 m_modcodes = modcodes;
44 }
45 virtual const QString& kind()
46 {
47 return(m_kind);
48 }
49private:
50 int m_keycode;
51 int m_keymask;
52 QString m_kind;
53 QValueList<int> m_modcodes;
54
55 QStringList m_applist;
56 QStringList::Iterator m_appit;
57
58 void next();
59};
60
61#endif /* _TASK_SWITCHER_H_ */