author | alwin <alwin> | 2004-02-19 11:44:25 (UTC) |
---|---|---|
committer | alwin <alwin> | 2004-02-19 11:44:25 (UTC) |
commit | 51992ef09a92db868234936484fcc3aec0d2d4ad (patch) (unidiff) | |
tree | 0e73af3768da5a5c6e3fa0a5c2ed615e4bdbb399 | |
parent | f388f1777ff1c83a483b20cebbafedd566628d12 (diff) | |
download | opie-51992ef09a92db868234936484fcc3aec0d2d4ad.zip opie-51992ef09a92db868234936484fcc3aec0d2d4ad.tar.gz opie-51992ef09a92db868234936484fcc3aec0d2d4ad.tar.bz2 |
aboutSuspend -> aboutToSuspend
I knew all the time - zecke is Mr. Muentefering in real live ;)
-rw-r--r-- | libopie2/opiecore/device/odevice.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libopie2/opiecore/device/odevice.cpp b/libopie2/opiecore/device/odevice.cpp index 7d67efe..b8d48fe 100644 --- a/libopie2/opiecore/device/odevice.cpp +++ b/libopie2/opiecore/device/odevice.cpp | |||
@@ -243,386 +243,386 @@ bool ODevice::setDisplayStatus ( bool on ) | |||
243 | * | 243 | * |
244 | * @param p The brightness to be set on a scale from 0 to 255 | 244 | * @param p The brightness to be set on a scale from 0 to 255 |
245 | * @return success or failure | 245 | * @return success or failure |
246 | */ | 246 | */ |
247 | bool ODevice::setDisplayBrightness ( int p) | 247 | bool ODevice::setDisplayBrightness ( int p) |
248 | { | 248 | { |
249 | Q_UNUSED( p ) | 249 | Q_UNUSED( p ) |
250 | return false; | 250 | return false; |
251 | } | 251 | } |
252 | 252 | ||
253 | /** | 253 | /** |
254 | * @return returns the number of steppings on the brightness slider | 254 | * @return returns the number of steppings on the brightness slider |
255 | * in the Light-'n-Power settings. | 255 | * in the Light-'n-Power settings. |
256 | */ | 256 | */ |
257 | int ODevice::displayBrightnessResolution() const | 257 | int ODevice::displayBrightnessResolution() const |
258 | { | 258 | { |
259 | return 16; | 259 | return 16; |
260 | } | 260 | } |
261 | 261 | ||
262 | /** | 262 | /** |
263 | * This sets the display contrast | 263 | * This sets the display contrast |
264 | * @param p The contrast to be set on a scale from 0 to 255 | 264 | * @param p The contrast to be set on a scale from 0 to 255 |
265 | * @return success or failure | 265 | * @return success or failure |
266 | */ | 266 | */ |
267 | bool ODevice::setDisplayContrast ( int p) | 267 | bool ODevice::setDisplayContrast ( int p) |
268 | { | 268 | { |
269 | Q_UNUSED( p ) | 269 | Q_UNUSED( p ) |
270 | return false; | 270 | return false; |
271 | } | 271 | } |
272 | 272 | ||
273 | /** | 273 | /** |
274 | * @return return the max value for the brightness settings slider | 274 | * @return return the max value for the brightness settings slider |
275 | * or 0 if the device doesn't support setting of a contrast | 275 | * or 0 if the device doesn't support setting of a contrast |
276 | */ | 276 | */ |
277 | int ODevice::displayContrastResolution() const | 277 | int ODevice::displayContrastResolution() const |
278 | { | 278 | { |
279 | return 0; | 279 | return 0; |
280 | } | 280 | } |
281 | 281 | ||
282 | /** | 282 | /** |
283 | * This returns the vendor as string | 283 | * This returns the vendor as string |
284 | * @return Vendor as QString | 284 | * @return Vendor as QString |
285 | */ | 285 | */ |
286 | QString ODevice::vendorString() const | 286 | QString ODevice::vendorString() const |
287 | { | 287 | { |
288 | return d->m_vendorstr; | 288 | return d->m_vendorstr; |
289 | } | 289 | } |
290 | 290 | ||
291 | /** | 291 | /** |
292 | * This returns the vendor as one of the values of OVendor | 292 | * This returns the vendor as one of the values of OVendor |
293 | * @return OVendor | 293 | * @return OVendor |
294 | */ | 294 | */ |
295 | OVendor ODevice::vendor() const | 295 | OVendor ODevice::vendor() const |
296 | { | 296 | { |
297 | return d->m_vendor; | 297 | return d->m_vendor; |
298 | } | 298 | } |
299 | 299 | ||
300 | /** | 300 | /** |
301 | * This returns the model as a string | 301 | * This returns the model as a string |
302 | * @return A string representing the model | 302 | * @return A string representing the model |
303 | */ | 303 | */ |
304 | QString ODevice::modelString() const | 304 | QString ODevice::modelString() const |
305 | { | 305 | { |
306 | return d->m_modelstr; | 306 | return d->m_modelstr; |
307 | } | 307 | } |
308 | 308 | ||
309 | /** | 309 | /** |
310 | * This does return the OModel used | 310 | * This does return the OModel used |
311 | */ | 311 | */ |
312 | OModel ODevice::model() const | 312 | OModel ODevice::model() const |
313 | { | 313 | { |
314 | return d->m_model; | 314 | return d->m_model; |
315 | } | 315 | } |
316 | 316 | ||
317 | /** | 317 | /** |
318 | * This does return the systen name | 318 | * This does return the systen name |
319 | */ | 319 | */ |
320 | QString ODevice::systemString() const | 320 | QString ODevice::systemString() const |
321 | { | 321 | { |
322 | return d->m_systemstr; | 322 | return d->m_systemstr; |
323 | } | 323 | } |
324 | 324 | ||
325 | /** | 325 | /** |
326 | * Return System as OSystem value | 326 | * Return System as OSystem value |
327 | */ | 327 | */ |
328 | OSystem ODevice::system() const | 328 | OSystem ODevice::system() const |
329 | { | 329 | { |
330 | return d->m_system; | 330 | return d->m_system; |
331 | } | 331 | } |
332 | 332 | ||
333 | /** | 333 | /** |
334 | * @return the version string of the base system | 334 | * @return the version string of the base system |
335 | */ | 335 | */ |
336 | QString ODevice::systemVersionString() const | 336 | QString ODevice::systemVersionString() const |
337 | { | 337 | { |
338 | return d->m_sysverstr; | 338 | return d->m_sysverstr; |
339 | } | 339 | } |
340 | 340 | ||
341 | /** | 341 | /** |
342 | * @return the current Transformation | 342 | * @return the current Transformation |
343 | */ | 343 | */ |
344 | Transformation ODevice::rotation() const | 344 | Transformation ODevice::rotation() const |
345 | { | 345 | { |
346 | return d->m_rotation; | 346 | return d->m_rotation; |
347 | } | 347 | } |
348 | 348 | ||
349 | /** | 349 | /** |
350 | * @return the current rotation direction | 350 | * @return the current rotation direction |
351 | */ | 351 | */ |
352 | ODirection ODevice::direction() const | 352 | ODirection ODevice::direction() const |
353 | { | 353 | { |
354 | return d->m_direction; | 354 | return d->m_direction; |
355 | } | 355 | } |
356 | 356 | ||
357 | /** | 357 | /** |
358 | * This plays an alarm sound | 358 | * This plays an alarm sound |
359 | */ | 359 | */ |
360 | void ODevice::playAlarmSound() | 360 | void ODevice::playAlarmSound() |
361 | { | 361 | { |
362 | #ifndef QT_NO_SOUND | 362 | #ifndef QT_NO_SOUND |
363 | static Sound snd ( "alarm" ); | 363 | static Sound snd ( "alarm" ); |
364 | 364 | ||
365 | if ( snd. isFinished()) | 365 | if ( snd. isFinished()) |
366 | snd. play(); | 366 | snd. play(); |
367 | #endif | 367 | #endif |
368 | } | 368 | } |
369 | 369 | ||
370 | /** | 370 | /** |
371 | * This plays a key sound | 371 | * This plays a key sound |
372 | */ | 372 | */ |
373 | void ODevice::playKeySound() | 373 | void ODevice::playKeySound() |
374 | { | 374 | { |
375 | #ifndef QT_NO_SOUND | 375 | #ifndef QT_NO_SOUND |
376 | static Sound snd ( "keysound" ); | 376 | static Sound snd ( "keysound" ); |
377 | 377 | ||
378 | if ( snd. isFinished()) | 378 | if ( snd. isFinished()) |
379 | snd. play(); | 379 | snd. play(); |
380 | #endif | 380 | #endif |
381 | } | 381 | } |
382 | 382 | ||
383 | /** | 383 | /** |
384 | * This plays a touch sound | 384 | * This plays a touch sound |
385 | */ | 385 | */ |
386 | void ODevice::playTouchSound() | 386 | void ODevice::playTouchSound() |
387 | { | 387 | { |
388 | #ifndef QT_NO_SOUND | 388 | #ifndef QT_NO_SOUND |
389 | static Sound snd ( "touchsound" ); | 389 | static Sound snd ( "touchsound" ); |
390 | 390 | ||
391 | if ( snd. isFinished()) | 391 | if ( snd. isFinished()) |
392 | snd. play(); | 392 | snd. play(); |
393 | #endif | 393 | #endif |
394 | } | 394 | } |
395 | 395 | ||
396 | /** | 396 | /** |
397 | * This method will return a list of leds | 397 | * This method will return a list of leds |
398 | * available on this device | 398 | * available on this device |
399 | * @return a list of LEDs. | 399 | * @return a list of LEDs. |
400 | */ | 400 | */ |
401 | QValueList <OLed> ODevice::ledList() const | 401 | QValueList <OLed> ODevice::ledList() const |
402 | { | 402 | { |
403 | return QValueList <OLed>(); | 403 | return QValueList <OLed>(); |
404 | } | 404 | } |
405 | 405 | ||
406 | /** | 406 | /** |
407 | * This does return the state of the LEDs | 407 | * This does return the state of the LEDs |
408 | */ | 408 | */ |
409 | QValueList <OLedState> ODevice::ledStateList ( OLed /*which*/ ) const | 409 | QValueList <OLedState> ODevice::ledStateList ( OLed /*which*/ ) const |
410 | { | 410 | { |
411 | return QValueList <OLedState>(); | 411 | return QValueList <OLedState>(); |
412 | } | 412 | } |
413 | 413 | ||
414 | /** | 414 | /** |
415 | * @return the state for a given OLed | 415 | * @return the state for a given OLed |
416 | */ | 416 | */ |
417 | OLedState ODevice::ledState ( OLed /*which*/ ) const | 417 | OLedState ODevice::ledState ( OLed /*which*/ ) const |
418 | { | 418 | { |
419 | return Led_Off; | 419 | return Led_Off; |
420 | } | 420 | } |
421 | 421 | ||
422 | /** | 422 | /** |
423 | * Set the state for a LED | 423 | * Set the state for a LED |
424 | * @param which Which OLed to use | 424 | * @param which Which OLed to use |
425 | * @param st The state to set | 425 | * @param st The state to set |
426 | * @return success or failure | 426 | * @return success or failure |
427 | */ | 427 | */ |
428 | bool ODevice::setLedState ( OLed which, OLedState st ) | 428 | bool ODevice::setLedState ( OLed which, OLedState st ) |
429 | { | 429 | { |
430 | Q_UNUSED( which ) | 430 | Q_UNUSED( which ) |
431 | Q_UNUSED( st ) | 431 | Q_UNUSED( st ) |
432 | return false; | 432 | return false; |
433 | } | 433 | } |
434 | 434 | ||
435 | /** | 435 | /** |
436 | * @return if the device has a light sensor | 436 | * @return if the device has a light sensor |
437 | */ | 437 | */ |
438 | bool ODevice::hasLightSensor() const | 438 | bool ODevice::hasLightSensor() const |
439 | { | 439 | { |
440 | return false; | 440 | return false; |
441 | } | 441 | } |
442 | 442 | ||
443 | /** | 443 | /** |
444 | * @return a value from the light sensor | 444 | * @return a value from the light sensor |
445 | */ | 445 | */ |
446 | int ODevice::readLightSensor() | 446 | int ODevice::readLightSensor() |
447 | { | 447 | { |
448 | return -1; | 448 | return -1; |
449 | } | 449 | } |
450 | 450 | ||
451 | /** | 451 | /** |
452 | * @return the light sensor resolution | 452 | * @return the light sensor resolution |
453 | */ | 453 | */ |
454 | int ODevice::lightSensorResolution() const | 454 | int ODevice::lightSensorResolution() const |
455 | { | 455 | { |
456 | return 0; | 456 | return 0; |
457 | } | 457 | } |
458 | 458 | ||
459 | /** | 459 | /** |
460 | * @return if the device has a hinge sensor | 460 | * @return if the device has a hinge sensor |
461 | */ | 461 | */ |
462 | bool ODevice::hasHingeSensor() const | 462 | bool ODevice::hasHingeSensor() const |
463 | { | 463 | { |
464 | return false; | 464 | return false; |
465 | } | 465 | } |
466 | 466 | ||
467 | /** | 467 | /** |
468 | * @return a value from the hinge sensor | 468 | * @return a value from the hinge sensor |
469 | */ | 469 | */ |
470 | OHingeStatus ODevice::readHingeSensor() | 470 | OHingeStatus ODevice::readHingeSensor() |
471 | { | 471 | { |
472 | return CASE_UNKNOWN; | 472 | return CASE_UNKNOWN; |
473 | } | 473 | } |
474 | 474 | ||
475 | /** | 475 | /** |
476 | * @return a list with CPU frequencies supported by the hardware | 476 | * @return a list with CPU frequencies supported by the hardware |
477 | */ | 477 | */ |
478 | const QStrList &ODevice::allowedCpuFrequencies() const | 478 | const QStrList &ODevice::allowedCpuFrequencies() const |
479 | { | 479 | { |
480 | return *d->m_cpu_frequencies; | 480 | return *d->m_cpu_frequencies; |
481 | } | 481 | } |
482 | 482 | ||
483 | 483 | ||
484 | /** | 484 | /** |
485 | * Set desired CPU frequency | 485 | * Set desired CPU frequency |
486 | * | 486 | * |
487 | * @param index index into d->m_cpu_frequencies of the frequency to be set | 487 | * @param index index into d->m_cpu_frequencies of the frequency to be set |
488 | */ | 488 | */ |
489 | bool ODevice::setCurrentCpuFrequency(uint index) | 489 | bool ODevice::setCurrentCpuFrequency(uint index) |
490 | { | 490 | { |
491 | if (index >= d->m_cpu_frequencies->count()) | 491 | if (index >= d->m_cpu_frequencies->count()) |
492 | return false; | 492 | return false; |
493 | 493 | ||
494 | char *freq = d->m_cpu_frequencies->at(index); | 494 | char *freq = d->m_cpu_frequencies->at(index); |
495 | qWarning("set freq to %s", freq); | 495 | qWarning("set freq to %s", freq); |
496 | 496 | ||
497 | int fd; | 497 | int fd; |
498 | 498 | ||
499 | if ((fd = ::open("/proc/sys/cpu/0/speed", O_WRONLY)) >= 0) { | 499 | if ((fd = ::open("/proc/sys/cpu/0/speed", O_WRONLY)) >= 0) { |
500 | char writeCommand[50]; | 500 | char writeCommand[50]; |
501 | const int count = sprintf(writeCommand, "%s\n", freq); | 501 | const int count = sprintf(writeCommand, "%s\n", freq); |
502 | int res = (::write(fd, writeCommand, count) != -1); | 502 | int res = (::write(fd, writeCommand, count) != -1); |
503 | ::close(fd); | 503 | ::close(fd); |
504 | return res; | 504 | return res; |
505 | } | 505 | } |
506 | 506 | ||
507 | return false; | 507 | return false; |
508 | } | 508 | } |
509 | 509 | ||
510 | 510 | ||
511 | /** | 511 | /** |
512 | * @return a list of hardware buttons | 512 | * @return a list of hardware buttons |
513 | */ | 513 | */ |
514 | const QValueList <ODeviceButton> &ODevice::buttons() | 514 | const QValueList <ODeviceButton> &ODevice::buttons() |
515 | { | 515 | { |
516 | initButtons(); | 516 | initButtons(); |
517 | 517 | ||
518 | return *d->m_buttons; | 518 | return *d->m_buttons; |
519 | } | 519 | } |
520 | 520 | ||
521 | /** | 521 | /** |
522 | * @return The amount of time that would count as a hold | 522 | * @return The amount of time that would count as a hold |
523 | */ | 523 | */ |
524 | uint ODevice::buttonHoldTime() const | 524 | uint ODevice::buttonHoldTime() const |
525 | { | 525 | { |
526 | return d->m_holdtime; | 526 | return d->m_holdtime; |
527 | } | 527 | } |
528 | 528 | ||
529 | /** | 529 | /** |
530 | * This method return a ODeviceButton for a key code | 530 | * This method return a ODeviceButton for a key code |
531 | * or 0 if no special hardware button is available for the device | 531 | * or 0 if no special hardware button is available for the device |
532 | * | 532 | * |
533 | * @return The devicebutton or 0l | 533 | * @return The devicebutton or 0l |
534 | * @see ODeviceButton | 534 | * @see ODeviceButton |
535 | */ | 535 | */ |
536 | const ODeviceButton *ODevice::buttonForKeycode ( ushort code ) | 536 | const ODeviceButton *ODevice::buttonForKeycode ( ushort code ) |
537 | { | 537 | { |
538 | initButtons(); | 538 | initButtons(); |
539 | 539 | ||
540 | for ( QValueListConstIterator<ODeviceButton> it = d->m_buttons->begin(); it != d->m_buttons->end(); ++it ) { | 540 | for ( QValueListConstIterator<ODeviceButton> it = d->m_buttons->begin(); it != d->m_buttons->end(); ++it ) { |
541 | if ( (*it). keycode() == code ) | 541 | if ( (*it). keycode() == code ) |
542 | return &(*it); | 542 | return &(*it); |
543 | } | 543 | } |
544 | return 0; | 544 | return 0; |
545 | } | 545 | } |
546 | 546 | ||
547 | void ODevice::reloadButtonMapping() | 547 | void ODevice::reloadButtonMapping() |
548 | { | 548 | { |
549 | initButtons(); | 549 | initButtons(); |
550 | 550 | ||
551 | Config cfg ( "ButtonSettings" ); | 551 | Config cfg ( "ButtonSettings" ); |
552 | 552 | ||
553 | for ( uint i = 0; i < d->m_buttons->count(); i++ ) { | 553 | for ( uint i = 0; i < d->m_buttons->count(); i++ ) { |
554 | ODeviceButton &b = ( *d->m_buttons ) [i]; | 554 | ODeviceButton &b = ( *d->m_buttons ) [i]; |
555 | QString group = "Button" + QString::number ( i ); | 555 | QString group = "Button" + QString::number ( i ); |
556 | 556 | ||
557 | QCString pch, hch; | 557 | QCString pch, hch; |
558 | QCString pm, hm; | 558 | QCString pm, hm; |
559 | QByteArray pdata, hdata; | 559 | QByteArray pdata, hdata; |
560 | 560 | ||
561 | if ( cfg. hasGroup ( group )) { | 561 | if ( cfg. hasGroup ( group )) { |
562 | cfg. setGroup ( group ); | 562 | cfg. setGroup ( group ); |
563 | pch = cfg. readEntry ( "PressedActionChannel" ). latin1(); | 563 | pch = cfg. readEntry ( "PressedActionChannel" ). latin1(); |
564 | pm = cfg. readEntry ( "PressedActionMessage" ). latin1(); | 564 | pm = cfg. readEntry ( "PressedActionMessage" ). latin1(); |
565 | // pdata = decodeBase64 ( buttonFile. readEntry ( "PressedActionArgs" )); | 565 | // pdata = decodeBase64 ( buttonFile. readEntry ( "PressedActionArgs" )); |
566 | 566 | ||
567 | hch = cfg. readEntry ( "HeldActionChannel" ). latin1(); | 567 | hch = cfg. readEntry ( "HeldActionChannel" ). latin1(); |
568 | hm = cfg. readEntry ( "HeldActionMessage" ). latin1(); | 568 | hm = cfg. readEntry ( "HeldActionMessage" ). latin1(); |
569 | // hdata = decodeBase64 ( buttonFile. readEntry ( "HeldActionArgs" )); | 569 | // hdata = decodeBase64 ( buttonFile. readEntry ( "HeldActionArgs" )); |
570 | } | 570 | } |
571 | 571 | ||
572 | b. setPressedAction ( OQCopMessage ( pch, pm, pdata )); | 572 | b. setPressedAction ( OQCopMessage ( pch, pm, pdata )); |
573 | 573 | ||
574 | b. setHeldAction ( OQCopMessage ( hch, hm, hdata )); | 574 | b. setHeldAction ( OQCopMessage ( hch, hm, hdata )); |
575 | } | 575 | } |
576 | } | 576 | } |
577 | 577 | ||
578 | void ODevice::remapPressedAction ( int button, const OQCopMessage &action ) | 578 | void ODevice::remapPressedAction ( int button, const OQCopMessage &action ) |
579 | { | 579 | { |
580 | initButtons(); | 580 | initButtons(); |
581 | 581 | ||
582 | QString mb_chan; | 582 | QString mb_chan; |
583 | 583 | ||
584 | if ( button >= (int) d->m_buttons->count()) | 584 | if ( button >= (int) d->m_buttons->count()) |
585 | return; | 585 | return; |
586 | 586 | ||
587 | ODeviceButton &b = ( *d->m_buttons ) [button]; | 587 | ODeviceButton &b = ( *d->m_buttons ) [button]; |
588 | b. setPressedAction ( action ); | 588 | b. setPressedAction ( action ); |
589 | 589 | ||
590 | mb_chan=b. pressedAction(). channel(); | 590 | mb_chan=b. pressedAction(). channel(); |
591 | 591 | ||
592 | Config buttonFile ( "ButtonSettings" ); | 592 | Config buttonFile ( "ButtonSettings" ); |
593 | buttonFile. setGroup ( "Button" + QString::number ( button )); | 593 | buttonFile. setGroup ( "Button" + QString::number ( button )); |
594 | buttonFile. writeEntry ( "PressedActionChannel", (const char*) mb_chan); | 594 | buttonFile. writeEntry ( "PressedActionChannel", (const char*) mb_chan); |
595 | buttonFile. writeEntry ( "PressedActionMessage", (const char*) b. pressedAction(). message()); | 595 | buttonFile. writeEntry ( "PressedActionMessage", (const char*) b. pressedAction(). message()); |
596 | 596 | ||
597 | //buttonFile. writeEntry ( "PressedActionArgs", encodeBase64 ( b. pressedAction(). data())); | 597 | //buttonFile. writeEntry ( "PressedActionArgs", encodeBase64 ( b. pressedAction(). data())); |
598 | 598 | ||
599 | QCopEnvelope ( "QPE/System", "deviceButtonMappingChanged()" ); | 599 | QCopEnvelope ( "QPE/System", "deviceButtonMappingChanged()" ); |
600 | } | 600 | } |
601 | 601 | ||
602 | void ODevice::remapHeldAction ( int button, const OQCopMessage &action ) | 602 | void ODevice::remapHeldAction ( int button, const OQCopMessage &action ) |
603 | { | 603 | { |
604 | initButtons(); | 604 | initButtons(); |
605 | 605 | ||
606 | if ( button >= (int) d->m_buttons->count()) | 606 | if ( button >= (int) d->m_buttons->count()) |
607 | return; | 607 | return; |
608 | 608 | ||
609 | ODeviceButton &b = ( *d->m_buttons ) [button]; | 609 | ODeviceButton &b = ( *d->m_buttons ) [button]; |
610 | b. setHeldAction ( action ); | 610 | b. setHeldAction ( action ); |
611 | 611 | ||
612 | Config buttonFile ( "ButtonSettings" ); | 612 | Config buttonFile ( "ButtonSettings" ); |
613 | buttonFile. setGroup ( "Button" + QString::number ( button )); | 613 | buttonFile. setGroup ( "Button" + QString::number ( button )); |
614 | buttonFile. writeEntry ( "HeldActionChannel", (const char *) b. heldAction(). channel()); | 614 | buttonFile. writeEntry ( "HeldActionChannel", (const char *) b. heldAction(). channel()); |
615 | buttonFile. writeEntry ( "HeldActionMessage", (const char *) b. heldAction(). message()); | 615 | buttonFile. writeEntry ( "HeldActionMessage", (const char *) b. heldAction(). message()); |
616 | 616 | ||
617 | //buttonFile. writeEntry ( "HeldActionArgs", decodeBase64 ( b. heldAction(). data())); | 617 | //buttonFile. writeEntry ( "HeldActionArgs", decodeBase64 ( b. heldAction(). data())); |
618 | 618 | ||
619 | QCopEnvelope ( "QPE/System", "deviceButtonMappingChanged()" ); | 619 | QCopEnvelope ( "QPE/System", "deviceButtonMappingChanged()" ); |
620 | } | 620 | } |
621 | void ODevice::virtual_hook(int, void* ){ | 621 | void ODevice::virtual_hook(int, void* ){ |
622 | 622 | ||
623 | } | 623 | } |
624 | 624 | ||
625 | void ODevice::sendSuspendmsg() | 625 | void ODevice::sendSuspendmsg() |
626 | { | 626 | { |
627 | QCopEnvelope ( "QPE/System", "aboutSuspend()" ); | 627 | QCopEnvelope ( "QPE/System", "aboutToSuspend()" ); |
628 | } | 628 | } |