-rw-r--r-- | libopie/odevice.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libopie/odevice.h b/libopie/odevice.h index 9dda68e..2f676ff 100644 --- a/libopie/odevice.h +++ b/libopie/odevice.h | |||
@@ -17,98 +17,96 @@ | |||
17 | Boston, MA 02111-1307, USA. | 17 | Boston, MA 02111-1307, USA. |
18 | */ | 18 | */ |
19 | 19 | ||
20 | #ifndef _LIBOPIE_ODEVICE_H_ | 20 | #ifndef _LIBOPIE_ODEVICE_H_ |
21 | #define _LIBOPIE_ODEVICE_H_ | 21 | #define _LIBOPIE_ODEVICE_H_ |
22 | 22 | ||
23 | #include <qstring.h> | 23 | #include <qstring.h> |
24 | 24 | ||
25 | 25 | ||
26 | class ODeviceData; | 26 | class ODeviceData; |
27 | 27 | ||
28 | enum OModel { | 28 | enum OModel { |
29 | OMODEL_Unknown, | 29 | OMODEL_Unknown, |
30 | 30 | ||
31 | OMODEL_iPAQ_H31xx, | 31 | OMODEL_iPAQ_H31xx, |
32 | OMODEL_iPAQ_H36xx, | 32 | OMODEL_iPAQ_H36xx, |
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 | |||
66 | public: | ||
67 | static ODevice *inst ( ); | 65 | static ODevice *inst ( ); |
68 | 66 | ||
69 | // system | 67 | // system |
70 | enum PowerButtonHandler { | 68 | enum PowerButtonHandler { |
71 | KERNEL, | 69 | KERNEL, |
72 | OPIE | 70 | OPIE |
73 | }; | 71 | }; |
74 | 72 | ||
75 | virtual bool setPowerButtonHandler ( PowerButtonHandler h ); | 73 | virtual bool setPowerButtonHandler ( PowerButtonHandler h ); |
76 | virtual bool suspend ( ); | 74 | virtual bool suspend ( ); |
77 | 75 | ||
78 | virtual bool setDisplayStatus ( bool on ); | 76 | virtual bool setDisplayStatus ( bool on ); |
79 | virtual bool setDisplayBrightness ( int brightness ); | 77 | virtual bool setDisplayBrightness ( int brightness ); |
80 | virtual int displayBrightnessResolution ( ) const; | 78 | virtual int displayBrightnessResolution ( ) const; |
81 | 79 | ||
82 | // information | 80 | // information |
83 | 81 | ||
84 | QString modelString ( ); | 82 | QString modelString ( ); |
85 | OModel model ( ); | 83 | OModel model ( ); |
86 | 84 | ||
87 | QString vendorString ( ); | 85 | QString vendorString ( ); |
88 | OVendor vendor ( ); | 86 | OVendor vendor ( ); |
89 | 87 | ||
90 | QString systemString ( ); | 88 | QString systemString ( ); |
91 | OSystem system ( ); | 89 | OSystem system ( ); |
92 | 90 | ||
93 | QString systemVersionString ( ); | 91 | QString systemVersionString ( ); |
94 | 92 | ||
95 | // input / output | 93 | // input / output |
96 | 94 | ||
97 | virtual void alarmSound ( ); | 95 | virtual void alarmSound ( ); |
98 | virtual void keySound ( ); | 96 | virtual void keySound ( ); |
99 | virtual void touchSound ( ); | 97 | virtual void touchSound ( ); |
100 | 98 | ||
101 | virtual uint hasLeds ( ) const; | 99 | virtual uint hasLeds ( ) const; |
102 | virtual OLedState led ( uint which ) const; | 100 | virtual OLedState led ( uint which ) const; |
103 | virtual bool setLed ( uint which, OLedState st ); | 101 | virtual bool setLed ( uint which, OLedState st ); |
104 | 102 | ||
105 | virtual ~ODevice ( ); | 103 | virtual ~ODevice ( ); |
106 | 104 | ||
107 | protected: | 105 | protected: |
108 | ODevice ( ); | 106 | ODevice ( ); |
109 | virtual void init ( ); | 107 | virtual void init ( ); |
110 | 108 | ||
111 | ODeviceData *d; | 109 | ODeviceData *d; |
112 | 110 | ||
113 | private: | 111 | private: |
114 | ODevice ( const ODevice & ); | 112 | ODevice ( const ODevice & ); |