summaryrefslogtreecommitdiff
path: root/libopie2/opiecore/device/odevice.h
Unidiff
Diffstat (limited to 'libopie2/opiecore/device/odevice.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/device/odevice.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libopie2/opiecore/device/odevice.h b/libopie2/opiecore/device/odevice.h
index c434216..e7cd82a 100644
--- a/libopie2/opiecore/device/odevice.h
+++ b/libopie2/opiecore/device/odevice.h
@@ -264,49 +264,49 @@ public:
264 virtual bool setDisplayContrast ( int contrast ); 264 virtual bool setDisplayContrast ( int contrast );
265 virtual int displayContrastResolution() const; 265 virtual int displayContrastResolution() const;
266 266
267 // don't add new virtual methods, use this: 267 // don't add new virtual methods, use this:
268 // /*virtual */ void boo(int i ) { return virtual_hook(1,&i); }; 268 // /*virtual */ void boo(int i ) { return virtual_hook(1,&i); };
269 // and in your subclass do overwrite 269 // and in your subclass do overwrite
270 // protected virtual int virtual_hook(int, void *) 270 // protected virtual int virtual_hook(int, void *)
271 // which is defined below 271 // which is defined below
272 272
273 // input / output 273 // input / output
274 virtual void playAlarmSound(); 274 virtual void playAlarmSound();
275 virtual void playKeySound(); 275 virtual void playKeySound();
276 virtual void playTouchSound(); 276 virtual void playTouchSound();
277 277
278 virtual QValueList <OLed> ledList() const; 278 virtual QValueList <OLed> ledList() const;
279 virtual QValueList <OLedState> ledStateList ( OLed led ) const; 279 virtual QValueList <OLedState> ledStateList ( OLed led ) const;
280 virtual OLedState ledState ( OLed led ) const; 280 virtual OLedState ledState ( OLed led ) const;
281 virtual bool setLedState ( OLed led, OLedState st ); 281 virtual bool setLedState ( OLed led, OLedState st );
282 282
283 virtual bool hasLightSensor() const; 283 virtual bool hasLightSensor() const;
284 virtual int readLightSensor(); 284 virtual int readLightSensor();
285 virtual int lightSensorResolution() const; 285 virtual int lightSensorResolution() const;
286 286
287 virtual bool hasHingeSensor() const; 287 virtual bool hasHingeSensor() const;
288 virtual OHingeStatus readHingeSensor(); 288 virtual OHingeStatus readHingeSensor()const;
289 289
290 const QStrList &allowedCpuFrequencies() const; 290 const QStrList &allowedCpuFrequencies() const;
291 bool setCurrentCpuFrequency(uint index); 291 bool setCurrentCpuFrequency(uint index);
292 292
293 /** 293 /**
294 * Returns the available buttons on this device. The number and location 294 * Returns the available buttons on this device. The number and location
295 * of buttons will vary depending on the device. Button numbers will be assigned 295 * of buttons will vary depending on the device. Button numbers will be assigned
296 * by the device manufacturer and will be from most preferred button to least preffered 296 * by the device manufacturer and will be from most preferred button to least preffered
297 * button. Note that this list only contains "user mappable" buttons. 297 * button. Note that this list only contains "user mappable" buttons.
298 * 298 *
299 * @todo Make method const and take care of calling initButtons or make that const too 299 * @todo Make method const and take care of calling initButtons or make that const too
300 * 300 *
301 */ 301 */
302 const QValueList<ODeviceButton> &buttons(); 302 const QValueList<ODeviceButton> &buttons();
303 303
304 /** 304 /**
305 * Returns the DeviceButton for the \a keyCode. If \a keyCode is not found, it 305 * Returns the DeviceButton for the \a keyCode. If \a keyCode is not found, it
306 * returns 0L 306 * returns 0L
307 */ 307 */
308 const ODeviceButton *buttonForKeycode ( ushort keyCode ); 308 const ODeviceButton *buttonForKeycode ( ushort keyCode );
309 309
310 /** 310 /**
311 * Reassigns the pressed action for \a button. To return to the factory 311 * Reassigns the pressed action for \a button. To return to the factory
312 * default pass an empty string as \a qcopMessage. 312 * default pass an empty string as \a qcopMessage.