summaryrefslogtreecommitdiff
path: root/libopie2/opiecore/device/odevice.h
authorerik <erik>2007-02-08 21:46:07 (UTC)
committer erik <erik>2007-02-08 21:46:07 (UTC)
commit497621fb3ba39ea511842a30cddfcdbda090e7ba (patch) (unidiff)
tree13e70fb1840b7cc1c7b3a16ff9b6e71925b76b57 /libopie2/opiecore/device/odevice.h
parent63f64a9733d5504bb04d5f06cdf52b42a4b8006c (diff)
downloadopie-497621fb3ba39ea511842a30cddfcdbda090e7ba.zip
opie-497621fb3ba39ea511842a30cddfcdbda090e7ba.tar.gz
opie-497621fb3ba39ea511842a30cddfcdbda090e7ba.tar.bz2
This commit provides the necessary changes and new files for Opie to
have partial support for the Palm LD, TX and Z72 handheld computers. This commit is based on a patch submitted by Cristiano to the opie-devel list. The patch itself comprises work done by Alex Osborne, Cristiano, Sergey Lapin, Jan Herman and Aaron. Thanks goes to them for sticking with the patch and expanding the number of devices Opie works on.
Diffstat (limited to 'libopie2/opiecore/device/odevice.h') (more/less context) (show whitespace changes)
-rw-r--r--libopie2/opiecore/device/odevice.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libopie2/opiecore/device/odevice.h b/libopie2/opiecore/device/odevice.h
index a8362cd..1eb5959 100644
--- a/libopie2/opiecore/device/odevice.h
+++ b/libopie2/opiecore/device/odevice.h
@@ -93,114 +93,121 @@ enum OModel {
93 93
94 Model_SIMpad_All = ( Model_SIMpad | 0xffff ), 94 Model_SIMpad_All = ( Model_SIMpad | 0xffff ),
95 Model_SIMpad_CL4 = ( Model_SIMpad | 0x0001 ), 95 Model_SIMpad_CL4 = ( Model_SIMpad | 0x0001 ),
96 Model_SIMpad_SL4 = ( Model_SIMpad | 0x0002 ), 96 Model_SIMpad_SL4 = ( Model_SIMpad | 0x0002 ),
97 Model_SIMpad_SLC = ( Model_SIMpad | 0x0003 ), 97 Model_SIMpad_SLC = ( Model_SIMpad | 0x0003 ),
98 Model_SIMpad_TSinus = ( Model_SIMpad | 0x0004 ), 98 Model_SIMpad_TSinus = ( Model_SIMpad | 0x0004 ),
99 99
100 Model_Ramses = ( 4 << 16 ), 100 Model_Ramses = ( 4 << 16 ),
101 101
102 Model_Ramses_All = ( Model_Ramses | 0xffff ), 102 Model_Ramses_All = ( Model_Ramses | 0xffff ),
103 Model_Ramses_MNCI = ( Model_Ramses | 0x0001 ), 103 Model_Ramses_MNCI = ( Model_Ramses | 0x0001 ),
104 Model_Ramses_MNCIRX = ( Model_Ramses | 0x0002 ), 104 Model_Ramses_MNCIRX = ( Model_Ramses | 0x0002 ),
105 105
106 Model_Yopy = ( 5 << 16 ), 106 Model_Yopy = ( 5 << 16 ),
107 107
108 Model_Yopy_All = ( Model_Yopy | 0xffff ), 108 Model_Yopy_All = ( Model_Yopy | 0xffff ),
109 Model_Yopy_3000 = ( Model_Yopy | 0x0001 ), 109 Model_Yopy_3000 = ( Model_Yopy | 0x0001 ),
110 Model_Yopy_3500 = ( Model_Yopy | 0x0002 ), 110 Model_Yopy_3500 = ( Model_Yopy | 0x0002 ),
111 Model_Yopy_3700 = ( Model_Yopy | 0x0003 ), 111 Model_Yopy_3700 = ( Model_Yopy | 0x0003 ),
112 112
113 Model_Beagle = ( 6 << 16 ), 113 Model_Beagle = ( 6 << 16 ),
114 114
115 Model_Beagle_All = ( Model_Beagle | 0xffff ), 115 Model_Beagle_All = ( Model_Beagle | 0xffff ),
116 Model_Beagle_PA100 = ( Model_Beagle | 0x0001 ), 116 Model_Beagle_PA100 = ( Model_Beagle | 0x0001 ),
117 117
118 Model_GenuineIntel = ( 7 << 16 ), 118 Model_GenuineIntel = ( 7 << 16 ),
119 119
120 Model_MyPal = ( 8 << 16 ), 120 Model_MyPal = ( 8 << 16 ),
121 121
122 Model_MyPal_All = ( Model_MyPal | 0xffff ), 122 Model_MyPal_All = ( Model_MyPal | 0xffff ),
123 Model_MyPal_620 = ( Model_MyPal | 0x0001 ), 123 Model_MyPal_620 = ( Model_MyPal | 0x0001 ),
124 Model_MyPal_716 = ( Model_MyPal | 0x0002 ), 124 Model_MyPal_716 = ( Model_MyPal | 0x0002 ),
125 Model_MyPal_730 = ( Model_MyPal | 0x0003 ), 125 Model_MyPal_730 = ( Model_MyPal | 0x0003 ),
126 126
127 Model_HTC = ( 9 << 16 ), 127 Model_HTC = ( 9 << 16 ),
128 Model_HTC_All = ( Model_HTC | 0xffff ), 128 Model_HTC_All = ( Model_HTC | 0xffff ),
129 Model_HTC_Universal = ( Model_HTC | 0x0001 ), 129 Model_HTC_Universal = ( Model_HTC | 0x0001 ),
130 Model_HTC_Alpine = ( Model_HTC | 0x0002 ), 130 Model_HTC_Alpine = ( Model_HTC | 0x0002 ),
131 Model_HTC_Apache = ( Model_HTC | 0x0003 ), 131 Model_HTC_Apache = ( Model_HTC | 0x0003 ),
132 Model_HTC_Beetles = ( Model_HTC | 0x0004 ), 132 Model_HTC_Beetles = ( Model_HTC | 0x0004 ),
133 Model_HTC_Blueangel = ( Model_HTC | 0x0005 ), 133 Model_HTC_Blueangel = ( Model_HTC | 0x0005 ),
134 Model_HTC_Himalaya = ( Model_HTC | 0x0006 ), 134 Model_HTC_Himalaya = ( Model_HTC | 0x0006 ),
135 Model_HTC_Magician = ( Model_HTC | 0x0007 ), 135 Model_HTC_Magician = ( Model_HTC | 0x0007 ),
136 136
137 Model_Motorola = ( 9 << 17 ), 137 Model_Motorola = ( 9 << 17 ),
138 Model_Motorola_All = ( Model_Motorola | 0xffff ), 138 Model_Motorola_All = ( Model_Motorola | 0xffff ),
139 Model_Motorola_EZX = ( Model_Motorola | 0x0001 ), 139 Model_Motorola_EZX = ( Model_Motorola | 0x0001 ),
140 140
141 Model_Palm = ( 10 << 16),
142 Model_Palm_All = ( Model_Palm | 0xffff ),
143 Model_Palm_LD = ( Model_Palm | 0x0001 ),
144 Model_Palm_TX = ( Model_Palm | 0x0002 ),
145 Model_Palm_Z72 = ( Model_Palm | 0x0003 ),
146
141}; 147};
142 148
143/** 149/**
144 * The vendor of the device 150 * The vendor of the device
145 */ 151 */
146enum OVendor { 152enum OVendor {
147 Vendor_Unknown, 153 Vendor_Unknown,
148 154
149 Vendor_HP, 155 Vendor_HP,
150 Vendor_Sharp, 156 Vendor_Sharp,
151 Vendor_SIEMENS, 157 Vendor_SIEMENS,
152 Vendor_MundN, 158 Vendor_MundN,
153 Vendor_GMate, 159 Vendor_GMate,
154 Vendor_MasterIA, 160 Vendor_MasterIA,
155 Vendor_GenuineIntel, 161 Vendor_GenuineIntel,
156 Vendor_Asus, 162 Vendor_Asus,
157 Vendor_HTC, 163 Vendor_HTC,
158 Vendor_Motorola, 164 Vendor_Motorola,
165 Vendor_Palm,
159}; 166};
160 167
161/** 168/**
162 * The System used 169 * The System used
163 */ 170 */
164enum OSystem { 171enum OSystem {
165 System_Unknown, 172 System_Unknown,
166 173
167 System_Familiar, 174 System_Familiar,
168 System_Zaurus, 175 System_Zaurus,
169 System_OpenZaurus, 176 System_OpenZaurus,
170 System_Linupy, 177 System_Linupy,
171 System_OpenEmbedded, 178 System_OpenEmbedded,
172 System_PC, 179 System_PC,
173 System_OpenEZX, 180 System_OpenEZX,
174 System_Angstrom, 181 System_Angstrom,
175}; 182};
176 183
177typedef struct { 184typedef struct {
178 OSystem system; 185 OSystem system;
179 char* sysstr; 186 char* sysstr;
180 char* sysvfile; 187 char* sysvfile;
181} ODistribution; 188} ODistribution;
182 189
183extern ODistribution distributions[]; 190extern ODistribution distributions[];
184 191
185 192
186enum OLedState { 193enum OLedState {
187 Led_Off, 194 Led_Off,
188 Led_On, 195 Led_On,
189 Led_BlinkSlow, 196 Led_BlinkSlow,
190 Led_BlinkFast 197 Led_BlinkFast
191}; 198};
192 199
193enum OLed { 200enum OLed {
194 Led_Mail, 201 Led_Mail,
195 Led_Power, 202 Led_Power,
196 Led_BlueTooth 203 Led_BlueTooth
197}; 204};
198 205
199enum OHardKey { 206enum OHardKey {
200 HardKey_Datebook = Qt::Key_F9, 207 HardKey_Datebook = Qt::Key_F9,
201 HardKey_Contacts = Qt::Key_F10, 208 HardKey_Contacts = Qt::Key_F10,
202 HardKey_Menu = Qt::Key_F11, 209 HardKey_Menu = Qt::Key_F11,
203 HardKey_Home = Qt::Key_F12, 210 HardKey_Home = Qt::Key_F12,
204 HardKey_Mail = Qt::Key_F13, 211 HardKey_Mail = Qt::Key_F13,
205 HardKey_Record = Qt::Key_F24, 212 HardKey_Record = Qt::Key_F24,
206 HardKey_Suspend = Qt::Key_F34, 213 HardKey_Suspend = Qt::Key_F34,