-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 cda504a..5009b91 100644 --- a/libopie/odevice.h +++ b/libopie/odevice.h | |||
@@ -9,103 +9,101 @@ | |||
9 | This library is distributed in the hope that it will be useful, | 9 | This library is distributed in the hope that it will be useful, |
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
12 | Library General Public License for more details. | 12 | Library General Public License for more details. |
13 | 13 | ||
14 | You should have received a copy of the GNU Library General Public License | 14 | You should have received a copy of the GNU Library General Public License |
15 | along with this library; see the file COPYING.LIB. If not, write to | 15 | along with this library; see the file COPYING.LIB. If not, write to |
16 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 16 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
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 | 65 | ||
66 | public: | 66 | public: |
67 | static ODevice *inst ( ); | 67 | static ODevice *inst ( ); |
68 | 68 | ||
69 | // system | 69 | // system |
70 | virtual bool suspend ( ); | 70 | virtual bool suspend ( ); |
71 | 71 | ||
72 | // information | 72 | // information |
73 | 73 | ||
74 | QString modelString ( ); | 74 | QString modelString ( ); |
75 | OModel model ( ); | 75 | OModel model ( ); |
76 | 76 | ||
77 | QString vendorString ( ); | 77 | QString vendorString ( ); |
78 | OVendor vendor ( ); | 78 | OVendor vendor ( ); |
79 | 79 | ||
80 | QString systemString ( ); | 80 | QString systemString ( ); |
81 | OSystem system ( ); | 81 | OSystem system ( ); |
82 | 82 | ||
83 | QString systemVersionString ( ); | 83 | QString systemVersionString ( ); |
84 | 84 | ||
85 | // input / output | 85 | // input / output |
86 | 86 | ||
87 | virtual void alarmSound ( ); | 87 | virtual void alarmSound ( ); |
88 | virtual void keySound ( ); | 88 | virtual void keySound ( ); |
89 | virtual void touchSound ( ); | 89 | virtual void touchSound ( ); |
90 | 90 | ||
91 | virtual uint hasLeds ( ) const; | 91 | virtual uint hasLeds ( ) const; |
92 | virtual OLedState led ( uint which ) const; | 92 | virtual OLedState led ( uint which ) const; |
93 | virtual bool setLed ( uint which, OLedState st ); | 93 | virtual bool setLed ( uint which, OLedState st ); |
94 | 94 | ||
95 | virtual ~ODevice ( ); | 95 | virtual ~ODevice ( ); |
96 | 96 | ||
97 | protected: | 97 | protected: |
98 | ODevice ( ); | 98 | ODevice ( ); |
99 | virtual void init ( ); | 99 | virtual void init ( ); |
100 | 100 | ||
101 | ODeviceData *d; | 101 | ODeviceData *d; |
102 | 102 | ||
103 | private: | 103 | private: |
104 | ODevice ( const ODevice & ); | 104 | ODevice ( const ODevice & ); |
105 | |||
106 | static void tstp_sighandler ( int ); | ||
107 | }; | 105 | }; |
108 | 106 | ||
109 | #endif | 107 | #endif |
110 | 108 | ||
111 | 109 | ||