Diffstat (limited to 'libopie2/opiecore/device/odevice.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiecore/device/odevice.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libopie2/opiecore/device/odevice.h b/libopie2/opiecore/device/odevice.h index 5db43ff..b8478b9 100644 --- a/libopie2/opiecore/device/odevice.h +++ b/libopie2/opiecore/device/odevice.h | |||
@@ -215,68 +215,68 @@ struct default_button { | |||
215 | * @short A small class for device specefic options | 215 | * @short A small class for device specefic options |
216 | * @see QObject | 216 | * @see QObject |
217 | * @author Robert Griebl | 217 | * @author Robert Griebl |
218 | * @version 1.0 | 218 | * @version 1.0 |
219 | */ | 219 | */ |
220 | class ODevice : public QObject | 220 | class ODevice : public QObject |
221 | { | 221 | { |
222 | Q_OBJECT | 222 | Q_OBJECT |
223 | 223 | ||
224 | private: | 224 | private: |
225 | /* disable copy */ | 225 | /* disable copy */ |
226 | ODevice ( const ODevice & ); | 226 | ODevice ( const ODevice & ); |
227 | 227 | ||
228 | protected: | 228 | protected: |
229 | ODevice(); | 229 | ODevice(); |
230 | virtual void init(const QString&); | 230 | virtual void init(const QString&); |
231 | virtual void initButtons(); | 231 | virtual void initButtons(); |
232 | static void sendSuspendmsg(); | 232 | static void sendSuspendmsg(); |
233 | 233 | ||
234 | ODeviceData *d; | 234 | ODeviceData *d; |
235 | 235 | ||
236 | public: | 236 | public: |
237 | // sandman do we want to allow destructions? -zecke? | 237 | // sandman do we want to allow destructions? -zecke? |
238 | virtual ~ODevice(); | 238 | virtual ~ODevice(); |
239 | |||
240 | static ODevice *inst(); | 239 | static ODevice *inst(); |
241 | 240 | ||
242 | // information | 241 | // information |
243 | |||
244 | QString modelString() const; | 242 | QString modelString() const; |
245 | OModel model() const; | 243 | OModel model() const; |
246 | inline OModel series() const { return (OModel) ( model() & Model_Series_Mask ); } | 244 | inline OModel series() const { return (OModel) ( model() & Model_Series_Mask ); } |
247 | 245 | ||
248 | QString vendorString() const; | 246 | QString vendorString() const; |
249 | OVendor vendor() const; | 247 | OVendor vendor() const; |
250 | 248 | ||
251 | QString systemString() const; | 249 | QString systemString() const; |
252 | OSystem system() const; | 250 | OSystem system() const; |
253 | 251 | ||
254 | QString systemVersionString() const; | 252 | QString systemVersionString() const; |
255 | 253 | ||
256 | virtual Transformation rotation() const; | 254 | virtual Transformation rotation() const; |
257 | virtual ODirection direction() const; | 255 | virtual ODirection direction() const; |
258 | 256 | ||
257 | QString qteDriver() const; | ||
258 | |||
259 | // system | 259 | // system |
260 | virtual bool suspend(); | 260 | virtual bool suspend(); |
261 | 261 | ||
262 | virtual bool setDisplayStatus ( bool on ); | 262 | virtual bool setDisplayStatus ( bool on ); |
263 | virtual bool setDisplayBrightness ( int brightness ); | 263 | virtual bool setDisplayBrightness ( int brightness ); |
264 | virtual int displayBrightnessResolution() const; | 264 | virtual int displayBrightnessResolution() const; |
265 | virtual bool setDisplayContrast ( int contrast ); | 265 | virtual bool setDisplayContrast ( int contrast ); |
266 | virtual int displayContrastResolution() const; | 266 | virtual int displayContrastResolution() const; |
267 | 267 | ||
268 | // don't add new virtual methods, use this: | 268 | // don't add new virtual methods, use this: |
269 | // /*virtual */ void boo(int i ) { return virtual_hook(1,&i); }; | 269 | // /*virtual */ void boo(int i ) { return virtual_hook(1,&i); }; |
270 | // and in your subclass do overwrite | 270 | // and in your subclass do overwrite |
271 | // protected virtual int virtual_hook(int, void *) | 271 | // protected virtual int virtual_hook(int, void *) |
272 | // which is defined below | 272 | // which is defined below |
273 | 273 | ||
274 | // input / output | 274 | // input / output |
275 | virtual void playAlarmSound(); | 275 | virtual void playAlarmSound(); |
276 | virtual void playKeySound(); | 276 | virtual void playKeySound(); |
277 | virtual void playTouchSound(); | 277 | virtual void playTouchSound(); |
278 | 278 | ||
279 | virtual QValueList <OLed> ledList() const; | 279 | virtual QValueList <OLed> ledList() const; |
280 | virtual QValueList <OLedState> ledStateList ( OLed led ) const; | 280 | virtual QValueList <OLedState> ledStateList ( OLed led ) const; |
281 | virtual OLedState ledState ( OLed led ) const; | 281 | virtual OLedState ledState ( OLed led ) const; |
282 | virtual bool setLedState ( OLed led, OLedState st ); | 282 | virtual bool setLedState ( OLed led, OLedState st ); |
@@ -338,43 +338,45 @@ protected: | |||
338 | void reloadButtonMapping(); | 338 | void reloadButtonMapping(); |
339 | void changeMixerForAlarm( int mixer, const char* file, Sound *snd); | 339 | void changeMixerForAlarm( int mixer, const char* file, Sound *snd); |
340 | 340 | ||
341 | /* ugly virtual hook */ | 341 | /* ugly virtual hook */ |
342 | virtual void virtual_hook( int id, void* data ); | 342 | virtual void virtual_hook( int id, void* data ); |
343 | }; | 343 | }; |
344 | 344 | ||
345 | class ODeviceData { | 345 | class ODeviceData { |
346 | 346 | ||
347 | public: | 347 | public: |
348 | QString m_vendorstr; | 348 | QString m_vendorstr; |
349 | OVendor m_vendor; | 349 | OVendor m_vendor; |
350 | 350 | ||
351 | QString m_modelstr; | 351 | QString m_modelstr; |
352 | OModel m_model; | 352 | OModel m_model; |
353 | 353 | ||
354 | QString m_systemstr; | 354 | QString m_systemstr; |
355 | OSystem m_system; | 355 | OSystem m_system; |
356 | 356 | ||
357 | QString m_sysverstr; | 357 | QString m_sysverstr; |
358 | 358 | ||
359 | Transformation m_rotation; | 359 | Transformation m_rotation; |
360 | ODirection m_direction; | 360 | ODirection m_direction; |
361 | 361 | ||
362 | QString m_qteDriver; | ||
363 | |||
362 | QValueList <ODeviceButton> *m_buttons; | 364 | QValueList <ODeviceButton> *m_buttons; |
363 | uint m_holdtime; | 365 | uint m_holdtime; |
364 | QStrList *m_cpu_frequencies; | 366 | QStrList *m_cpu_frequencies; |
365 | bool m_initializedButtonQcop : 1; | 367 | bool m_initializedButtonQcop : 1; |
366 | 368 | ||
367 | /* values for changeMixerForAlarm */ | 369 | /* values for changeMixerForAlarm */ |
368 | int m_sound, m_vol, m_mixer; | 370 | int m_sound, m_vol, m_mixer; |
369 | }; | 371 | }; |
370 | 372 | ||
371 | extern bool isQWS(); | 373 | extern bool isQWS(); |
372 | extern QCString makeChannel ( const char *str ); | 374 | extern QCString makeChannel ( const char *str ); |
373 | } | 375 | } |
374 | } | 376 | } |
375 | 377 | ||
376 | 378 | ||
377 | 379 | ||
378 | 380 | ||
379 | #endif | 381 | #endif |
380 | 382 | ||