summaryrefslogtreecommitdiff
path: root/libopie2/opiecore/device/odevice.h
Unidiff
Diffstat (limited to 'libopie2/opiecore/device/odevice.h') (more/less context) (show whitespace changes)
-rw-r--r--libopie2/opiecore/device/odevice.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/libopie2/opiecore/device/odevice.h b/libopie2/opiecore/device/odevice.h
index 8ae7ffa..791ccb3 100644
--- a/libopie2/opiecore/device/odevice.h
+++ b/libopie2/opiecore/device/odevice.h
@@ -216,51 +216,53 @@ public:
216 virtual bool setDisplayBrightness ( int brightness ); 216 virtual bool setDisplayBrightness ( int brightness );
217 virtual int displayBrightnessResolution() const; 217 virtual int displayBrightnessResolution() const;
218 virtual bool setDisplayContrast ( int contrast ); 218 virtual bool setDisplayContrast ( int contrast );
219 virtual int displayContrastResolution() const; 219 virtual int displayContrastResolution() const;
220 220
221 // don't add new virtual methods, use this: 221 // don't add new virtual methods, use this:
222 ///*virtual */ void boo(int i ) { return virtual_hook(1,&i); }; 222 ///*virtual */ void boo(int i ) { return virtual_hook(1,&i); };
223 // and in your subclass do do overwrite 223 // and in your subclass do do overwrite
224 //protected virtual int virtual_hook(int, void *) 224 //protected virtual int virtual_hook(int, void *)
225 // which is defined below 225 // which is defined below
226 226
227 // input / output 227 // input / output
228 //FIXME playAlarmSound and al might be better -zecke 228 virtual void playAlarmSound();
229 virtual void alarmSound(); 229 virtual void playKeySound();
230 virtual void keySound(); 230 virtual void playTouchSound();
231 virtual void touchSound();
232 231
233 virtual QValueList <OLed> ledList() const; 232 virtual QValueList <OLed> ledList() const;
234 virtual QValueList <OLedState> ledStateList ( OLed led ) const; 233 virtual QValueList <OLedState> ledStateList ( OLed led ) const;
235 virtual OLedState ledState ( OLed led ) const; 234 virtual OLedState ledState ( OLed led ) const;
236 virtual bool setLedState ( OLed led, OLedState st ); 235 virtual bool setLedState ( OLed led, OLedState st );
237 236
238 virtual bool hasLightSensor() const; 237 virtual bool hasLightSensor() const;
239 virtual int readLightSensor(); 238 virtual int readLightSensor();
240 virtual int lightSensorResolution() const; 239 virtual int lightSensorResolution() const;
241 240
242 virtual bool hasHingeSensor() const; 241 virtual bool hasHingeSensor() const;
243 virtual OHingeStatus readHingeSensor(); 242 virtual OHingeStatus readHingeSensor();
244 243
245 const QStrList &allowedCpuFrequencies() const; 244 const QStrList &allowedCpuFrequencies() const;
246 bool setCurrentCpuFrequency(uint index); 245 bool setCurrentCpuFrequency(uint index);
247 246
248 /** 247 /**
249 * Returns the available buttons on this device. The number and location 248 * Returns the available buttons on this device. The number and location
250 * of buttons will vary depending on the device. Button numbers will be assigned 249 * of buttons will vary depending on the device. Button numbers will be assigned
251 * by the device manufacturer and will be from most preferred button to least preffered 250 * by the device manufacturer and will be from most preferred button to least preffered
252 * button. Note that this list only contains "user mappable" buttons. 251 * button. Note that this list only contains "user mappable" buttons.
252 *
253 * @todo Make method const and take care of calling initButtons or make that const too
254 *
253 */ 255 */
254 const QValueList<ODeviceButton> &buttons() /* ### make const */; 256 const QValueList<ODeviceButton> &buttons();
255 257
256 /** 258 /**
257 * Returns the DeviceButton for the \a keyCode. If \a keyCode is not found, it 259 * Returns the DeviceButton for the \a keyCode. If \a keyCode is not found, it
258 * returns 0L 260 * returns 0L
259 */ 261 */
260 const ODeviceButton *buttonForKeycode ( ushort keyCode ); 262 const ODeviceButton *buttonForKeycode ( ushort keyCode );
261 263
262 /** 264 /**
263 * Reassigns the pressed action for \a button. To return to the factory 265 * Reassigns the pressed action for \a button. To return to the factory
264 * default pass an empty string as \a qcopMessage. 266 * default pass an empty string as \a qcopMessage.
265 */ 267 */
266 void remapPressedAction ( int button, const OQCopMessage &qcopMessage ); 268 void remapPressedAction ( int button, const OQCopMessage &qcopMessage );