author | sandman <sandman> | 2002-09-06 19:24:57 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-09-06 19:24:57 (UTC) |
commit | 98c0d3f0eca58993cb18e740f2a3d07d67c5c64d (patch) (side-by-side diff) | |
tree | 4215a42f10fb9afa11ddfefcf21c6808e2c1ffae /libopie/odevice.h | |
parent | 4acfa3f53762b6c786e421444d23c49c279e556f (diff) | |
download | opie-98c0d3f0eca58993cb18e740f2a3d07d67c5c64d.zip opie-98c0d3f0eca58993cb18e740f2a3d07d67c5c64d.tar.gz opie-98c0d3f0eca58993cb18e740f2a3d07d67c5c64d.tar.bz2 |
Added new functionality to libopie / ODevice, regarding LCD control (on/off
brightness)
-rw-r--r-- | libopie/odevice.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libopie/odevice.h b/libopie/odevice.h index ee01f0f..9dda68e 100644 --- a/libopie/odevice.h +++ b/libopie/odevice.h @@ -30,86 +30,90 @@ enum OModel { OMODEL_iPAQ_H31xx, OMODEL_iPAQ_H36xx, OMODEL_iPAQ_H37xx, OMODEL_iPAQ_H38xx, OMODEL_Zaurus_SL5000 }; enum OVendor { OVENDOR_Unknown, OVENDOR_HP, OVENDOR_Sharp }; enum OSystem { OSYSTEM_Unknown, OSYSTEM_Familiar, OSYSTEM_Zaurus, OSYSTEM_OpenZaurus }; enum OLedState { OLED_Off, OLED_On, OLED_BlinkSlow, OLED_BlinkFast }; class ODevice { public: public: static ODevice *inst ( ); // system enum PowerButtonHandler { KERNEL, OPIE }; virtual bool setPowerButtonHandler ( PowerButtonHandler h ); virtual bool suspend ( ); + virtual bool setDisplayStatus ( bool on ); + virtual bool setDisplayBrightness ( int brightness ); + virtual int displayBrightnessResolution ( ) const; + // information QString modelString ( ); OModel model ( ); QString vendorString ( ); OVendor vendor ( ); QString systemString ( ); OSystem system ( ); QString systemVersionString ( ); // input / output virtual void alarmSound ( ); virtual void keySound ( ); virtual void touchSound ( ); virtual uint hasLeds ( ) const; virtual OLedState led ( uint which ) const; virtual bool setLed ( uint which, OLedState st ); virtual ~ODevice ( ); protected: ODevice ( ); virtual void init ( ); ODeviceData *d; private: ODevice ( const ODevice & ); }; #endif |