Diffstat (limited to 'libopie2/opiecore/device/odevice_ipaq.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiecore/device/odevice_ipaq.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/libopie2/opiecore/device/odevice_ipaq.cpp b/libopie2/opiecore/device/odevice_ipaq.cpp index 6193ddc..9e01a0c 100644 --- a/libopie2/opiecore/device/odevice_ipaq.cpp +++ b/libopie2/opiecore/device/odevice_ipaq.cpp | |||
@@ -168,51 +168,48 @@ void iPAQ::initButtons() | |||
168 | if ( d->m_buttons ) | 168 | if ( d->m_buttons ) |
169 | return; | 169 | return; |
170 | 170 | ||
171 | if ( isQWS( ) ) { | 171 | if ( isQWS( ) ) { |
172 | addPreHandler(this); | 172 | addPreHandler(this); |
173 | } | 173 | } |
174 | 174 | ||
175 | d->m_buttons = new QValueList <ODeviceButton>; | 175 | d->m_buttons = new QValueList <ODeviceButton>; |
176 | 176 | ||
177 | for ( uint i = 0; i < ( sizeof( ipaq_buttons ) / sizeof( i_button )); i++ ) { | 177 | for ( uint i = 0; i < ( sizeof( ipaq_buttons ) / sizeof( i_button )); i++ ) { |
178 | i_button *ib = ipaq_buttons + i; | 178 | i_button *ib = ipaq_buttons + i; |
179 | ODeviceButton b; | 179 | ODeviceButton b; |
180 | 180 | ||
181 | if (( ib->model & d->m_model ) == d->m_model ) { | 181 | if (( ib->model & d->m_model ) == d->m_model ) { |
182 | b. setKeycode ( ib->code ); | 182 | b. setKeycode ( ib->code ); |
183 | b. setUserText ( QObject::tr ( "Button", ib->utext )); | 183 | b. setUserText ( QObject::tr ( "Button", ib->utext )); |
184 | b. setPixmap ( Resource::loadPixmap ( ib->pix )); | 184 | b. setPixmap ( Resource::loadPixmap ( ib->pix )); |
185 | b. setFactoryPresetPressedAction ( OQCopMessage ( makeChannel ( ib->fpressedservice ), ib->fpressedaction )); | 185 | b. setFactoryPresetPressedAction ( OQCopMessage ( makeChannel ( ib->fpressedservice ), ib->fpressedaction )); |
186 | b. setFactoryPresetHeldAction ( OQCopMessage ( makeChannel ( ib->fheldservice ), ib->fheldaction )); | 186 | b. setFactoryPresetHeldAction ( OQCopMessage ( makeChannel ( ib->fheldservice ), ib->fheldaction )); |
187 | 187 | ||
188 | d->m_buttons->append ( b ); | 188 | d->m_buttons->append ( b ); |
189 | } | 189 | } |
190 | } | 190 | } |
191 | reloadButtonMapping(); | 191 | reloadButtonMapping(); |
192 | |||
193 | QCopChannel *sysch = new QCopChannel ( "QPE/System", this ); | ||
194 | connect ( sysch, SIGNAL( received(const QCString&,const QByteArray&)), this, SLOT( systemMessage(const QCString&,const QByteArray&))); | ||
195 | } | 192 | } |
196 | 193 | ||
197 | QValueList <OLed> iPAQ::ledList() const | 194 | QValueList <OLed> iPAQ::ledList() const |
198 | { | 195 | { |
199 | QValueList <OLed> vl; | 196 | QValueList <OLed> vl; |
200 | vl << Led_Power; | 197 | vl << Led_Power; |
201 | 198 | ||
202 | if ( d->m_model == Model_iPAQ_H38xx ) | 199 | if ( d->m_model == Model_iPAQ_H38xx ) |
203 | vl << Led_BlueTooth; | 200 | vl << Led_BlueTooth; |
204 | return vl; | 201 | return vl; |
205 | } | 202 | } |
206 | 203 | ||
207 | QValueList <OLedState> iPAQ::ledStateList ( OLed l ) const | 204 | QValueList <OLedState> iPAQ::ledStateList ( OLed l ) const |
208 | { | 205 | { |
209 | QValueList <OLedState> vl; | 206 | QValueList <OLedState> vl; |
210 | 207 | ||
211 | if ( l == Led_Power ) | 208 | if ( l == Led_Power ) |
212 | vl << Led_Off << Led_On << Led_BlinkSlow << Led_BlinkFast; | 209 | vl << Led_Off << Led_On << Led_BlinkSlow << Led_BlinkFast; |
213 | else if ( l == Led_BlueTooth && d->m_model == Model_iPAQ_H38xx ) | 210 | else if ( l == Led_BlueTooth && d->m_model == Model_iPAQ_H38xx ) |
214 | vl << Led_Off; // << Led_On << ??? | 211 | vl << Led_Off; // << Led_On << ??? |
215 | 212 | ||
216 | return vl; | 213 | return vl; |
217 | } | 214 | } |
218 | 215 | ||