author | zecke <zecke> | 2004-05-10 21:08:55 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-05-10 21:08:55 (UTC) |
commit | 613e0a6b246d8dcfd808089b2b6a1dc0501732da (patch) (unidiff) | |
tree | f08854dc0b7121777badeb6cef1007ae8c53a1e1 | |
parent | 0e1086dfe7238cbee8553828afaf32aae4cee70d (diff) | |
download | opie-613e0a6b246d8dcfd808089b2b6a1dc0501732da.zip opie-613e0a6b246d8dcfd808089b2b6a1dc0501732da.tar.gz opie-613e0a6b246d8dcfd808089b2b6a1dc0501732da.tar.bz2 |
Some virtuals which we discussed some time back...
-rw-r--r-- | libopie2/opiecore/okeyconfigmanager.h | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/libopie2/opiecore/okeyconfigmanager.h b/libopie2/opiecore/okeyconfigmanager.h index b861675..d0a6247 100644 --- a/libopie2/opiecore/okeyconfigmanager.h +++ b/libopie2/opiecore/okeyconfigmanager.h | |||
@@ -136,23 +136,30 @@ private: | |||
136 | * the event filter and get a signal. | 136 | * the event filter and get a signal. |
137 | * You need to load and save yourself! | 137 | * You need to load and save yourself! |
138 | * | 138 | * |
139 | * Again if you want to extend it and I missed a virtual, tell me so I can improve (zecke@handhelds.org) | ||
140 | * | ||
139 | * @since 1.1.2 | 141 | * @since 1.1.2 |
140 | */ | 142 | */ |
141 | class OKeyConfigManager : public QObject { | 143 | class OKeyConfigManager : public QObject { |
142 | Q_OBJECT | 144 | Q_OBJECT |
143 | typedef QMap<int, OKeyConfigItem::List> OKeyMapConfigPrivate; | 145 | typedef QMap<int, OKeyConfigItem::List> OKeyMapConfigPrivate; |
144 | public: | 146 | public: |
147 | enum EventMask { | ||
148 | MaskPressed = 0x1, | ||
149 | MaskReleased = 0x2, | ||
150 | }; | ||
151 | |||
145 | OKeyConfigManager(Opie::Core::OConfig *conf = 0, | 152 | OKeyConfigManager(Opie::Core::OConfig *conf = 0, |
146 | const QString& group = QString::null, | 153 | const QString& group = QString::null, |
147 | const OKeyPair::List &block = OKeyPair::List(), | 154 | const OKeyPair::List &block = OKeyPair::List(), |
148 | bool grabkeyboard = false, QObject * par = 0, | 155 | bool grabkeyboard = false, QObject * par = 0, |
149 | const char* name = 0 ); | 156 | const char* name = 0 ); |
150 | ~OKeyConfigManager(); | 157 | virtual ~OKeyConfigManager(); |
151 | 158 | ||
152 | void load(); | 159 | virtual void load(); |
153 | void save(); | 160 | virtual void save(); |
154 | 161 | ||
155 | OKeyConfigItem handleKeyEvent( QKeyEvent* ); | 162 | virtual OKeyConfigItem handleKeyEvent( QKeyEvent* ); |
156 | int handleKeyEventId( QKeyEvent* ); | 163 | int handleKeyEventId( QKeyEvent* ); |
157 | 164 | ||
158 | void addKeyConfig( const OKeyConfigItem& ); | 165 | void addKeyConfig( const OKeyConfigItem& ); |
@@ -211,10 +218,6 @@ public: | |||
211 | 218 | ||
212 | OKeyConfigItem::List keyConfigList()const; | 219 | OKeyConfigItem::List keyConfigList()const; |
213 | 220 | ||
214 | enum EventMask { | ||
215 | MaskPressed = 0x1, | ||
216 | MaskReleased = 0x2, | ||
217 | }; | ||
218 | signals: | 221 | signals: |
219 | /** | 222 | /** |
220 | * The Signals are triggered on KeyPress and KeyRelease! | 223 | * The Signals are triggered on KeyPress and KeyRelease! |