-rw-r--r-- | libopie/odevice.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/libopie/odevice.cpp b/libopie/odevice.cpp index 9f64fc0..4c49c4f 100644 --- a/libopie/odevice.cpp +++ b/libopie/odevice.cpp @@ -85,8 +85,9 @@ public: virtual bool setLedState ( OLed led, OLedState st ); virtual bool hasLightSensor ( ) const; virtual int readLightSensor ( ); + virtual int lightSensorResolution ( ) const; //virtual QValueList <int> keyList ( ) const; protected: @@ -368,8 +369,12 @@ int ODevice::readLightSensor ( ) { return -1; } +int ODevice::lightSensorResolution ( ) const +{ + return 0; +} //QValueList <int> ODevice::keyList ( ) const //{ // return QValueList <int> ( ); @@ -681,10 +686,9 @@ int iPAQ::displayBrightnessResolution ( ) const bool iPAQ::hasLightSensor ( ) const { return true; } -#include <errno.h> -#include <string.h> + int iPAQ::readLightSensor ( ) { int fd; int val = -1; @@ -706,8 +710,12 @@ int iPAQ::readLightSensor ( ) return val; } +int iPAQ::lightSensorResolution ( ) const +{ + return 256; +} /************************************************** * * Zaurus |