summaryrefslogtreecommitdiff
path: root/libopie/odevice.h
Side-by-side diff
Diffstat (limited to 'libopie/odevice.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/odevice.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/libopie/odevice.h b/libopie/odevice.h
index 38f3787..be2a9c7 100644
--- a/libopie/odevice.h
+++ b/libopie/odevice.h
@@ -17,38 +17,42 @@
Boston, MA 02111-1307, USA.
*/
#ifndef _LIBOPIE_ODEVICE_H_
#define _LIBOPIE_ODEVICE_H_
#include <qstring.h>
#include <qnamespace.h>
class ODeviceData;
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 {
Vendor_Unknown,
Vendor_HP,
Vendor_Sharp
};
enum OSystem {
System_Unknown,
System_Familiar,
System_Zaurus,
System_OpenZaurus
};
@@ -116,23 +120,26 @@ public:
virtual bool setDisplayStatus ( bool on );
virtual bool setDisplayBrightness ( int brightness );
virtual int displayBrightnessResolution ( ) const;
// input / output
virtual void alarmSound ( );
virtual void keySound ( );
virtual void touchSound ( );
virtual QValueList <OLed> ledList ( ) const;
virtual QValueList <OLedState> ledStateList ( OLed led ) const;
virtual OLedState ledState ( OLed led ) const;
virtual bool setLedState ( OLed led, OLedState st );
+ virtual bool hasLightSensor ( ) const;
+ virtual int readLightSensor ( );
+
//virtual QValueList <int> keyList ( ) const;
};
}
#endif