author | mickeyl <mickeyl> | 2005-08-23 12:25:35 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-08-23 12:25:35 (UTC) |
commit | 95210ac41729a4c264e830963cdae3a4cdd218fb (patch) (side-by-side diff) | |
tree | c73284a5aebdeb2f56d11cec6ecda80e9b41cec8 | |
parent | d6e8e6bf49bb176ec54efed5eb0d012098f056d7 (diff) | |
download | opie-95210ac41729a4c264e830963cdae3a4cdd218fb.zip opie-95210ac41729a4c264e830963cdae3a4cdd218fb.tar.gz opie-95210ac41729a4c264e830963cdae3a4cdd218fb.tar.bz2 |
add support for the Sharp SL-C3100 "Borzoi"
-rw-r--r-- | ChangeLog | 14 | ||||
-rw-r--r-- | libopie2/opiecore/device/odevice.h | 1 | ||||
-rw-r--r-- | libopie2/opiecore/device/odevice_zaurus.cpp | 16 | ||||
-rw-r--r-- | libopie2/opiecore/device/odevice_zaurus.h | 2 |
4 files changed, 22 insertions, 11 deletions
@@ -19,5 +19,4 @@ * Opie-Bluetooth: Replace obex send implementation and patch libopieobex and the bluetoothapplet (Michael Haynie) - Fixed Bugs ---------- @@ -39,10 +38,10 @@ * #1679 - Security PIN plugin is QVGA sized (hrw) * #1682 - Properly resize tab control in OTabWidget (drw) - * n.a. - always show volume and wireless applet popups inside visible screen (deller) + * n.a. - always show volume and wireless applet popups inside visible screen (deller) * n.a. - scale O-Menu-Applets appropriately (mickeyl) - * n.a. - libopienet: fix bugs in wireless scanning and setting SSID (skyhusker) - * n.a. - Wellenreiter: relax WE version matching test a bit (mickeyl) - * n.a. - scale BluezApplet appropriately and use larger icons (mickeyl) - * n.a. - memoryapplet: fix crash in memoryapplet on kernels without swap support (seneca cunningham) + * n.a. - libopienet: fix bugs in wireless scanning and setting SSID (skyhusker) + * n.a. - Wellenreiter: relax WE version matching test a bit (mickeyl) + * n.a. - scale BluezApplet appropriately and use larger icons (mickeyl) + * n.a. - memoryapplet: fix crash in memoryapplet on kernels without swap support (seneca cunningham) * n.a. - networksettings: ignore hostap control interfaces wifi* (mickeyl) * n.a. - Today Addressbook plugin fix configuration to show/not show birthdays, use checkboxes for selection (hrw) @@ -62,6 +61,7 @@ * libopiecore: Add linux pcmcia system abstraction classes (mickeyl) * libopiecore: ODevice now knows the default gfx driver to use (mteira,mickeyl) + * libopiecore: Add support for the Sharp SL-C3100 "Borzoi" (mickeyl) * Remove assumptions about default gfx driver ("Transformed") all over the place (mteira,mickeyl) - * fix / optimize number of scanned directories. (ljp) + * Fix / Optimize number of scanned directories (ljp) 2005-03-25 Opie 1.2.0 diff --git a/libopie2/opiecore/device/odevice.h b/libopie2/opiecore/device/odevice.h index 76cf97d..0eed1c9 100644 --- a/libopie2/opiecore/device/odevice.h +++ b/libopie2/opiecore/device/odevice.h @@ -85,4 +85,5 @@ enum OModel { Model_Zaurus_SLC3000 = ( Model_Zaurus | 0x0007 ), Model_Zaurus_SLC1000 = ( Model_Zaurus | 0x0008 ), + Model_Zaurus_SLC3100 = ( Model_Zaurus | 0x0009 ), Model_SIMpad = ( 3 << 16 ), diff --git a/libopie2/opiecore/device/odevice_zaurus.cpp b/libopie2/opiecore/device/odevice_zaurus.cpp index b7f3104..4a80a7e 100644 --- a/libopie2/opiecore/device/odevice_zaurus.cpp +++ b/libopie2/opiecore/device/odevice_zaurus.cpp @@ -2,5 +2,5 @@ This file is part of the Opie Project Copyright (C) 2002-2005 The Opie Team <opie-devel@handhelds.org> - =. + =. Copyright (C) 2002-2005 Michael 'Mickey' Lauer <mickey@Vanille.de> .=l. .>+-= @@ -225,4 +225,7 @@ void Zaurus::init(const QString& cpu_info) d->m_model = Model_Zaurus_SLC1000; d->m_modelstr = "Zaurus SL-C1000"; + } else if ( model == "SHARP Borzoi" ) { + d->m_model = Model_Zaurus_SLC3100; + d->m_modelstr = "Zaurus SL-C3100"; } else { d->m_model = Model_Zaurus_SL5500; @@ -251,4 +254,5 @@ void Zaurus::init(const QString& cpu_info) d->m_rotation = Rot0; break; + case Model_Zaurus_SLC3100: // fallthrough case Model_Zaurus_SLC3000: // fallthrough case Model_Zaurus_SLC1000: // fallthrough @@ -297,4 +301,5 @@ void Zaurus::initButtons() buttoncount = ARRAY_SIZE(z_buttons_6000); break; + case Model_Zaurus_SLC3100: // fallthrough case Model_Zaurus_SLC3000: // fallthrough case Model_Zaurus_SLC1000: // fallthrough @@ -550,4 +555,5 @@ Transformation Zaurus::rotation() const switch ( d->m_model ) { + case Model_Zaurus_SLC3100: // fallthrough case Model_Zaurus_SLC3000: // fallthrough case Model_Zaurus_SLC1000: @@ -599,4 +605,5 @@ ODirection Zaurus::direction() const switch ( d->m_model ) { + case Model_Zaurus_SLC3100: // fallthrough case Model_Zaurus_SLC3000: // fallthrough case Model_Zaurus_SLC1000: // fallthrough @@ -622,5 +629,8 @@ ODirection Zaurus::direction() const bool Zaurus::hasHingeSensor() const { - return d->m_model == Model_Zaurus_SLC7x0 || d->m_model == Model_Zaurus_SLC3000 || d->m_model == Model_Zaurus_SLC1000; + return d->m_model == Model_Zaurus_SLC7x0 || + d->m_model == Model_Zaurus_SLC3100 || + d->m_model == Model_Zaurus_SLC3000 || + d->m_model == Model_Zaurus_SLC1000; } @@ -672,5 +682,5 @@ bool Zaurus::filter ( int /*unicode*/, int keycode, int modifiers, bool isPress, int newkeycode = keycode; - if (d->m_model != Model_Zaurus_SLC7x0 && d->m_model != Model_Zaurus_SLC3000 && d->m_model != Model_Zaurus_SLC1000) return false; + if ( !hasHingeSensor() ) return false; /* map cursor keys depending on the hinge status */ diff --git a/libopie2/opiecore/device/odevice_zaurus.h b/libopie2/opiecore/device/odevice_zaurus.h index 4314aff..677e29f 100644 --- a/libopie2/opiecore/device/odevice_zaurus.h +++ b/libopie2/opiecore/device/odevice_zaurus.h @@ -2,5 +2,5 @@ This file is part of the Opie Project Copyright (C) 2002-2005 The Opie Team <opie-devel@handhelds.org> - =. + =. Copyright (C) 2002-2005 Michael 'Mickey' Lauer <mickey@Vanille.de> .=l. .>+-= |