summaryrefslogtreecommitdiff
path: root/libopie2/opiecore/device/odevice_ipaq.cpp
Unidiff
Diffstat (limited to 'libopie2/opiecore/device/odevice_ipaq.cpp') (more/less context) (show whitespace changes)
-rw-r--r--libopie2/opiecore/device/odevice_ipaq.cpp24
1 files changed, 11 insertions, 13 deletions
diff --git a/libopie2/opiecore/device/odevice_ipaq.cpp b/libopie2/opiecore/device/odevice_ipaq.cpp
index 98e2ffa..efe35e7 100644
--- a/libopie2/opiecore/device/odevice_ipaq.cpp
+++ b/libopie2/opiecore/device/odevice_ipaq.cpp
@@ -116,3 +116,3 @@ struct i_button ipaq_buttons [] = {
116 116
117void iPAQ::init() 117void iPAQ::init(const QString& model)
118{ 118{
@@ -121,8 +121,3 @@ void iPAQ::init()
121 121
122 QFile f ( "/proc/hal/model" ); 122 d->m_modelstr = model.mid(model.findRev('H'));
123
124 if ( f. open ( IO_ReadOnly )) {
125 QTextStream ts ( &f );
126
127 d->m_modelstr = "H" + ts. readLine();
128 123
@@ -140,2 +135,4 @@ void iPAQ::init()
140 d->m_model = Model_iPAQ_H5xxx; 135 d->m_model = Model_iPAQ_H5xxx;
136 else if ( d->m_modelstr == "H2200" )
137 d->m_model = Model_iPAQ_H22xx;
141 else 138 else
@@ -143,4 +140,3 @@ void iPAQ::init()
143 140
144 f. close(); 141
145 }
146 142
@@ -151,2 +147,6 @@ void iPAQ::init()
151 break; 147 break;
148 case Model_iPAQ_H5xxx:
149 case Model_iPAQ_H22xx:
150 d->m_rotation = Rot0;
151 break;
152 case Model_iPAQ_H36xx: 152 case Model_iPAQ_H36xx:
@@ -154,3 +154,2 @@ void iPAQ::init()
154 case Model_iPAQ_H39xx: 154 case Model_iPAQ_H39xx:
155
156 default: 155 default:
@@ -158,7 +157,6 @@ void iPAQ::init()
158 break; 157 break;
159 case Model_iPAQ_H5xxx: 158
160 d->m_rotation = Rot0;
161 } 159 }
162 160
163 f. setName ( "/etc/familiar-version" ); 161 QFile f( "/etc/familiar-version" );
164 if ( f. open ( IO_ReadOnly )) { 162 if ( f. open ( IO_ReadOnly )) {