-rw-r--r-- | libopie2/opiecore/device/odevice.cpp | 6 | ||||
-rw-r--r-- | libopie2/opiecore/device/odevice.h | 6 | ||||
-rw-r--r-- | libopie2/opiecore/device/odevice_zaurus.cpp | 17 |
3 files changed, 24 insertions, 5 deletions
diff --git a/libopie2/opiecore/device/odevice.cpp b/libopie2/opiecore/device/odevice.cpp index 5e91d8b..56f305f 100644 --- a/libopie2/opiecore/device/odevice.cpp +++ b/libopie2/opiecore/device/odevice.cpp | |||
@@ -179,2 +179,3 @@ ODevice::ODevice() | |||
179 | d->m_direction = CW; | 179 | d->m_direction = CW; |
180 | d->m_qteDriver = "Transformed"; | ||
180 | 181 | ||
@@ -404,2 +405,7 @@ ODirection ODevice::direction() const | |||
404 | 405 | ||
406 | QString ODevice::qteDriver() const | ||
407 | { | ||
408 | return d->m_qteDriver; | ||
409 | } | ||
410 | |||
405 | /** | 411 | /** |
diff --git a/libopie2/opiecore/device/odevice.h b/libopie2/opiecore/device/odevice.h index 5db43ff..b8478b9 100644 --- a/libopie2/opiecore/device/odevice.h +++ b/libopie2/opiecore/device/odevice.h | |||
@@ -238,3 +238,2 @@ public: | |||
238 | virtual ~ODevice(); | 238 | virtual ~ODevice(); |
239 | |||
240 | static ODevice *inst(); | 239 | static ODevice *inst(); |
@@ -242,3 +241,2 @@ public: | |||
242 | // information | 241 | // information |
243 | |||
244 | QString modelString() const; | 242 | QString modelString() const; |
@@ -258,2 +256,4 @@ public: | |||
258 | 256 | ||
257 | QString qteDriver() const; | ||
258 | |||
259 | // system | 259 | // system |
@@ -361,2 +361,4 @@ class ODeviceData { | |||
361 | 361 | ||
362 | QString m_qteDriver; | ||
363 | |||
362 | QValueList <ODeviceButton> *m_buttons; | 364 | QValueList <ODeviceButton> *m_buttons; |
diff --git a/libopie2/opiecore/device/odevice_zaurus.cpp b/libopie2/opiecore/device/odevice_zaurus.cpp index 21d2342..0c421e3 100644 --- a/libopie2/opiecore/device/odevice_zaurus.cpp +++ b/libopie2/opiecore/device/odevice_zaurus.cpp | |||
@@ -201,3 +201,4 @@ void Zaurus::init(const QString& cpu_info) | |||
201 | // set path to backlight device in kernel 2.6 | 201 | // set path to backlight device in kernel 2.6 |
202 | switch ( d->m_model ) { | 202 | switch ( d->m_model ) |
203 | { | ||
203 | case Model_Zaurus_SLB600: // fallthrough | 204 | case Model_Zaurus_SLB600: // fallthrough |
@@ -211,3 +212,2 @@ void Zaurus::init(const QString& cpu_info) | |||
211 | m_backlightdev = "/sys/class/backlight/corgi-bl/"; | 212 | m_backlightdev = "/sys/class/backlight/corgi-bl/"; |
212 | break; | ||
213 | } | 213 | } |
@@ -215,3 +215,4 @@ void Zaurus::init(const QString& cpu_info) | |||
215 | // set initial rotation | 215 | // set initial rotation |
216 | switch( d->m_model ) { | 216 | switch( d->m_model ) |
217 | { | ||
217 | case Model_Zaurus_SL6000: // fallthrough | 218 | case Model_Zaurus_SL6000: // fallthrough |
@@ -231,4 +232,14 @@ void Zaurus::init(const QString& cpu_info) | |||
231 | d->m_rotation = Rot270; | 232 | d->m_rotation = Rot270; |
233 | } | ||
234 | |||
235 | // set default qte driver | ||
236 | switch( d->m_model ) | ||
237 | { | ||
238 | case Model_Zaurus_SLC7x0: | ||
239 | d->m_qteDriver = "W100"; | ||
232 | break; | 240 | break; |
241 | default: | ||
242 | d->m_qteDriver = "Transformed"; | ||
233 | } | 243 | } |
244 | |||
234 | m_leds[0] = Led_Off; | 245 | m_leds[0] = Led_Off; |