author | zecke <zecke> | 2005-08-10 19:48:26 (UTC) |
---|---|---|
committer | zecke <zecke> | 2005-08-10 19:48:26 (UTC) |
commit | 1ce0c260151fddcc5d9b3f36fa3ebe9d2abc28af (patch) (unidiff) | |
tree | 77599281776ea0ce01e6eb386d6697ad9436ee02 | |
parent | 46b2321d11fb9bbbcd3bc8130c087c22517730e3 (diff) | |
download | opie-1ce0c260151fddcc5d9b3f36fa3ebe9d2abc28af.zip opie-1ce0c260151fddcc5d9b3f36fa3ebe9d2abc28af.tar.gz opie-1ce0c260151fddcc5d9b3f36fa3ebe9d2abc28af.tar.bz2 |
libopie2/opiecore/device/odevice.h:
-Reduce the maximum amount of numbers a vendor (e.g. iPAQ) can have
to 16 bit in favor of supporting more vendors
-Introduce AsusMyPal support
-Change the numbering of iPAQ models to be 1,2,3,4 like we do with
the other vendors.
-rw-r--r-- | libopie2/opiecore/device/odevice.h | 93 |
1 files changed, 50 insertions, 43 deletions
diff --git a/libopie2/opiecore/device/odevice.h b/libopie2/opiecore/device/odevice.h index 05bb167..76cf97d 100644 --- a/libopie2/opiecore/device/odevice.h +++ b/libopie2/opiecore/device/odevice.h | |||
@@ -27,136 +27,143 @@ | |||
27 | Boston, MA 02111-1307, USA. | 27 | Boston, MA 02111-1307, USA. |
28 | */ | 28 | */ |
29 | 29 | ||
30 | #ifndef ODEVICE_H_ | 30 | #ifndef ODEVICE_H_ |
31 | #define ODEVICE_H_ | 31 | #define ODEVICE_H_ |
32 | 32 | ||
33 | /* OPIE */ | 33 | /* OPIE */ |
34 | #include <opie2/odevicebutton.h> | 34 | #include <opie2/odevicebutton.h> |
35 | #include <qpe/qpeapplication.h> /* for Transformation enum.. */ | 35 | #include <qpe/qpeapplication.h> /* for Transformation enum.. */ |
36 | 36 | ||
37 | /* QT */ | 37 | /* QT */ |
38 | #include <qnamespace.h> | 38 | #include <qnamespace.h> |
39 | #include <qobject.h> | 39 | #include <qobject.h> |
40 | #include <qstring.h> | 40 | #include <qstring.h> |
41 | 41 | ||
42 | 42 | ||
43 | #include <qstrlist.h> | 43 | #include <qstrlist.h> |
44 | #include <qwindowsystem_qws.h> | 44 | #include <qwindowsystem_qws.h> |
45 | 45 | ||
46 | 46 | ||
47 | class Sound; | 47 | class Sound; |
48 | 48 | ||
49 | namespace Opie{ | 49 | namespace Opie{ |
50 | namespace Core{ | 50 | namespace Core{ |
51 | 51 | ||
52 | class ODeviceData; | 52 | class ODeviceData; |
53 | /** | 53 | /** |
54 | * The available devices | 54 | * The available devices |
55 | */ | 55 | */ |
56 | enum OModel { | 56 | enum OModel { |
57 | Model_Unknown, // = 0 | 57 | Model_Unknown, // = 0 |
58 | 58 | ||
59 | Model_Series_Mask = 0xff000000, | 59 | Model_Series_Mask = 0xffff0000, |
60 | 60 | ||
61 | Model_iPAQ = ( 1 << 24 ), | 61 | Model_iPAQ = ( 1 << 16 ), |
62 | 62 | ||
63 | Model_iPAQ_All = ( Model_iPAQ | 0xffffff ), | 63 | Model_iPAQ_All = ( Model_iPAQ | 0xffff ), |
64 | Model_iPAQ_H31xx = ( Model_iPAQ | 0x000001 ), | 64 | Model_iPAQ_H31xx = ( Model_iPAQ | 0x0001 ), |
65 | Model_iPAQ_H36xx = ( Model_iPAQ | 0x000002 ), | 65 | Model_iPAQ_H36xx = ( Model_iPAQ | 0x0002 ), |
66 | Model_iPAQ_H37xx = ( Model_iPAQ | 0x000004 ), | 66 | Model_iPAQ_H37xx = ( Model_iPAQ | 0x0003 ), |
67 | Model_iPAQ_H38xx = ( Model_iPAQ | 0x000008 ), | 67 | Model_iPAQ_H38xx = ( Model_iPAQ | 0x0004 ), |
68 | Model_iPAQ_H39xx = ( Model_iPAQ | 0x000010 ), | 68 | Model_iPAQ_H39xx = ( Model_iPAQ | 0x0005 ), |
69 | Model_iPAQ_H5xxx = ( Model_iPAQ | 0x000020 ), | 69 | Model_iPAQ_H5xxx = ( Model_iPAQ | 0x0006 ), |
70 | Model_iPAQ_H22xx = ( Model_iPAQ | 0x000040 ), | 70 | Model_iPAQ_H22xx = ( Model_iPAQ | 0x0007 ), |
71 | Model_iPAQ_H191x = ( Model_iPAQ | 0x000080 ), | 71 | Model_iPAQ_H191x = ( Model_iPAQ | 0x0008 ), |
72 | 72 | ||
73 | Model_Jornada = ( 6 << 24 ), | 73 | Model_Jornada = ( 6 << 16 ), |
74 | Model_Jornada_56x = ( Model_Jornada | 0x000001 ), | 74 | Model_Jornada_56x = ( Model_Jornada | 0x0001 ), |
75 | Model_Jornada_720 = ( Model_Jornada | 0x000002 ), | 75 | Model_Jornada_720 = ( Model_Jornada | 0x0002 ), |
76 | 76 | ||
77 | Model_Zaurus = ( 2 << 24 ), | 77 | Model_Zaurus = ( 2 << 16 ), |
78 | 78 | ||
79 | Model_Zaurus_SL5000 = ( Model_Zaurus | 0x000001 ), | 79 | Model_Zaurus_SL5000 = ( Model_Zaurus | 0x0001 ), |
80 | Model_Zaurus_SL5500 = ( Model_Zaurus | 0x000002 ), | 80 | Model_Zaurus_SL5500 = ( Model_Zaurus | 0x0002 ), |
81 | Model_Zaurus_SLA300 = ( Model_Zaurus | 0x000003 ), | 81 | Model_Zaurus_SLA300 = ( Model_Zaurus | 0x0003 ), |
82 | Model_Zaurus_SLB600 = ( Model_Zaurus | 0x000004 ), | 82 | Model_Zaurus_SLB600 = ( Model_Zaurus | 0x0004 ), |
83 | Model_Zaurus_SLC7x0 = ( Model_Zaurus | 0x000005 ), | 83 | Model_Zaurus_SLC7x0 = ( Model_Zaurus | 0x0005 ), |
84 | Model_Zaurus_SL6000 = ( Model_Zaurus | 0x000006 ), | 84 | Model_Zaurus_SL6000 = ( Model_Zaurus | 0x0006 ), |
85 | Model_Zaurus_SLC3000 = ( Model_Zaurus | 0x000007 ), | 85 | Model_Zaurus_SLC3000 = ( Model_Zaurus | 0x0007 ), |
86 | Model_Zaurus_SLC1000 = ( Model_Zaurus | 0x000008 ), | 86 | Model_Zaurus_SLC1000 = ( Model_Zaurus | 0x0008 ), |
87 | 87 | ||
88 | Model_SIMpad = ( 3 << 24 ), | 88 | Model_SIMpad = ( 3 << 16 ), |
89 | 89 | ||
90 | Model_SIMpad_All = ( Model_SIMpad | 0xffffff ), | 90 | Model_SIMpad_All = ( Model_SIMpad | 0xffff ), |
91 | Model_SIMpad_CL4 = ( Model_SIMpad | 0x000001 ), | 91 | Model_SIMpad_CL4 = ( Model_SIMpad | 0x0001 ), |
92 | Model_SIMpad_SL4 = ( Model_SIMpad | 0x000002 ), | 92 | Model_SIMpad_SL4 = ( Model_SIMpad | 0x0002 ), |
93 | Model_SIMpad_SLC = ( Model_SIMpad | 0x000004 ), | 93 | Model_SIMpad_SLC = ( Model_SIMpad | 0x0003 ), |
94 | Model_SIMpad_TSinus = ( Model_SIMpad | 0x000008 ), | 94 | Model_SIMpad_TSinus = ( Model_SIMpad | 0x0004 ), |
95 | 95 | ||
96 | Model_Ramses = ( 4 << 24 ), | 96 | Model_Ramses = ( 4 << 16 ), |
97 | 97 | ||
98 | Model_Ramses_All = ( Model_Ramses | 0xffffff ), | 98 | Model_Ramses_All = ( Model_Ramses | 0xffff ), |
99 | Model_Ramses_MNCI = ( Model_Ramses | 0x000001 ), | 99 | Model_Ramses_MNCI = ( Model_Ramses | 0x0001 ), |
100 | Model_Ramses_MNCIRX = ( Model_Ramses | 0x000002 ), | 100 | Model_Ramses_MNCIRX = ( Model_Ramses | 0x0002 ), |
101 | 101 | ||
102 | Model_Yopy = ( 5 << 24 ), | 102 | Model_Yopy = ( 5 << 16 ), |
103 | 103 | ||
104 | Model_Yopy_All = ( Model_Yopy | 0xffffff ), | 104 | Model_Yopy_All = ( Model_Yopy | 0xffff ), |
105 | Model_Yopy_3000 = ( Model_Yopy | 0x000001 ), | 105 | Model_Yopy_3000 = ( Model_Yopy | 0x0001 ), |
106 | Model_Yopy_3500 = ( Model_Yopy | 0x000002 ), | 106 | Model_Yopy_3500 = ( Model_Yopy | 0x0002 ), |
107 | Model_Yopy_3700 = ( Model_Yopy | 0x000003 ), | 107 | Model_Yopy_3700 = ( Model_Yopy | 0x0003 ), |
108 | 108 | ||
109 | Model_Beagle = ( 6 << 24 ), | 109 | Model_Beagle = ( 6 << 16 ), |
110 | 110 | ||
111 | Model_Beagle_All = ( Model_Beagle | 0xffffff ), | 111 | Model_Beagle_All = ( Model_Beagle | 0xffff ), |
112 | Model_Beagle_PA100 = ( Model_Beagle | 0x000001 ), | 112 | Model_Beagle_PA100 = ( Model_Beagle | 0x0001 ), |
113 | 113 | ||
114 | Model_GenuineIntel = ( 7 << 24 ) | 114 | Model_GenuineIntel = ( 7 << 16 ), |
115 | 115 | ||
116 | Model_MyPal = ( 8 << 16 ), | ||
117 | |||
118 | Model_MyPal_All = ( Model_MyPal | 0xffff ), | ||
119 | Model_MyPal_620 = ( Model_MyPal | 0x0001 ), | ||
120 | Model_MyPal_716 = ( Model_MyPal | 0x0002 ), | ||
121 | Model_MyPal_730 = ( Model_MyPal | 0x0003 ) | ||
116 | }; | 122 | }; |
117 | 123 | ||
118 | /** | 124 | /** |
119 | * The vendor of the device | 125 | * The vendor of the device |
120 | */ | 126 | */ |
121 | enum OVendor { | 127 | enum OVendor { |
122 | Vendor_Unknown, | 128 | Vendor_Unknown, |
123 | 129 | ||
124 | Vendor_HP, | 130 | Vendor_HP, |
125 | Vendor_Sharp, | 131 | Vendor_Sharp, |
126 | Vendor_SIEMENS, | 132 | Vendor_SIEMENS, |
127 | Vendor_MundN, | 133 | Vendor_MundN, |
128 | Vendor_GMate, | 134 | Vendor_GMate, |
129 | Vendor_MasterIA, | 135 | Vendor_MasterIA, |
130 | Vendor_GenuineIntel | 136 | Vendor_GenuineIntel, |
137 | Vendor_Asus | ||
131 | }; | 138 | }; |
132 | 139 | ||
133 | /** | 140 | /** |
134 | * The System used | 141 | * The System used |
135 | */ | 142 | */ |
136 | enum OSystem { | 143 | enum OSystem { |
137 | System_Unknown, | 144 | System_Unknown, |
138 | 145 | ||
139 | System_Familiar, | 146 | System_Familiar, |
140 | System_Zaurus, | 147 | System_Zaurus, |
141 | System_OpenZaurus, | 148 | System_OpenZaurus, |
142 | System_Linupy, | 149 | System_Linupy, |
143 | System_OpenEmbedded, | 150 | System_OpenEmbedded, |
144 | System_PC | 151 | System_PC |
145 | }; | 152 | }; |
146 | 153 | ||
147 | typedef struct { | 154 | typedef struct { |
148 | OSystem system; | 155 | OSystem system; |
149 | char* sysstr; | 156 | char* sysstr; |
150 | char* sysvfile; | 157 | char* sysvfile; |
151 | } ODistribution; | 158 | } ODistribution; |
152 | 159 | ||
153 | extern ODistribution distributions[]; | 160 | extern ODistribution distributions[]; |
154 | 161 | ||
155 | 162 | ||
156 | enum OLedState { | 163 | enum OLedState { |
157 | Led_Off, | 164 | Led_Off, |
158 | Led_On, | 165 | Led_On, |
159 | Led_BlinkSlow, | 166 | Led_BlinkSlow, |
160 | Led_BlinkFast | 167 | Led_BlinkFast |
161 | }; | 168 | }; |
162 | 169 | ||