Diffstat (limited to 'libopie2/opiecore/device/odevice.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiecore/device/odevice.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libopie2/opiecore/device/odevice.h b/libopie2/opiecore/device/odevice.h index 5ee9cca..0ba58f0 100644 --- a/libopie2/opiecore/device/odevice.h +++ b/libopie2/opiecore/device/odevice.h | |||
@@ -139,48 +139,63 @@ enum OHardKey { | |||
139 | HardKey_Menu = Qt::Key_F11, | 139 | HardKey_Menu = Qt::Key_F11, |
140 | HardKey_Home = Qt::Key_F12, | 140 | HardKey_Home = Qt::Key_F12, |
141 | HardKey_Mail = Qt::Key_F13, | 141 | HardKey_Mail = Qt::Key_F13, |
142 | HardKey_Record = Qt::Key_F24, | 142 | HardKey_Record = Qt::Key_F24, |
143 | HardKey_Suspend = Qt::Key_F34, | 143 | HardKey_Suspend = Qt::Key_F34, |
144 | HardKey_Backlight = Qt::Key_F35, | 144 | HardKey_Backlight = Qt::Key_F35, |
145 | HardKey_Action = Qt::Key_F10, | 145 | HardKey_Action = Qt::Key_F10, |
146 | HardKey_OK = Qt::Key_F11, | 146 | HardKey_OK = Qt::Key_F11, |
147 | HardKey_End = Qt::Key_F12, | 147 | HardKey_End = Qt::Key_F12, |
148 | }; | 148 | }; |
149 | 149 | ||
150 | enum ODirection { | 150 | enum ODirection { |
151 | CW = 0, | 151 | CW = 0, |
152 | CCW = 1, | 152 | CCW = 1, |
153 | Flip = 2, | 153 | Flip = 2, |
154 | }; | 154 | }; |
155 | 155 | ||
156 | enum OHingeStatus { | 156 | enum OHingeStatus { |
157 | CASE_CLOSED = 3, | 157 | CASE_CLOSED = 3, |
158 | CASE_PORTRAIT = 2, | 158 | CASE_PORTRAIT = 2, |
159 | CASE_LANDSCAPE = 0, | 159 | CASE_LANDSCAPE = 0, |
160 | CASE_UNKNOWN = 1, | 160 | CASE_UNKNOWN = 1, |
161 | }; | 161 | }; |
162 | 162 | ||
163 | /* default button for qvfb or such | ||
164 | * see odevice.cpp for details. | ||
165 | * hint: manage a user defined button for qvfb? | ||
166 | * alwin | ||
167 | */ | ||
168 | struct default_button { | ||
169 | Qt::Key code; | ||
170 | char *utext; | ||
171 | char *pix; | ||
172 | char *fpressedservice; | ||
173 | char *fpressedaction; | ||
174 | char *fheldservice; | ||
175 | char *fheldaction; | ||
176 | }; | ||
177 | |||
163 | /** | 178 | /** |
164 | * A singleton which gives informations about device specefic option | 179 | * A singleton which gives informations about device specefic option |
165 | * like the Hardware used, LEDs, the Base Distribution and | 180 | * like the Hardware used, LEDs, the Base Distribution and |
166 | * hardware key mappings. | 181 | * hardware key mappings. |
167 | * | 182 | * |
168 | * @short A small class for device specefic options | 183 | * @short A small class for device specefic options |
169 | * @see QObject | 184 | * @see QObject |
170 | * @author Robert Griebl | 185 | * @author Robert Griebl |
171 | * @version 1.0 | 186 | * @version 1.0 |
172 | */ | 187 | */ |
173 | class ODevice : public QObject | 188 | class ODevice : public QObject |
174 | { | 189 | { |
175 | Q_OBJECT | 190 | Q_OBJECT |
176 | 191 | ||
177 | private: | 192 | private: |
178 | /* disable copy */ | 193 | /* disable copy */ |
179 | ODevice ( const ODevice & ); | 194 | ODevice ( const ODevice & ); |
180 | 195 | ||
181 | protected: | 196 | protected: |
182 | ODevice(); | 197 | ODevice(); |
183 | virtual void init(); | 198 | virtual void init(); |
184 | virtual void initButtons(); | 199 | virtual void initButtons(); |
185 | static void sendSuspendmsg(); | 200 | static void sendSuspendmsg(); |
186 | 201 | ||