summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/device/odevice.cpp6
-rw-r--r--libopie2/opiecore/device/odevice.h6
-rw-r--r--libopie2/opiecore/device/odevice_zaurus.cpp17
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()
d->m_direction = CW;
+ d->m_qteDriver = "Transformed";
@@ -404,2 +405,7 @@ ODirection ODevice::direction() const
+QString ODevice::qteDriver() const
+{
+ return d->m_qteDriver;
+}
+
/**
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:
virtual ~ODevice();
-
static ODevice *inst();
@@ -242,3 +241,2 @@ public:
// information
-
QString modelString() const;
@@ -258,2 +256,4 @@ public:
+ QString qteDriver() const;
+
// system
@@ -361,2 +361,4 @@ class ODeviceData {
+ QString m_qteDriver;
+
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)
// set path to backlight device in kernel 2.6
- switch ( d->m_model ) {
+ switch ( d->m_model )
+ {
case Model_Zaurus_SLB600: // fallthrough
@@ -211,3 +212,2 @@ void Zaurus::init(const QString& cpu_info)
m_backlightdev = "/sys/class/backlight/corgi-bl/";
- break;
}
@@ -215,3 +215,4 @@ void Zaurus::init(const QString& cpu_info)
// set initial rotation
- switch( d->m_model ) {
+ switch( d->m_model )
+ {
case Model_Zaurus_SL6000: // fallthrough
@@ -231,4 +232,14 @@ void Zaurus::init(const QString& cpu_info)
d->m_rotation = Rot270;
+ }
+
+ // set default qte driver
+ switch( d->m_model )
+ {
+ case Model_Zaurus_SLC7x0:
+ d->m_qteDriver = "W100";
break;
+ default:
+ d->m_qteDriver = "Transformed";
}
+
m_leds[0] = Led_Off;