author | zecke <zecke> | 2004-02-19 02:05:37 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-02-19 02:05:37 (UTC) |
commit | 34e732b3490bcad2cb05a1252ef5f06b3feef9ad (patch) (side-by-side diff) | |
tree | 1114cf4d32dd0955550536f93b4054f76207c90e /libopie/odevice.h | |
parent | f98fdfa6509fd1db5ea9ee834b5808ee12c8e697 (diff) | |
download | opie-34e732b3490bcad2cb05a1252ef5f06b3feef9ad.zip opie-34e732b3490bcad2cb05a1252ef5f06b3feef9ad.tar.gz opie-34e732b3490bcad2cb05a1252ef5f06b3feef9ad.tar.bz2 |
Add notes for API fixes and BC stuff
-rw-r--r-- | libopie/odevice.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libopie/odevice.h b/libopie/odevice.h index ee0b0ec..791d358 100644 --- a/libopie/odevice.h +++ b/libopie/odevice.h @@ -211,66 +211,68 @@ public: // don't add new virtual methods, use this: // /*virtual */ void boo(int i ) { return virtual_hook(1,&i); }; // and in your subclass do do overwrite // protected virtual int virtual_hook(int, void *) // which is defined below // input / output //FIXME playAlarmSound and al might be better -zecke virtual void alarmSound ( ); virtual void keySound ( ); virtual void touchSound ( ); virtual QValueList <OLed> ledList ( ) const; virtual QValueList <OLedState> ledStateList ( OLed led ) const; virtual OLedState ledState ( OLed led ) const; virtual bool setLedState ( OLed led, OLedState st ); virtual bool hasLightSensor ( ) const; virtual int readLightSensor ( ); virtual int lightSensorResolution ( ) const; virtual bool hasHingeSensor ( ) const; virtual OHingeStatus readHingeSensor ( ); const QStrList &allowedCpuFrequencies() const; bool setCurrentCpuFrequency(uint index); /** * Returns the available buttons on this device. The number and location * of buttons will vary depending on the device. Button numbers will be assigned * by the device manufacturer and will be from most preferred button to least preffered * button. Note that this list only contains "user mappable" buttons. + * + * @todo ### make const */ - const QValueList<ODeviceButton> &buttons ( ) /* ### make const */; + const QValueList<ODeviceButton> &buttons ( ) /** /todo ### make const */; /** * Returns the DeviceButton for the \a keyCode. If \a keyCode is not found, it * returns 0L */ const ODeviceButton *buttonForKeycode ( ushort keyCode ); /** * Reassigns the pressed action for \a button. To return to the factory * default pass an empty string as \a qcopMessage. */ void remapPressedAction ( int button, const OQCopMessage &qcopMessage ); /** * Reassigns the held action for \a button. To return to the factory * default pass an empty string as \a qcopMessage. */ void remapHeldAction ( int button, const OQCopMessage &qcopMessage ); /** * How long (in ms) you have to press a button for a "hold" action */ uint buttonHoldTime ( ) const; signals: void buttonMappingChanged ( ); private slots: void systemMessage ( const QCString &, const QByteArray & ); protected: void reloadButtonMapping ( ); |