From bf21c882b82bfcdbcdce6b2dc5d863a2a2fb37c7 Mon Sep 17 00:00:00 2001 From: sandman Date: Sun, 27 Oct 2002 15:52:44 +0000 Subject: - new function to check for and read the light sensor - redone the Model enum, to make it easier to check for "any iPAQ" !! This means every application using this enum has to be recompiled !! --- (limited to 'libopie/odevice.h') diff --git a/libopie/odevice.h b/libopie/odevice.h index 38f3787..be2a9c7 100644 --- a/libopie/odevice.h +++ b/libopie/odevice.h @@ -30,12 +30,16 @@ namespace Opie { enum OModel { Model_Unknown, - Model_iPAQ_H31xx, - Model_iPAQ_H36xx, - Model_iPAQ_H37xx, - Model_iPAQ_H38xx, + Model_iPAQ = ( 1 << 16 ), - Model_Zaurus_SL5000 + Model_iPAQ_H31xx = ( Model_iPAQ | 1 ), + Model_iPAQ_H36xx = ( Model_iPAQ | 2 ), + Model_iPAQ_H37xx = ( Model_iPAQ | 3 ), + Model_iPAQ_H38xx = ( Model_iPAQ | 4 ), + + Model_Zaurus = ( 2 << 16 ), + + Model_Zaurus_SL5000 = ( Model_Zaurus | 1 ), }; enum OVendor { @@ -129,6 +133,9 @@ public: virtual OLedState ledState ( OLed led ) const; virtual bool setLedState ( OLed led, OLedState st ); + virtual bool hasLightSensor ( ) const; + virtual int readLightSensor ( ); + //virtual QValueList keyList ( ) const; }; -- cgit v0.9.0.2