Diffstat (limited to 'libopie2/opiecore/device/odevice.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiecore/device/odevice.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libopie2/opiecore/device/odevice.h b/libopie2/opiecore/device/odevice.h index 0eed1c9..492c97b 100644 --- a/libopie2/opiecore/device/odevice.h +++ b/libopie2/opiecore/device/odevice.h | |||
@@ -176,97 +176,97 @@ enum OLed { | |||
176 | 176 | ||
177 | enum OHardKey { | 177 | enum OHardKey { |
178 | HardKey_Datebook = Qt::Key_F9, | 178 | HardKey_Datebook = Qt::Key_F9, |
179 | HardKey_Contacts = Qt::Key_F10, | 179 | HardKey_Contacts = Qt::Key_F10, |
180 | HardKey_Menu = Qt::Key_F11, | 180 | HardKey_Menu = Qt::Key_F11, |
181 | HardKey_Home = Qt::Key_F12, | 181 | HardKey_Home = Qt::Key_F12, |
182 | HardKey_Mail = Qt::Key_F13, | 182 | HardKey_Mail = Qt::Key_F13, |
183 | HardKey_Record = Qt::Key_F24, | 183 | HardKey_Record = Qt::Key_F24, |
184 | HardKey_Suspend = Qt::Key_F34, | 184 | HardKey_Suspend = Qt::Key_F34, |
185 | HardKey_Backlight = Qt::Key_F35, | 185 | HardKey_Backlight = Qt::Key_F35, |
186 | HardKey_Action = Qt::Key_F10, | 186 | HardKey_Action = Qt::Key_F10, |
187 | HardKey_OK = Qt::Key_F11, | 187 | HardKey_OK = Qt::Key_F11, |
188 | HardKey_End = Qt::Key_F12, | 188 | HardKey_End = Qt::Key_F12, |
189 | }; | 189 | }; |
190 | 190 | ||
191 | enum ODirection { | 191 | enum ODirection { |
192 | CW = 0, | 192 | CW = 0, |
193 | CCW = 1, | 193 | CCW = 1, |
194 | Flip = 2, | 194 | Flip = 2, |
195 | }; | 195 | }; |
196 | 196 | ||
197 | enum OHingeStatus { | 197 | enum OHingeStatus { |
198 | CASE_CLOSED = 3, | 198 | CASE_CLOSED = 3, |
199 | CASE_PORTRAIT = 2, | 199 | CASE_PORTRAIT = 2, |
200 | CASE_LANDSCAPE = 0, | 200 | CASE_LANDSCAPE = 0, |
201 | CASE_UNKNOWN = 1, | 201 | CASE_UNKNOWN = 1, |
202 | }; | 202 | }; |
203 | 203 | ||
204 | /* default button for qvfb or such | 204 | /* default button for qvfb or such |
205 | * see odevice.cpp for details. | 205 | * see odevice.cpp for details. |
206 | * hint: manage a user defined button for qvfb? | 206 | * hint: manage a user defined button for qvfb? |
207 | * alwin | 207 | * alwin |
208 | */ | 208 | */ |
209 | struct default_button { | 209 | struct default_button { |
210 | Qt::Key code; | 210 | Qt::Key code; |
211 | char *utext; | 211 | char *utext; |
212 | char *pix; | 212 | char *pix; |
213 | char *fpressedservice; | 213 | char *fpressedservice; |
214 | char *fpressedaction; | 214 | char *fpressedaction; |
215 | char *fheldservice; | 215 | char *fheldservice; |
216 | char *fheldaction; | 216 | char *fheldaction; |
217 | }; | 217 | }; |
218 | 218 | ||
219 | /** | 219 | /** |
220 | * A singleton which gives informations about device specefic option | 220 | * A singleton which gives informations about device specefic option |
221 | * like the Hardware used, LEDs, the Base Distribution and | 221 | * like the Hardware used, LEDs, the Base Distribution and |
222 | * hardware key mappings. | 222 | * hardware key mappings. |
223 | * | 223 | * |
224 | * @short A small class for device specefic options | 224 | * @short A small class for device specific options |
225 | * @see QObject | 225 | * @see QObject |
226 | * @author Robert Griebl | 226 | * @author Robert Griebl |
227 | * @version 1.0 | 227 | * @version 1.0 |
228 | */ | 228 | */ |
229 | class ODevice : public QObject | 229 | class ODevice : public QObject |
230 | { | 230 | { |
231 | Q_OBJECT | 231 | Q_OBJECT |
232 | 232 | ||
233 | private: | 233 | private: |
234 | /* disable copy */ | 234 | /* disable copy */ |
235 | ODevice ( const ODevice & ); | 235 | ODevice ( const ODevice & ); |
236 | 236 | ||
237 | protected: | 237 | protected: |
238 | ODevice(); | 238 | ODevice(); |
239 | virtual void init(const QString&); | 239 | virtual void init(const QString&); |
240 | virtual void initButtons(); | 240 | virtual void initButtons(); |
241 | static void sendSuspendmsg(); | 241 | static void sendSuspendmsg(); |
242 | 242 | ||
243 | ODeviceData *d; | 243 | ODeviceData *d; |
244 | 244 | ||
245 | public: | 245 | public: |
246 | // sandman do we want to allow destructions? -zecke? | 246 | // sandman do we want to allow destructions? -zecke? |
247 | virtual ~ODevice(); | 247 | virtual ~ODevice(); |
248 | static ODevice *inst(); | 248 | static ODevice *inst(); |
249 | 249 | ||
250 | // information | 250 | // information |
251 | QString modelString() const; | 251 | QString modelString() const; |
252 | OModel model() const; | 252 | OModel model() const; |
253 | inline OModel series() const { return (OModel) ( model() & Model_Series_Mask ); } | 253 | inline OModel series() const { return (OModel) ( model() & Model_Series_Mask ); } |
254 | 254 | ||
255 | QString vendorString() const; | 255 | QString vendorString() const; |
256 | OVendor vendor() const; | 256 | OVendor vendor() const; |
257 | 257 | ||
258 | QString systemString() const; | 258 | QString systemString() const; |
259 | OSystem system() const; | 259 | OSystem system() const; |
260 | 260 | ||
261 | QString systemVersionString() const; | 261 | QString systemVersionString() const; |
262 | 262 | ||
263 | virtual Transformation rotation() const; | 263 | virtual Transformation rotation() const; |
264 | virtual ODirection direction() const; | 264 | virtual ODirection direction() const; |
265 | 265 | ||
266 | QString qteDriver() const; | 266 | QString qteDriver() const; |
267 | 267 | ||
268 | // system | 268 | // system |
269 | virtual bool suspend(); | 269 | virtual bool suspend(); |
270 | 270 | ||
271 | virtual bool setDisplayStatus ( bool on ); | 271 | virtual bool setDisplayStatus ( bool on ); |
272 | virtual bool setDisplayBrightness ( int brightness ); | 272 | virtual bool setDisplayBrightness ( int brightness ); |