summaryrefslogtreecommitdiff
path: root/libopie2
authormickeyl <mickeyl>2005-06-26 12:27:37 (UTC)
committer mickeyl <mickeyl>2005-06-26 12:27:37 (UTC)
commitb4d2fa56d4b4608656f6b5cf3ff9375708395e91 (patch) (side-by-side diff)
tree7b087a487929d9b0f9de67860b9fe123773239f0 /libopie2
parent53f924947144ddbb3e15d3bd1ddc877073c7ec7f (diff)
downloadopie-b4d2fa56d4b4608656f6b5cf3ff9375708395e91.zip
opie-b4d2fa56d4b4608656f6b5cf3ff9375708395e91.tar.gz
opie-b4d2fa56d4b4608656f6b5cf3ff9375708395e91.tar.bz2
ODevice now features a method to gather the preferred qte driver.
The default driver is "Transformed". C7x0 Zaurus devices use "W100" from now on.
Diffstat (limited to 'libopie2') (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;