author | mickeyl <mickeyl> | 2006-02-06 13:40:26 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2006-02-06 13:40:26 (UTC) |
commit | b5e868fd9f1dcc97c388f01f9b99ebfeb891133a (patch) (unidiff) | |
tree | 025a48bb1332c3114384b24979f01f51c5c3987a | |
parent | c5dee755c8f72f83bad3279659b58e1bd4cf28e1 (diff) | |
download | opie-b5e868fd9f1dcc97c388f01f9b99ebfeb891133a.zip opie-b5e868fd9f1dcc97c388f01f9b99ebfeb891133a.tar.gz opie-b5e868fd9f1dcc97c388f01f9b99ebfeb891133a.tar.bz2 |
odevice: tosa now uses corgi-bl. patch courtesy Dirk Opfer - thanks
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | libopie2/opiecore/device/odevice_zaurus.cpp | 3 |
2 files changed, 1 insertions, 3 deletions
@@ -1,91 +1,92 @@ | |||
1 | 2005-??-??Opie 1.2.2 | 1 | 2005-??-??Opie 1.2.2 |
2 | 2 | ||
3 | 3 | ||
4 | New Features | 4 | New Features |
5 | ------------ | 5 | ------------ |
6 | * Appearance: Added configuration options to set smallIconSize, bigIconSize, useBigPixmaps (hrw, drw) | 6 | * Appearance: Added configuration options to set smallIconSize, bigIconSize, useBigPixmaps (hrw, drw) |
7 | * Opie-Notes: Notes application based on NoteZ (hrw) | 7 | * Opie-Notes: Notes application based on NoteZ (hrw) |
8 | * OPIE-PackageManager: Added two configuration options: "Force recursive", "Verbose fetch" (hrw) | 8 | * OPIE-PackageManager: Added two configuration options: "Force recursive", "Verbose fetch" (hrw) |
9 | 9 | ||
10 | Fixed Bugs | 10 | Fixed Bugs |
11 | ---------- | 11 | ---------- |
12 | * #1695 - Date selector use too small fontsize on VGA screen (hrw) | 12 | * #1695 - Date selector use too small fontsize on VGA screen (hrw) |
13 | * #1686 - opie-console lack UI setting for switching scrollbar (hrw) | 13 | * #1686 - opie-console lack UI setting for switching scrollbar (hrw) |
14 | * #1647 - Opie-console doesn't respect scroll-bar on left side (hrw) | 14 | * #1647 - Opie-console doesn't respect scroll-bar on left side (hrw) |
15 | * #1624 - Button settngs changes are applied only after restart (hrw) | 15 | * #1624 - Button settngs changes are applied only after restart (hrw) |
16 | * #1492 - Backup and Restore does not show list of backups to restore on start (hrw) | 16 | * #1492 - Backup and Restore does not show list of backups to restore on start (hrw) |
17 | * n.a. - remove hardcoded font size from wellenreiter (hrw) | 17 | * n.a. - remove hardcoded font size from wellenreiter (hrw) |
18 | * n.a. - added patch to build QT/E 2.3.10 with gcc 4.x.x (hrw) | 18 | * n.a. - added patch to build QT/E 2.3.10 with gcc 4.x.x (hrw) |
19 | * n.a. - make blue-pin UI resizable to looks good in any resolution (hrw) | 19 | * n.a. - make blue-pin UI resizable to looks good in any resolution (hrw) |
20 | * n.a. - fix a problem with vCard send to Sony Ericsson k600i (ar) | 20 | * n.a. - fix a problem with vCard send to Sony Ericsson k600i (ar) |
21 | * n.a. - add a patch to build Qt/E 2.3.10 on amd64 with gcc 4.x.x (ar) | 21 | * n.a. - add a patch to build Qt/E 2.3.10 on amd64 with gcc 4.x.x (ar) |
22 | * n.a. - Opie-console fallback to FixedFont settings from qpe.conf in config (hrw) | 22 | * n.a. - Opie-console fallback to FixedFont settings from qpe.conf in config (hrw) |
23 | * n.a. - Set version to 1.2.1 in About applet (hrw) | 23 | * n.a. - Set version to 1.2.1 in About applet (hrw) |
24 | 24 | ||
25 | Internal | 25 | Internal |
26 | -------- | 26 | -------- |
27 | * libopiecore: /etc/oz_version renamed to /etc/openzaurus-version (hrw) | 27 | * libopiecore: /etc/oz_version renamed to /etc/openzaurus-version (hrw) |
28 | * libopiecore: SL6000 (tosa) now uses corgi-bl (Dirk Opfer) | ||
28 | 29 | ||
29 | 2005-09-11Opie 1.2.1 | 30 | 2005-09-11Opie 1.2.1 |
30 | 31 | ||
31 | 32 | ||
32 | New Features | 33 | New Features |
33 | ------------ | 34 | ------------ |
34 | * OpieStumbler: Scans WiFi networks using the wireless extension scanning (skyhusker) | 35 | * OpieStumbler: Scans WiFi networks using the wireless extension scanning (skyhusker) |
35 | * Opie-Reader: Support for document formats ArriereGo and Reb, add flite output (tim,pohly) | 36 | * Opie-Reader: Support for document formats ArriereGo and Reb, add flite output (tim,pohly) |
36 | * Opie-Networksettings: Add support for wlan-ng devices and improve WEP handling (Dirk Opfer) | 37 | * Opie-Networksettings: Add support for wlan-ng devices and improve WEP handling (Dirk Opfer) |
37 | * Wellenreiter: Remove Joining networks - use OpieStumbler for that (mickeyl) | 38 | * Wellenreiter: Remove Joining networks - use OpieStumbler for that (mickeyl) |
38 | * Opie-Mobilemsg has gone unsupported - it never really worked and there will be a replacement (mickeyl) | 39 | * Opie-Mobilemsg has gone unsupported - it never really worked and there will be a replacement (mickeyl) |
39 | * Opie-Tabmanager has gone unsupported - it barely works and there is not much of a use of it anyway (mickeyl) | 40 | * Opie-Tabmanager has gone unsupported - it barely works and there is not much of a use of it anyway (mickeyl) |
40 | * Checkbook: Added configuration option to use smaller font for checkbook transaction tab (hrw) | 41 | * Checkbook: Added configuration option to use smaller font for checkbook transaction tab (hrw) |
41 | * ZSafe: Made UI conform to Opie standards (drw) | 42 | * ZSafe: Made UI conform to Opie standards (drw) |
42 | * Today Addressbook plugin: Fixed configuration to show/not show birthdays, use checkboxes for selection (hrw) | 43 | * Today Addressbook plugin: Fixed configuration to show/not show birthdays, use checkboxes for selection (hrw) |
43 | * Opie-Console: Read initial fixed font configuration from qpe.conf (mickeyl) | 44 | * Opie-Console: Read initial fixed font configuration from qpe.conf (mickeyl) |
44 | * Opie-PcmciaApplet: Configure insert/resume actions and bind unsupported cards (mickeyl) | 45 | * Opie-PcmciaApplet: Configure insert/resume actions and bind unsupported cards (mickeyl) |
45 | * SysInfo: Remove CPU tab and add Devices tab instead (mickeyl) | 46 | * SysInfo: Remove CPU tab and add Devices tab instead (mickeyl) |
46 | * Opie-smb: Added Opie front end for Samba (ljp) | 47 | * Opie-smb: Added Opie front end for Samba (ljp) |
47 | * Opie-Bluetooth: Replace obex send implementation and patch libopieobex and the bluetoothapplet (Michael Haynie) | 48 | * Opie-Bluetooth: Replace obex send implementation and patch libopieobex and the bluetoothapplet (Michael Haynie) |
48 | * Opieplayer: rudimentary podcast support (ljp) | 49 | * Opieplayer: rudimentary podcast support (ljp) |
49 | 50 | ||
50 | Fixed Bugs | 51 | Fixed Bugs |
51 | ---------- | 52 | ---------- |
52 | * #1377 - Suspend Powermanagement when switched to another VT (mickeyl) | 53 | * #1377 - Suspend Powermanagement when switched to another VT (mickeyl) |
53 | - We actually suspend the complete Opie now in that case. | 54 | - We actually suspend the complete Opie now in that case. |
54 | * #1384 - Battery status updated improperly when charging (skyhusker) | 55 | * #1384 - Battery status updated improperly when charging (skyhusker) |
55 | * #1476 - Wrong order of application entries in the O-menu (skyhusker) | 56 | * #1476 - Wrong order of application entries in the O-menu (skyhusker) |
56 | * #1514 - Remove usage of cardmon/pcmcia picture in applications. pcmcia is now an inline picture (mickeyl) | 57 | * #1514 - Remove usage of cardmon/pcmcia picture in applications. pcmcia is now an inline picture (mickeyl) |
57 | * #1535- Missing line break and unnecessary location shown with Today-Calendar plugin (deller) | 58 | * #1535- Missing line break and unnecessary location shown with Today-Calendar plugin (deller) |
58 | * #1543 - Time Settings: "predict" tab is displayed twice after reopen (hrw) | 59 | * #1543 - Time Settings: "predict" tab is displayed twice after reopen (hrw) |
59 | * #1546 - Battery applet popup is not always large enough to show jacket remaining info (skyhusker) | 60 | * #1546 - Battery applet popup is not always large enough to show jacket remaining info (skyhusker) |
60 | * #1557 - Light&Power-Settings don't store warning intervall and warning levels (skyhusker) | 61 | * #1557 - Light&Power-Settings don't store warning intervall and warning levels (skyhusker) |
61 | * #1565 - crash-fix in odevice.cpp while scanning the distribution table (deller) | 62 | * #1565 - crash-fix in odevice.cpp while scanning the distribution table (deller) |
62 | * #1614 - Make Opie-console start in $HOME instead of / (skyhusker) | 63 | * #1614 - Make Opie-console start in $HOME instead of / (skyhusker) |
63 | * #1635 - opie-today, datebook-plugin does not show notes (skyhusker) | 64 | * #1635 - opie-today, datebook-plugin does not show notes (skyhusker) |
64 | * #1665 - Opie-IRC displays the host prepended to the message when peer is using and ipv6 address (skyhusker) | 65 | * #1665 - Opie-IRC displays the host prepended to the message when peer is using and ipv6 address (skyhusker) |
65 | * #1666 - Opie-IRC does not allow to add !channels in config asautojoin ones (skyhusker) | 66 | * #1666 - Opie-IRC does not allow to add !channels in config asautojoin ones (skyhusker) |
66 | * #1667 - Opie-IRC does not show messages from !channel (skyhusker) | 67 | * #1667 - Opie-IRC does not show messages from !channel (skyhusker) |
67 | * #1679 - Security PIN plugin is QVGA sized (hrw) | 68 | * #1679 - Security PIN plugin is QVGA sized (hrw) |
68 | * #1682 - Properly resize tab control in OTabWidget (drw) | 69 | * #1682 - Properly resize tab control in OTabWidget (drw) |
69 | * n.a. - always show volume and wireless applet popups inside visible screen (deller) | 70 | * n.a. - always show volume and wireless applet popups inside visible screen (deller) |
70 | * n.a. - scale O-Menu-Applets appropriately (mickeyl) | 71 | * n.a. - scale O-Menu-Applets appropriately (mickeyl) |
71 | * n.a. - libopienet: fix bugs in wireless scanning and setting SSID (skyhusker) | 72 | * n.a. - libopienet: fix bugs in wireless scanning and setting SSID (skyhusker) |
72 | * n.a. - Wellenreiter: relax WE version matching test a bit (mickeyl) | 73 | * n.a. - Wellenreiter: relax WE version matching test a bit (mickeyl) |
73 | * n.a. - scale BluezApplet appropriately and use larger icons (mickeyl) | 74 | * n.a. - scale BluezApplet appropriately and use larger icons (mickeyl) |
74 | * n.a. - memoryapplet: fix crash in memoryapplet on kernels without swap support (seneca cunningham) | 75 | * n.a. - memoryapplet: fix crash in memoryapplet on kernels without swap support (seneca cunningham) |
75 | * n.a. - networksettings: ignore hostap control interfaces wifi* (mickeyl) | 76 | * n.a. - networksettings: ignore hostap control interfaces wifi* (mickeyl) |
76 | * n.a. - Today Addressbook plugin fix configuration to show/not show birthdays, use checkboxes for selection (hrw) | 77 | * n.a. - Today Addressbook plugin fix configuration to show/not show birthdays, use checkboxes for selection (hrw) |
77 | * n.a. - remove hardcoded font size from netsystemtime (hrw) | 78 | * n.a. - remove hardcoded font size from netsystemtime (hrw) |
78 | * n.a. - remove hardcoded font size from checkbook graphs (hrw) | 79 | * n.a. - remove hardcoded font size from checkbook graphs (hrw) |
79 | * n.a. - Dagger - fixes for Sword 1.5.8, morph tag x-refs, closing last tab crash (drw) | 80 | * n.a. - Dagger - fixes for Sword 1.5.8, morph tag x-refs, closing last tab crash (drw) |
80 | 81 | ||
81 | 82 | ||
82 | Internal | 83 | Internal |
83 | -------- | 84 | -------- |
84 | * Make BluezApplet use OTaskbarApplet (mickeyl) | 85 | * Make BluezApplet use OTaskbarApplet (mickeyl) |
85 | * libopiecore: rewrite OFileNotification to use the Linux 2.6 inotify interface (mickeyl) | 86 | * libopiecore: rewrite OFileNotification to use the Linux 2.6 inotify interface (mickeyl) |
86 | * libopiecore: add ODirNotification - recursive directory notifications (mickeyl) | 87 | * libopiecore: add ODirNotification - recursive directory notifications (mickeyl) |
87 | * libopienet: Skip hostap control interfaces 'wifi' and improve robustness in ONetworkInterface (mickeyl) | 88 | * libopienet: Skip hostap control interfaces 'wifi' and improve robustness in ONetworkInterface (mickeyl) |
88 | * libopieui: Remove OVersatileView and OVersatileViewItem (mickeyl) | 89 | * libopieui: Remove OVersatileView and OVersatileViewItem (mickeyl) |
89 | * libopienet: Miscellaneous API cleanups (mickeyl) | 90 | * libopienet: Miscellaneous API cleanups (mickeyl) |
90 | * libopiecore: Add linux pcmcia system abstraction classes (mickeyl) | 91 | * libopiecore: Add linux pcmcia system abstraction classes (mickeyl) |
91 | * libopiecore: ODevice now knows the default gfx driver to use (mteira,mickeyl) | 92 | * libopiecore: ODevice now knows the default gfx driver to use (mteira,mickeyl) |
diff --git a/libopie2/opiecore/device/odevice_zaurus.cpp b/libopie2/opiecore/device/odevice_zaurus.cpp index 8a7e252..28a1ccf 100644 --- a/libopie2/opiecore/device/odevice_zaurus.cpp +++ b/libopie2/opiecore/device/odevice_zaurus.cpp | |||
@@ -181,131 +181,128 @@ void Zaurus::init(const QString& cpu_info) | |||
181 | 181 | ||
182 | // OpenZaurus sometimes uses the 2.4 (embedix) kernel, check if this is one | 182 | // OpenZaurus sometimes uses the 2.4 (embedix) kernel, check if this is one |
183 | FILE *uname = popen("uname -r", "r"); | 183 | FILE *uname = popen("uname -r", "r"); |
184 | QFile f; | 184 | QFile f; |
185 | QString line; | 185 | QString line; |
186 | if ( f.open(IO_ReadOnly, uname) ) { | 186 | if ( f.open(IO_ReadOnly, uname) ) { |
187 | QTextStream ts ( &f ); | 187 | QTextStream ts ( &f ); |
188 | line = ts.readLine(); | 188 | line = ts.readLine(); |
189 | m_embedix = line.startsWith( "2.4." ); | 189 | m_embedix = line.startsWith( "2.4." ); |
190 | f.close(); | 190 | f.close(); |
191 | } | 191 | } |
192 | pclose(uname); | 192 | pclose(uname); |
193 | } | 193 | } |
194 | 194 | ||
195 | // check the Zaurus model | 195 | // check the Zaurus model |
196 | QString model; | 196 | QString model; |
197 | int loc = cpu_info.find( ":" ); | 197 | int loc = cpu_info.find( ":" ); |
198 | if ( loc != -1 ) | 198 | if ( loc != -1 ) |
199 | model = cpu_info.mid( loc+2 ).simplifyWhiteSpace(); | 199 | model = cpu_info.mid( loc+2 ).simplifyWhiteSpace(); |
200 | else | 200 | else |
201 | model = cpu_info; | 201 | model = cpu_info; |
202 | 202 | ||
203 | if ( model == "SHARP Corgi" ) { | 203 | if ( model == "SHARP Corgi" ) { |
204 | d->m_model = Model_Zaurus_SLC7x0; | 204 | d->m_model = Model_Zaurus_SLC7x0; |
205 | d->m_modelstr = "Zaurus SL-C700"; | 205 | d->m_modelstr = "Zaurus SL-C700"; |
206 | } else if ( model == "SHARP Shepherd" ) { | 206 | } else if ( model == "SHARP Shepherd" ) { |
207 | d->m_model = Model_Zaurus_SLC7x0; | 207 | d->m_model = Model_Zaurus_SLC7x0; |
208 | d->m_modelstr = "Zaurus SL-C750"; | 208 | d->m_modelstr = "Zaurus SL-C750"; |
209 | } else if ( model == "SHARP Husky" ) { | 209 | } else if ( model == "SHARP Husky" ) { |
210 | d->m_model = Model_Zaurus_SLC7x0; | 210 | d->m_model = Model_Zaurus_SLC7x0; |
211 | d->m_modelstr = "Zaurus SL-C760 or SL-C860"; | 211 | d->m_modelstr = "Zaurus SL-C760 or SL-C860"; |
212 | } else if ( model == "SHARP Boxer" ) { | 212 | } else if ( model == "SHARP Boxer" ) { |
213 | d->m_model = Model_Zaurus_SLC7x0; | 213 | d->m_model = Model_Zaurus_SLC7x0; |
214 | d->m_modelstr = "Zaurus SL-C760 or SL-C860"; | 214 | d->m_modelstr = "Zaurus SL-C760 or SL-C860"; |
215 | } else if ( model == "SHARP Poodle" ) { | 215 | } else if ( model == "SHARP Poodle" ) { |
216 | d->m_model = Model_Zaurus_SLB600; | 216 | d->m_model = Model_Zaurus_SLB600; |
217 | d->m_modelstr = "Zaurus SL-B500 or SL-5600"; | 217 | d->m_modelstr = "Zaurus SL-B500 or SL-5600"; |
218 | } else if ( model == "Sharp-Collie" || model == "Collie" ) { | 218 | } else if ( model == "Sharp-Collie" || model == "Collie" ) { |
219 | d->m_model = Model_Zaurus_SL5500; | 219 | d->m_model = Model_Zaurus_SL5500; |
220 | d->m_modelstr = "Zaurus SL-5500 or SL-5000d"; | 220 | d->m_modelstr = "Zaurus SL-5500 or SL-5000d"; |
221 | } else if ( model == "SHARP Tosa" ) { | 221 | } else if ( model == "SHARP Tosa" ) { |
222 | d->m_model = Model_Zaurus_SL6000; | 222 | d->m_model = Model_Zaurus_SL6000; |
223 | d->m_modelstr = "Zaurus SL-6000"; | 223 | d->m_modelstr = "Zaurus SL-6000"; |
224 | } else if ( model == "SHARP Spitz" ) { | 224 | } else if ( model == "SHARP Spitz" ) { |
225 | d->m_model = Model_Zaurus_SLC3000; | 225 | d->m_model = Model_Zaurus_SLC3000; |
226 | d->m_modelstr = "Zaurus SL-C3000"; | 226 | d->m_modelstr = "Zaurus SL-C3000"; |
227 | } else if ( model == "SHARP Akita" ) { | 227 | } else if ( model == "SHARP Akita" ) { |
228 | d->m_model = Model_Zaurus_SLC1000; | 228 | d->m_model = Model_Zaurus_SLC1000; |
229 | d->m_modelstr = "Zaurus SL-C1000"; | 229 | d->m_modelstr = "Zaurus SL-C1000"; |
230 | } else if ( model == "SHARP Borzoi" ) { | 230 | } else if ( model == "SHARP Borzoi" ) { |
231 | d->m_model = Model_Zaurus_SLC3100; | 231 | d->m_model = Model_Zaurus_SLC3100; |
232 | d->m_modelstr = "Zaurus SL-C3100"; | 232 | d->m_modelstr = "Zaurus SL-C3100"; |
233 | } else { | 233 | } else { |
234 | d->m_model = Model_Zaurus_SL5500; | 234 | d->m_model = Model_Zaurus_SL5500; |
235 | d->m_modelstr = "Unknown Zaurus"; | 235 | d->m_modelstr = "Unknown Zaurus"; |
236 | } | 236 | } |
237 | 237 | ||
238 | // set path to backlight device in kernel 2.6 | 238 | // set path to backlight device in kernel 2.6 |
239 | switch ( d->m_model ) | 239 | switch ( d->m_model ) |
240 | { | 240 | { |
241 | case Model_Zaurus_SLB600: // fallthrough | 241 | case Model_Zaurus_SLB600: // fallthrough |
242 | case Model_Zaurus_SL5500: | 242 | case Model_Zaurus_SL5500: |
243 | m_backlightdev = "/sys/class/backlight/locomo-backlight/"; | 243 | m_backlightdev = "/sys/class/backlight/locomo-backlight/"; |
244 | break; | 244 | break; |
245 | case Model_Zaurus_SL6000: | ||
246 | m_backlightdev = "/sys/class/backlight/tosa-bl/"; | ||
247 | break; | ||
248 | default: | 245 | default: |
249 | m_backlightdev = "/sys/class/backlight/corgi-bl/"; | 246 | m_backlightdev = "/sys/class/backlight/corgi-bl/"; |
250 | } | 247 | } |
251 | 248 | ||
252 | // set initial rotation | 249 | // set initial rotation |
253 | switch( d->m_model ) | 250 | switch( d->m_model ) |
254 | { | 251 | { |
255 | case Model_Zaurus_SL6000: // fallthrough | 252 | case Model_Zaurus_SL6000: // fallthrough |
256 | case Model_Zaurus_SLA300: | 253 | case Model_Zaurus_SLA300: |
257 | d->m_rotation = Rot0; | 254 | d->m_rotation = Rot0; |
258 | break; | 255 | break; |
259 | case Model_Zaurus_SLC3100: // fallthrough | 256 | case Model_Zaurus_SLC3100: // fallthrough |
260 | case Model_Zaurus_SLC3000: // fallthrough | 257 | case Model_Zaurus_SLC3000: // fallthrough |
261 | case Model_Zaurus_SLC1000: // fallthrough | 258 | case Model_Zaurus_SLC1000: // fallthrough |
262 | case Model_Zaurus_SLC7x0: | 259 | case Model_Zaurus_SLC7x0: |
263 | initHingeSensor(); | 260 | initHingeSensor(); |
264 | d->m_rotation = rotation(); | 261 | d->m_rotation = rotation(); |
265 | d->m_direction = direction(); | 262 | d->m_direction = direction(); |
266 | break; | 263 | break; |
267 | case Model_Zaurus_SLB600: // fallthrough | 264 | case Model_Zaurus_SLB600: // fallthrough |
268 | case Model_Zaurus_SL5000: // fallthrough | 265 | case Model_Zaurus_SL5000: // fallthrough |
269 | case Model_Zaurus_SL5500: // fallthrough | 266 | case Model_Zaurus_SL5500: // fallthrough |
270 | default: | 267 | default: |
271 | d->m_rotation = Rot270; | 268 | d->m_rotation = Rot270; |
272 | } | 269 | } |
273 | 270 | ||
274 | // set default qte driver | 271 | // set default qte driver |
275 | switch( d->m_model ) | 272 | switch( d->m_model ) |
276 | { | 273 | { |
277 | case Model_Zaurus_SLC7x0: | 274 | case Model_Zaurus_SLC7x0: |
278 | d->m_qteDriver = "W100"; | 275 | d->m_qteDriver = "W100"; |
279 | break; | 276 | break; |
280 | default: | 277 | default: |
281 | d->m_qteDriver = "Transformed"; | 278 | d->m_qteDriver = "Transformed"; |
282 | } | 279 | } |
283 | 280 | ||
284 | m_leds[0] = Led_Off; | 281 | m_leds[0] = Led_Off; |
285 | 282 | ||
286 | if ( m_embedix ) | 283 | if ( m_embedix ) |
287 | qDebug( "Zaurus::init() - Using the 2.4 Embedix HAL on a %s", (const char*) d->m_modelstr ); | 284 | qDebug( "Zaurus::init() - Using the 2.4 Embedix HAL on a %s", (const char*) d->m_modelstr ); |
288 | else | 285 | else |
289 | qDebug( "Zaurus::init() - Using the 2.6 OpenZaurus HAL on a %s", (const char*) d->m_modelstr ); | 286 | qDebug( "Zaurus::init() - Using the 2.6 OpenZaurus HAL on a %s", (const char*) d->m_modelstr ); |
290 | } | 287 | } |
291 | 288 | ||
292 | void Zaurus::initButtons() | 289 | void Zaurus::initButtons() |
293 | { | 290 | { |
294 | qDebug( "Zaurus::initButtons()" ); | 291 | qDebug( "Zaurus::initButtons()" ); |
295 | if ( d->m_buttons ) | 292 | if ( d->m_buttons ) |
296 | return; | 293 | return; |
297 | 294 | ||
298 | d->m_buttons = new QValueList <ODeviceButton>; | 295 | d->m_buttons = new QValueList <ODeviceButton>; |
299 | 296 | ||
300 | struct z_button * pz_buttons; | 297 | struct z_button * pz_buttons; |
301 | int buttoncount; | 298 | int buttoncount; |
302 | switch ( d->m_model ) | 299 | switch ( d->m_model ) |
303 | { | 300 | { |
304 | case Model_Zaurus_SL6000: | 301 | case Model_Zaurus_SL6000: |
305 | pz_buttons = z_buttons_6000; | 302 | pz_buttons = z_buttons_6000; |
306 | buttoncount = ARRAY_SIZE(z_buttons_6000); | 303 | buttoncount = ARRAY_SIZE(z_buttons_6000); |
307 | break; | 304 | break; |
308 | case Model_Zaurus_SLC3100: // fallthrough | 305 | case Model_Zaurus_SLC3100: // fallthrough |
309 | case Model_Zaurus_SLC3000: // fallthrough | 306 | case Model_Zaurus_SLC3000: // fallthrough |
310 | case Model_Zaurus_SLC1000: // fallthrough | 307 | case Model_Zaurus_SLC1000: // fallthrough |
311 | case Model_Zaurus_SLC7x0: | 308 | case Model_Zaurus_SLC7x0: |