summaryrefslogtreecommitdiff
authorzecke <zecke>2005-10-06 18:58:40 (UTC)
committer zecke <zecke>2005-10-06 18:58:40 (UTC)
commit0bad2116a1ceed19956b94889cb034781f35146d (patch) (side-by-side diff)
treea1131b9e026cdf5533c4da6a7f49fcbb139b4e09
parent31777172abf127e00594790e4365dfad8772b100 (diff)
downloadopie-0bad2116a1ceed19956b94889cb034781f35146d.zip
opie-0bad2116a1ceed19956b94889cb034781f35146d.tar.gz
opie-0bad2116a1ceed19956b94889cb034781f35146d.tar.bz2
ODevice patch from #1701 gor hp1940
-Allocate device number -Some implementation
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/device/odevice.h1
-rw-r--r--libopie2/opiecore/device/odevice_ipaq.cpp8
2 files changed, 8 insertions, 1 deletions
diff --git a/libopie2/opiecore/device/odevice.h b/libopie2/opiecore/device/odevice.h
index 492c97b..c70d2af 100644
--- a/libopie2/opiecore/device/odevice.h
+++ b/libopie2/opiecore/device/odevice.h
@@ -71,2 +71,3 @@ enum OModel {
Model_iPAQ_H191x = ( Model_iPAQ | 0x0008 ),
+ Model_iPAQ_H1940 = ( Model_iPAQ | 0x0009 ),
diff --git a/libopie2/opiecore/device/odevice_ipaq.cpp b/libopie2/opiecore/device/odevice_ipaq.cpp
index 3cc6cec..52da2d9 100644
--- a/libopie2/opiecore/device/odevice_ipaq.cpp
+++ b/libopie2/opiecore/device/odevice_ipaq.cpp
@@ -153,2 +153,4 @@ void iPAQ::init(const QString& model)
d->m_model = Model_iPAQ_H191x;
+ else if ( d->m_modelstr == "H1940" )
+ d->m_model = Model_iPAQ_H1940;
else
@@ -164,2 +166,3 @@ void iPAQ::init(const QString& model)
case Model_iPAQ_H191x:
+ case Model_iPAQ_H1940:
d->m_rotation = Rot0;
@@ -302,3 +305,4 @@ bool iPAQ::filter ( int /*unicode*/, int keycode, int modifiers, bool isPress, b
if (( d->m_model == Model_iPAQ_H5xxx ) ||
- ( d->m_model == Model_iPAQ_H191x ))
+ ( d->m_model == Model_iPAQ_H191x ) ||
+ ( d->m_model == Model_iPAQ_H1940 ))
newkeycode = Key_Left + ( keycode - Key_Left + 3 ) % 4;
@@ -404,2 +408,4 @@ int iPAQ::displayBrightnessResolution() const
return 183;
+ case Model_iPAQ_H191x:
+ return 44;
default: