summaryrefslogtreecommitdiff
authorzecke <zecke>2005-10-06 18:58:40 (UTC)
committer zecke <zecke>2005-10-06 18:58:40 (UTC)
commit0bad2116a1ceed19956b94889cb034781f35146d (patch) (unidiff)
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
@@ -69,6 +69,7 @@ enum OModel {
69 Model_iPAQ_H5xxx = ( Model_iPAQ | 0x0006 ), 69 Model_iPAQ_H5xxx = ( Model_iPAQ | 0x0006 ),
70 Model_iPAQ_H22xx = ( Model_iPAQ | 0x0007 ), 70 Model_iPAQ_H22xx = ( Model_iPAQ | 0x0007 ),
71 Model_iPAQ_H191x = ( Model_iPAQ | 0x0008 ), 71 Model_iPAQ_H191x = ( Model_iPAQ | 0x0008 ),
72 Model_iPAQ_H1940 = ( Model_iPAQ | 0x0009 ),
72 73
73 Model_Jornada = ( 6 << 16 ), 74 Model_Jornada = ( 6 << 16 ),
74 Model_Jornada_56x = ( Model_Jornada | 0x0001 ), 75 Model_Jornada_56x = ( Model_Jornada | 0x0001 ),
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
@@ -151,6 +151,8 @@ void iPAQ::init(const QString& model)
151 d->m_model = Model_iPAQ_H22xx; 151 d->m_model = Model_iPAQ_H22xx;
152 else if ( d->m_modelstr == "H1910" ) 152 else if ( d->m_modelstr == "H1910" )
153 d->m_model = Model_iPAQ_H191x; 153 d->m_model = Model_iPAQ_H191x;
154 else if ( d->m_modelstr == "H1940" )
155 d->m_model = Model_iPAQ_H1940;
154 else 156 else
155 d->m_model = Model_Unknown; 157 d->m_model = Model_Unknown;
156 158
@@ -162,6 +164,7 @@ void iPAQ::init(const QString& model)
162 case Model_iPAQ_H5xxx: 164 case Model_iPAQ_H5xxx:
163 case Model_iPAQ_H22xx: 165 case Model_iPAQ_H22xx:
164 case Model_iPAQ_H191x: 166 case Model_iPAQ_H191x:
167 case Model_iPAQ_H1940:
165 d->m_rotation = Rot0; 168 d->m_rotation = Rot0;
166 break; 169 break;
167 case Model_iPAQ_H36xx: 170 case Model_iPAQ_H36xx:
@@ -300,7 +303,8 @@ bool iPAQ::filter ( int /*unicode*/, int keycode, int modifiers, bool isPress, b
300 // add the rotation to it and modolo. No we've the original offset 303 // add the rotation to it and modolo. No we've the original offset
301 // add the offset to the Key_Left key 304 // add the offset to the Key_Left key
302 if (( d->m_model == Model_iPAQ_H5xxx ) || 305 if (( d->m_model == Model_iPAQ_H5xxx ) ||
303 ( d->m_model == Model_iPAQ_H191x )) 306 ( d->m_model == Model_iPAQ_H191x ) ||
307 ( d->m_model == Model_iPAQ_H1940 ))
304 newkeycode = Key_Left + ( keycode - Key_Left + 3 ) % 4; 308 newkeycode = Key_Left + ( keycode - Key_Left + 3 ) % 4;
305 break; 309 break;
306 } 310 }
@@ -402,6 +406,8 @@ int iPAQ::displayBrightnessResolution() const
402 return 255; 406 return 255;
403 case Model_iPAQ_H191x: 407 case Model_iPAQ_H191x:
404 return 183; 408 return 183;
409 case Model_iPAQ_H191x:
410 return 44;
405 default: 411 default:
406 return 2; 412 return 2;
407 } 413 }