summaryrefslogtreecommitdiff
path: root/libopie
Side-by-side diff
Diffstat (limited to 'libopie') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/odevice.cpp12
-rw-r--r--libopie/odevice.h1
2 files changed, 11 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
@@ -87,4 +87,5 @@ public:
virtual bool hasLightSensor ( ) const;
virtual int readLightSensor ( );
+ virtual int lightSensorResolution ( ) const;
//virtual QValueList <int> keyList ( ) const;
@@ -370,4 +371,8 @@ int ODevice::readLightSensor ( )
}
+int ODevice::lightSensorResolution ( ) const
+{
+ return 0;
+}
//QValueList <int> ODevice::keyList ( ) const
@@ -683,6 +688,5 @@ bool iPAQ::hasLightSensor ( ) const
return true;
}
-#include <errno.h>
-#include <string.h>
+
int iPAQ::readLightSensor ( )
{
@@ -708,4 +712,8 @@ int iPAQ::readLightSensor ( )
}
+int iPAQ::lightSensorResolution ( ) const
+{
+ return 256;
+}
/**************************************************
diff --git a/libopie/odevice.h b/libopie/odevice.h
index be2a9c7..e07b91c 100644
--- a/libopie/odevice.h
+++ b/libopie/odevice.h
@@ -136,4 +136,5 @@ public:
virtual bool hasLightSensor ( ) const;
virtual int readLightSensor ( );
+ virtual int lightSensorResolution ( ) const;
//virtual QValueList <int> keyList ( ) const;