-rw-r--r-- | libopie/odevice.h | 17 |
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 | |||
@@ -21,30 +21,34 @@ | |||
21 | #define _LIBOPIE_ODEVICE_H_ | 21 | #define _LIBOPIE_ODEVICE_H_ |
22 | 22 | ||
23 | #include <qstring.h> | 23 | #include <qstring.h> |
24 | #include <qnamespace.h> | 24 | #include <qnamespace.h> |
25 | 25 | ||
26 | class ODeviceData; | 26 | class ODeviceData; |
27 | 27 | ||
28 | namespace Opie { | 28 | namespace Opie { |
29 | 29 | ||
30 | enum OModel { | 30 | enum OModel { |
31 | Model_Unknown, | 31 | Model_Unknown, |
32 | 32 | ||
33 | Model_iPAQ_H31xx, | 33 | Model_iPAQ = ( 1 << 16 ), |
34 | Model_iPAQ_H36xx, | ||
35 | Model_iPAQ_H37xx, | ||
36 | Model_iPAQ_H38xx, | ||
37 | 34 | ||
38 | Model_Zaurus_SL5000 | 35 | Model_iPAQ_H31xx = ( Model_iPAQ | 1 ), |
36 | Model_iPAQ_H36xx = ( Model_iPAQ | 2 ), | ||
37 | Model_iPAQ_H37xx = ( Model_iPAQ | 3 ), | ||
38 | Model_iPAQ_H38xx = ( Model_iPAQ | 4 ), | ||
39 | |||
40 | Model_Zaurus = ( 2 << 16 ), | ||
41 | |||
42 | Model_Zaurus_SL5000 = ( Model_Zaurus | 1 ), | ||
39 | }; | 43 | }; |
40 | 44 | ||
41 | enum OVendor { | 45 | enum OVendor { |
42 | Vendor_Unknown, | 46 | Vendor_Unknown, |
43 | 47 | ||
44 | Vendor_HP, | 48 | Vendor_HP, |
45 | Vendor_Sharp | 49 | Vendor_Sharp |
46 | }; | 50 | }; |
47 | 51 | ||
48 | enum OSystem { | 52 | enum OSystem { |
49 | System_Unknown, | 53 | System_Unknown, |
50 | 54 | ||
@@ -120,19 +124,22 @@ public: | |||
120 | 124 | ||
121 | // input / output | 125 | // input / output |
122 | 126 | ||
123 | virtual void alarmSound ( ); | 127 | virtual void alarmSound ( ); |
124 | virtual void keySound ( ); | 128 | virtual void keySound ( ); |
125 | virtual void touchSound ( ); | 129 | virtual void touchSound ( ); |
126 | 130 | ||
127 | virtual QValueList <OLed> ledList ( ) const; | 131 | virtual QValueList <OLed> ledList ( ) const; |
128 | virtual QValueList <OLedState> ledStateList ( OLed led ) const; | 132 | virtual QValueList <OLedState> ledStateList ( OLed led ) const; |
129 | virtual OLedState ledState ( OLed led ) const; | 133 | virtual OLedState ledState ( OLed led ) const; |
130 | virtual bool setLedState ( OLed led, OLedState st ); | 134 | virtual bool setLedState ( OLed led, OLedState st ); |
131 | 135 | ||
136 | virtual bool hasLightSensor ( ) const; | ||
137 | virtual int readLightSensor ( ); | ||
138 | |||
132 | //virtual QValueList <int> keyList ( ) const; | 139 | //virtual QValueList <int> keyList ( ) const; |
133 | }; | 140 | }; |
134 | 141 | ||
135 | } | 142 | } |
136 | 143 | ||
137 | #endif | 144 | #endif |
138 | 145 | ||