1 ===================================================================
2 RCS file: /home/cvs/opie/libopie2/opiecore/device/odevice_ipaq.cpp,v
3 retrieving revision 1.19
4 retrieving revision 1.24
5 diff -u -p -r1.19 -r1.24
6 --- opie/libopie2/opiecore/device/odevice_ipaq.cpp 2005/08/10 19:44:56 1.19
7 +++ opie/libopie2/opiecore/device/odevice_ipaq.cpp 2006/04/27 10:45:16 1.24
8 @@ -151,6 +151,11 @@ void iPAQ::init(const QString& model)
9 d->m_model = Model_iPAQ_H22xx;
10 else if ( d->m_modelstr == "H1910" )
11 d->m_model = Model_iPAQ_H191x;
12 + else if ( d->m_modelstr == "H1940" )
13 + d->m_model = Model_iPAQ_H1940;
14 + else if ( d->m_modelstr == "HX4700" )
15 + d->m_model = Model_iPAQ_HX4700;
18 d->m_model = Model_Unknown;
20 @@ -162,6 +167,8 @@ void iPAQ::init(const QString& model)
21 case Model_iPAQ_H5xxx:
22 case Model_iPAQ_H22xx:
23 case Model_iPAQ_H191x:
24 + case Model_iPAQ_H1940:
25 + case Model_iPAQ_HX4700:
28 case Model_iPAQ_H36xx:
29 @@ -300,11 +307,16 @@ bool iPAQ::filter ( int /*unicode*/, int
30 // add the rotation to it and modolo. No we've the original offset
31 // add the offset to the Key_Left key
32 if (( d->m_model == Model_iPAQ_H5xxx ) ||
33 - ( d->m_model == Model_iPAQ_H191x ))
34 + ( d->m_model == Model_iPAQ_H191x ) ||
35 + ( d->m_model == Model_iPAQ_H1940 ))
36 newkeycode = Key_Left + ( keycode - Key_Left + 3 ) % 4;
40 + // map Power Button short/long press to F6 for h191x
42 + if ( d->m_model != Model_iPAQ_H191x )
44 // map Power Button short/long press to F34/F35
47 @@ -374,6 +386,14 @@ bool iPAQ::setDisplayBrightness ( int br
48 // No Global::shellQuote as we gurantee it to be sane
49 res = ( ::system( QFile::encodeName(cmdline) ) == 0 );
52 + case Model_iPAQ_HX4700:
53 + cmdline = QString::fromLatin1( "echo %1 > /sys/class/backlight/w100fb/brightness" ).arg( bright );
54 + // No Global::shellQuote as we gurantee it to be sane
55 + res = ( ::system( QFile::encodeName(cmdline) ) == 0 );
60 if (( fd = ::open ( "/dev/touchscreen/0", O_WRONLY )) >= 0 ) {
62 @@ -399,9 +419,12 @@ int iPAQ::displayBrightnessResolution()
63 case Model_iPAQ_H39xx:
65 case Model_iPAQ_H5xxx:
66 + case Model_iPAQ_HX4700:
68 case Model_iPAQ_H191x:
71 + case Model_iPAQ_H1940:
76 ===================================================================
77 RCS file: /home/cvs/opie/libopie2/opiecore/device/odevice.h,v
78 retrieving revision 1.25
79 retrieving revision 1.26
80 diff -u -p -r1.25 -r1.26
81 --- opie/libopie2/opiecore/device/odevice.h 2005/09/03 18:01:49 1.25
82 +++ opie/libopie2/opiecore/device/odevice.h 2005/10/06 18:58:40 1.26
83 @@ -69,6 +69,7 @@ enum OModel {
84 Model_iPAQ_H5xxx = ( Model_iPAQ | 0x0006 ),
85 Model_iPAQ_H22xx = ( Model_iPAQ | 0x0007 ),
86 Model_iPAQ_H191x = ( Model_iPAQ | 0x0008 ),
87 + Model_iPAQ_H1940 = ( Model_iPAQ | 0x0009 ),
89 Model_Jornada = ( 6 << 16 ),
90 Model_Jornada_56x = ( Model_Jornada | 0x0001 ),
91 ===================================================================
92 RCS file: /home/cvs/opie/libopie2/opiecore/device/odevice.h,v
93 retrieving revision 1.27
94 retrieving revision 1.28
95 diff -u -p -r1.27 -r1.28
96 --- opie/libopie2/opiecore/device/odevice.h 2006/04/23 20:19:27 1.27
97 +++ opie/libopie2/opiecore/device/odevice.h 2006/04/27 10:45:16 1.28
98 @@ -70,7 +70,7 @@ enum OModel {
99 Model_iPAQ_H22xx = ( Model_iPAQ | 0x0007 ),
100 Model_iPAQ_H191x = ( Model_iPAQ | 0x0008 ),
101 Model_iPAQ_H1940 = ( Model_iPAQ | 0x0009 ),
103 + Model_iPAQ_HX4700 = ( Model_iPAQ | 0x000A ),
104 Model_Jornada = ( 6 << 16 ),
105 Model_Jornada_56x = ( Model_Jornada | 0x0001 ),
106 Model_Jornada_720 = ( Model_Jornada | 0x0002 ),