author | schurig <schurig> | 2003-06-17 06:34:27 (UTC) |
---|---|---|
committer | schurig <schurig> | 2003-06-17 06:34:27 (UTC) |
commit | 350e9cf9f8607202d78cba4400aec90ad075a763 (patch) (unidiff) | |
tree | 69fa6761dda8893c9c801f5408bff837e3f54c7d | |
parent | 9d006f21949fc9a25e323e2fd20fab0bfb249b49 (diff) | |
download | opie-350e9cf9f8607202d78cba4400aec90ad075a763.zip opie-350e9cf9f8607202d78cba4400aec90ad075a763.tar.gz opie-350e9cf9f8607202d78cba4400aec90ad075a763.tar.bz2 |
added helpful comment on usage of virtualHook
-rw-r--r-- | libopie/odevice.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libopie/odevice.h b/libopie/odevice.h index a232d69..650a2da 100644 --- a/libopie/odevice.h +++ b/libopie/odevice.h | |||
@@ -170,32 +170,38 @@ public: | |||
170 | QString systemVersionString ( ) const; | 170 | QString systemVersionString ( ) const; |
171 | 171 | ||
172 | Transformation rotation ( ) const; | 172 | Transformation rotation ( ) const; |
173 | ODirection direction ( ) const; | 173 | ODirection direction ( ) const; |
174 | 174 | ||
175 | // system | 175 | // system |
176 | 176 | ||
177 | virtual bool setSoftSuspend ( bool on ); | 177 | virtual bool setSoftSuspend ( bool on ); |
178 | virtual bool suspend ( ); | 178 | virtual bool suspend ( ); |
179 | 179 | ||
180 | virtual bool setDisplayStatus ( bool on ); | 180 | virtual bool setDisplayStatus ( bool on ); |
181 | virtual bool setDisplayBrightness ( int brightness ); | 181 | virtual bool setDisplayBrightness ( int brightness ); |
182 | virtual int displayBrightnessResolution ( ) const; | 182 | virtual int displayBrightnessResolution ( ) const; |
183 | virtual bool setDisplayContrast ( int contrast ); | 183 | virtual bool setDisplayContrast ( int contrast ); |
184 | virtual int displayContrastResolution ( ) const; | 184 | virtual int displayContrastResolution ( ) const; |
185 | 185 | ||
186 | // don't add new virtual methods, use this: | ||
187 | ///*virtual */ void boo(int i ) { return virtual_hook(1,&i); }; | ||
188 | // and in your subclass do do overwrite | ||
189 | //protected virtual int virtual_hook(int, void *) | ||
190 | // which is defined below | ||
191 | |||
186 | // input / output | 192 | // input / output |
187 | //FIXME playAlarmSound and al might be better -zecke | 193 | //FIXME playAlarmSound and al might be better -zecke |
188 | virtual void alarmSound ( ); | 194 | virtual void alarmSound ( ); |
189 | virtual void keySound ( ); | 195 | virtual void keySound ( ); |
190 | virtual void touchSound ( ); | 196 | virtual void touchSound ( ); |
191 | 197 | ||
192 | virtual QValueList <OLed> ledList ( ) const; | 198 | virtual QValueList <OLed> ledList ( ) const; |
193 | virtual QValueList <OLedState> ledStateList ( OLed led ) const; | 199 | virtual QValueList <OLedState> ledStateList ( OLed led ) const; |
194 | virtual OLedState ledState ( OLed led ) const; | 200 | virtual OLedState ledState ( OLed led ) const; |
195 | virtual bool setLedState ( OLed led, OLedState st ); | 201 | virtual bool setLedState ( OLed led, OLedState st ); |
196 | 202 | ||
197 | virtual bool hasLightSensor ( ) const; | 203 | virtual bool hasLightSensor ( ) const; |
198 | virtual int readLightSensor ( ); | 204 | virtual int readLightSensor ( ); |
199 | virtual int lightSensorResolution ( ) const; | 205 | virtual int lightSensorResolution ( ) const; |
200 | 206 | ||
201 | const QStrList &allowedCpuFrequencies() const; | 207 | const QStrList &allowedCpuFrequencies() const; |