author | sandman <sandman> | 2002-07-27 22:45:04 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-07-27 22:45:04 (UTC) |
commit | 9cc89b6a54ee267953b0422c4607097d075ecab9 (patch) (unidiff) | |
tree | 4bde48d162a97ef74cf9e276c0194b8138fb4e0c /libopie/odevice.h | |
parent | dac5c073c3e04ceb6900aeb72e53cf6d7350c3c9 (diff) | |
download | opie-9cc89b6a54ee267953b0422c4607097d075ecab9.zip opie-9cc89b6a54ee267953b0422c4607097d075ecab9.tar.gz opie-9cc89b6a54ee267953b0422c4607097d075ecab9.tar.bz2 |
Small extension to read the system version
(currently only functional for familiar)
-rw-r--r-- | libopie/odevice.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libopie/odevice.h b/libopie/odevice.h index b40abe7..b54e576 100644 --- a/libopie/odevice.h +++ b/libopie/odevice.h | |||
@@ -33,75 +33,76 @@ enum OModel { | |||
33 | OMODEL_iPAQ_H37xx, | 33 | OMODEL_iPAQ_H37xx, |
34 | OMODEL_iPAQ_H38xx, | 34 | OMODEL_iPAQ_H38xx, |
35 | 35 | ||
36 | OMODEL_Zaurus_SL5000 | 36 | OMODEL_Zaurus_SL5000 |
37 | }; | 37 | }; |
38 | 38 | ||
39 | enum OVendor { | 39 | enum OVendor { |
40 | OVENDOR_Unknown, | 40 | OVENDOR_Unknown, |
41 | 41 | ||
42 | OVENDOR_HP, | 42 | OVENDOR_HP, |
43 | OVENDOR_Sharp | 43 | OVENDOR_Sharp |
44 | }; | 44 | }; |
45 | 45 | ||
46 | enum OSystem { | 46 | enum OSystem { |
47 | OSYSTEM_Unknown, | 47 | OSYSTEM_Unknown, |
48 | 48 | ||
49 | OSYSTEM_Familiar, | 49 | OSYSTEM_Familiar, |
50 | OSYSTEM_Zaurus, | 50 | OSYSTEM_Zaurus, |
51 | OSYSTEM_OpenZaurus | 51 | OSYSTEM_OpenZaurus |
52 | }; | 52 | }; |
53 | 53 | ||
54 | enum OLedState { | 54 | enum OLedState { |
55 | OLED_Off, | 55 | OLED_Off, |
56 | OLED_On, | 56 | OLED_On, |
57 | OLED_BlinkSlow, | 57 | OLED_BlinkSlow, |
58 | OLED_BlinkFast | 58 | OLED_BlinkFast |
59 | }; | 59 | }; |
60 | 60 | ||
61 | 61 | ||
62 | class ODevice | 62 | class ODevice |
63 | { | 63 | { |
64 | public: | 64 | public: |
65 | 65 | ||
66 | public: | 66 | public: |
67 | static ODevice *inst ( ); | 67 | static ODevice *inst ( ); |
68 | 68 | ||
69 | 69 | ||
70 | // information | 70 | // information |
71 | 71 | ||
72 | QString modelString ( ); | 72 | QString modelString ( ); |
73 | OModel model ( ); | 73 | OModel model ( ); |
74 | 74 | ||
75 | QString vendorString ( ); | 75 | QString vendorString ( ); |
76 | OVendor vendor ( ); | 76 | OVendor vendor ( ); |
77 | 77 | ||
78 | QString systemString ( ); | 78 | QString systemString ( ); |
79 | OSystem system ( ); | 79 | OSystem system ( ); |
80 | 80 | ||
81 | QString systemVersionString ( ); | ||
81 | 82 | ||
82 | // input / output | 83 | // input / output |
83 | 84 | ||
84 | virtual void alarmSound ( ); | 85 | virtual void alarmSound ( ); |
85 | virtual void keySound ( ); | 86 | virtual void keySound ( ); |
86 | virtual void touchSound ( ); | 87 | virtual void touchSound ( ); |
87 | 88 | ||
88 | virtual uint hasLeds ( ) const; | 89 | virtual uint hasLeds ( ) const; |
89 | virtual OLedState led ( uint which ) const; | 90 | virtual OLedState led ( uint which ) const; |
90 | virtual bool setLed ( uint which, OLedState st ); | 91 | virtual bool setLed ( uint which, OLedState st ); |
91 | 92 | ||
92 | virtual ~ODevice ( ); | 93 | virtual ~ODevice ( ); |
93 | 94 | ||
94 | protected: | 95 | protected: |
95 | ODevice ( ); | 96 | ODevice ( ); |
96 | virtual void init ( ); | 97 | virtual void init ( ); |
97 | 98 | ||
98 | ODeviceData *d; | 99 | ODeviceData *d; |
99 | 100 | ||
100 | private: | 101 | private: |
101 | ODevice ( const ODevice & ); | 102 | ODevice ( const ODevice & ); |
102 | 103 | ||
103 | }; | 104 | }; |
104 | 105 | ||
105 | #endif | 106 | #endif |
106 | 107 | ||
107 | 108 | ||