#include </home/clem/local/src/opie/libopie2/opiecore/device/odevice.h>
Inheritance diagram for Opie::Core::ODevice:


Signals | |
| void | buttonMappingChanged () |
Public Member Functions | |
| virtual | ~ODevice () |
| QString | modelString () const |
| OModel | model () const |
| OModel | series () const |
| QString | vendorString () const |
| OVendor | vendor () const |
| QString | systemString () const |
| OSystem | system () const |
| QString | systemVersionString () const |
| virtual Transformation | rotation () const |
| virtual ODirection | direction () const |
| QString | qteDriver () const |
| virtual bool | suspend () |
| virtual bool | setDisplayStatus (bool on) |
| virtual bool | setDisplayBrightness (int brightness) |
| virtual int | displayBrightnessResolution () const |
| virtual bool | setDisplayContrast (int contrast) |
| virtual int | displayContrastResolution () const |
| virtual void | playAlarmSound () |
| virtual void | playKeySound () |
| virtual void | playTouchSound () |
| virtual QValueList< OLed > | ledList () const |
| virtual QValueList< OLedState > | ledStateList (OLed led) const |
| virtual OLedState | ledState (OLed led) const |
| virtual bool | setLedState (OLed led, OLedState st) |
| virtual bool | hasLightSensor () const |
| virtual int | readLightSensor () |
| virtual int | lightSensorResolution () const |
| virtual bool | hasHingeSensor () const |
| virtual OHingeStatus | readHingeSensor () const |
| const QStrList & | allowedCpuFrequencies () const |
| bool | setCurrentCpuFrequency (uint index) |
| const QValueList< ODeviceButton > & | buttons () |
| const ODeviceButton * | buttonForKeycode (ushort keyCode) |
| void | remapPressedAction (int button, const OQCopMessage &qcopMessage) |
| void | remapHeldAction (int button, const OQCopMessage &qcopMessage) |
| uint | buttonHoldTime () const |
Static Public Member Functions | |
| static ODevice * | inst () |
Protected Member Functions | |
| ODevice () | |
| virtual void | init (const QString &) |
| virtual void | initButtons () |
| void | addPreHandler (QWSServer::KeyboardFilter *aFilter) |
| Prepend the QWSServer::KeyboardFilter to the list of installed KeyFilters. | |
| void | remPreHandler (QWSServer::KeyboardFilter *aFilter) |
| Remove the QWSServer::KeyboardFilter in the param from the list. | |
| void | reloadButtonMapping () |
| void | changeMixerForAlarm (int mixer, const char *file, Sound *snd) |
| Change the Volume for the Alarm and set it back after playing is finished. | |
| virtual void | virtual_hook (int id, void *data) |
Static Protected Member Functions | |
| static void | sendSuspendmsg () |
| Send a QCOP Message before suspending. | |
Protected Attributes | |
| ODeviceData * | d |
Private Slots | |
| void | systemMessage (const QCString &, const QByteArray &) |
| void | playingStopped () |
Private Member Functions | |
| ODevice (const ODevice &) | |
A singleton which gives informations about device specefic option like the Hardware used, LEDs, the Base Distribution and hardware key mappings.
Definition at line 230 of file odevice.h.
|
|
|
|
|
|
Definition at line 252 of file odevice.cpp. References d. |
|
|
Prepend the QWSServer::KeyboardFilter to the list of installed KeyFilters. Prepend a QWSServer::KeyboardFilter to the List of Keyboard Filters. This function is the only way to prepend a KeyFilter.
Definition at line 722 of file odevice.cpp. References Opie::Core::OKeyFilter::inst(). Referenced by Opie::Core::Internal::Zaurus::initButtons(), Opie::Core::Internal::MyPal::initButtons(), Opie::Core::Internal::iPAQ::initButtons(), and Opie::Core::Internal::GenuineIntel::initButtons(). |
|
|
Definition at line 534 of file odevice.cpp. References d, and Opie::Core::ODeviceData::m_cpu_frequencies. |
|
|
Returns the DeviceButton for the keyCode. If keyCode is not found, it returns 0L Definition at line 592 of file odevice.cpp. References QValueList< T >::begin(), d, QValueList< T >::end(), initButtons(), and Opie::Core::ODeviceData::m_buttons. |
|
|
How long (in ms) you have to press a button for a "hold" action Definition at line 580 of file odevice.cpp. References d, and Opie::Core::ODeviceData::m_holdtime. |
|
|
|
|
|
Returns the available buttons on this device. The number and location of buttons will vary depending on the device. Button numbers will be assigned by the device manufacturer and will be from most preferred button to least preffered button. Note that this list only contains "user mappable" buttons.
Definition at line 570 of file odevice.cpp. References d, initButtons(), and Opie::Core::ODeviceData::m_buttons. |
|
||||||||||||||||
|
Change the Volume for the Alarm and set it back after playing is finished. If you play an Alarm Sound you might want to change the Mixer to full volume and ignore the user setting. After it
static Sound snd("alarm"); if(!snd.isFinished()) return; changeMixerForAlarm( my_channel, "/dev/mixer", &snd ); snd.play()
Definition at line 794 of file odevice.cpp. References d, Opie::Core::ODeviceData::m_mixer, Opie::Core::ODeviceData::m_sound, Opie::Core::ODeviceData::m_vol, playingStopped(), and register_qpe_sound_finished(). Referenced by Opie::Core::Internal::Zaurus::buzzer(), Opie::Core::Internal::Ramses::playAlarmSound(), Opie::Core::Internal::MyPal::playAlarmSound(), Opie::Core::Internal::iPAQ::playAlarmSound(), and Opie::Core::Internal::GenuineIntel::playAlarmSound(). |
|
|
Reimplemented in Opie::Core::Internal::Zaurus. Definition at line 403 of file odevice.cpp. References d, and Opie::Core::ODeviceData::m_direction. |
|
|
Reimplemented in Opie::Core::Internal::Beagle, Opie::Core::Internal::GenuineIntel, Opie::Core::Internal::iPAQ, Opie::Core::Internal::Jornada, Opie::Core::Internal::MyPal, Opie::Core::Internal::Ramses, Opie::Core::Internal::SIMpad, Opie::Core::Internal::Yopy, and Opie::Core::Internal::Zaurus. Definition at line 306 of file odevice.cpp. References qDebug(). Referenced by Opie::Core::Internal::MyPal::displayBrightnessResolution(). |
|
|
Definition at line 327 of file odevice.cpp. References qDebug(). |
|
|
Reimplemented in Opie::Core::Internal::Zaurus. Definition at line 518 of file odevice.cpp. |
|
|
Reimplemented in Opie::Core::Internal::GenuineIntel, and Opie::Core::Internal::iPAQ. Definition at line 494 of file odevice.cpp. |
|
|
Reimplemented in Opie::Core::Internal::Beagle, Opie::Core::Internal::GenuineIntel, Opie::Core::Internal::iPAQ, Opie::Core::Internal::Jornada, Opie::Core::Internal::MyPal, Opie::Core::Internal::Ramses, Opie::Core::Internal::SIMpad, Opie::Core::Internal::Yopy, and Opie::Core::Internal::Zaurus. Definition at line 224 of file odevice.cpp. Referenced by inst(). |
|
|
|
|
This method will return a list of leds available on this device
Reimplemented in Opie::Core::Internal::GenuineIntel, Opie::Core::Internal::iPAQ, Opie::Core::Internal::SIMpad, and Opie::Core::Internal::Zaurus. Definition at line 457 of file odevice.cpp. Referenced by MailApplet::ledOnOff(). |
|
|
Reimplemented in Opie::Core::Internal::GenuineIntel, Opie::Core::Internal::iPAQ, Opie::Core::Internal::SIMpad, and Opie::Core::Internal::Zaurus. Definition at line 473 of file odevice.cpp. References Opie::Core::Led_Off. |
|
|
This does return the state of the LEDs Reimplemented in Opie::Core::Internal::GenuineIntel, Opie::Core::Internal::iPAQ, Opie::Core::Internal::SIMpad, and Opie::Core::Internal::Zaurus. Definition at line 465 of file odevice.cpp. Referenced by MailApplet::ledOnOff(). |
|
|
Reimplemented in Opie::Core::Internal::GenuineIntel, and Opie::Core::Internal::iPAQ. Definition at line 510 of file odevice.cpp. |
|
|
This does return the OModel used Definition at line 363 of file odevice.cpp. References d, and Opie::Core::ODeviceData::m_model. Referenced by Opie::Core::Internal::MyPal::displayBrightnessResolution(), Opie::Core::Internal::iPAQ::displayBrightnessResolution(), Opie::Core::Internal::Zaurus::init(), Opie::Core::Internal::Jornada::init(), series(), Opie::Core::Internal::MyPal::setDisplayBrightness(), Opie::Core::Internal::iPAQ::setDisplayBrightness(), Opie::Core::Internal::MyPal::setDisplayStatus(), and Opie::Core::Internal::iPAQ::setDisplayStatus(). |
|
|
This returns the model as a string
Definition at line 355 of file odevice.cpp. References d, and Opie::Core::ODeviceData::m_modelstr. |
|
|
This plays an alarm sound Reimplemented in Opie::Core::Internal::GenuineIntel, Opie::Core::Internal::iPAQ, Opie::Core::Internal::MyPal, Opie::Core::Internal::Ramses, Opie::Core::Internal::SIMpad, and Opie::Core::Internal::Zaurus. Definition at line 416 of file odevice.cpp. References snd. |
|
|
For internal use only.
Definition at line 747 of file odevice.cpp. References d, Opie::Core::ODeviceData::m_mixer, Opie::Core::ODeviceData::m_sound, and Opie::Core::ODeviceData::m_vol. Referenced by changeMixerForAlarm(). |
|
|
This plays a key sound Reimplemented in Opie::Core::Internal::Zaurus. Definition at line 429 of file odevice.cpp. References snd. |
|
|
This plays a touch sound Reimplemented in Opie::Core::Internal::Zaurus. Definition at line 442 of file odevice.cpp. References snd. |
|
|
Definition at line 408 of file odevice.cpp. References d, and Opie::Core::ODeviceData::m_qteDriver. |
|
|
Reimplemented in Opie::Core::Internal::Zaurus. Definition at line 526 of file odevice.cpp. References Opie::Core::CASE_UNKNOWN. |
|
|
Reimplemented in Opie::Core::Internal::GenuineIntel, and Opie::Core::Internal::iPAQ. Definition at line 502 of file odevice.cpp. |
|
|
||||||||||||
|
Reassigns the held action for button. To return to the factory default pass an empty string as qcopMessage. Definition at line 665 of file odevice.cpp. References channel, QValueList< T >::count(), d, initButtons(), Opie::Core::ODeviceData::m_buttons, message, and QString::number(). |
|
||||||||||||
|
Reassigns the pressed action for button. To return to the factory default pass an empty string as qcopMessage. Definition at line 641 of file odevice.cpp. References channel, QValueList< T >::count(), d, initButtons(), Opie::Core::ODeviceData::m_buttons, message, and QString::number(). |
|
|
Remove the QWSServer::KeyboardFilter in the param from the list. Remove the QWSServer::KeyboardFilter
Definition at line 736 of file odevice.cpp. References Opie::Core::OKeyFilter::inst(). |
|
|
Reimplemented in Opie::Core::Internal::Zaurus. Definition at line 395 of file odevice.cpp. References d, and Opie::Core::ODeviceData::m_rotation. |
|
|
Send a QCOP Message before suspending. Sends a QCOP message to channel QPE/System with the message "aboutToSuspend()" if this is the windowing server. Call this in your custom Definition at line 703 of file odevice.cpp. References Opie::Core::isQWS(). Referenced by Opie::Core::Internal::Ramses::suspend(). |
|
|
Definition at line 254 of file odevice.h. References model(), and Opie::Core::Model_Series_Mask. |
|
|
Set desired CPU frequency
Definition at line 545 of file odevice.cpp. References QPtrList< type >::at(), QPtrList< type >::count(), d, Opie::Core::ODeviceData::m_cpu_frequencies, qWarning(), and write(). |
|
|
This sets the display brightness
Reimplemented in Opie::Core::Internal::Beagle, Opie::Core::Internal::GenuineIntel, Opie::Core::Internal::iPAQ, Opie::Core::Internal::Jornada, Opie::Core::Internal::MyPal, Opie::Core::Internal::Ramses, Opie::Core::Internal::SIMpad, Opie::Core::Internal::Yopy, and Opie::Core::Internal::Zaurus. Definition at line 291 of file odevice.cpp. References qDebug(). Referenced by Opie::Core::Internal::MyPal::setDisplayBrightness(). |
|
|
This sets the display contrast
Definition at line 317 of file odevice.cpp. References qDebug(). |
|
|
This sets the display on or off Reimplemented in Opie::Core::OAbstractMobileDevice, Opie::Core::Internal::Beagle, Opie::Core::Internal::iPAQ, Opie::Core::Internal::Jornada, Opie::Core::Internal::MyPal, Opie::Core::Internal::SIMpad, and Opie::Core::Internal::Zaurus. Definition at line 279 of file odevice.cpp. References qDebug(). |
|
||||||||||||
|
Set the state for a LED
Reimplemented in Opie::Core::Internal::GenuineIntel, Opie::Core::Internal::iPAQ, Opie::Core::Internal::SIMpad, and Opie::Core::Internal::Zaurus. Definition at line 484 of file odevice.cpp. Referenced by MailApplet::ledOnOff(). |
|
|
This method will try to suspend the device It only works if the user is the QWS Server and the apm application is installed. It tries to suspend and then waits some time cause some distributions do have asynchronus apm implementations. This method will either fail and return false or it'll suspend the device and return once the device got woken up
Reimplemented in Opie::Core::OAbstractMobileDevice, Opie::Core::Internal::Ramses, Opie::Core::Internal::SIMpad, Opie::Core::Internal::Yopy, and Opie::Core::Internal::Zaurus. Definition at line 271 of file odevice.cpp. |
|
|
||||||||||||
|
Reimplemented in Opie::Core::Internal::Zaurus. Definition at line 217 of file odevice.cpp. References reloadButtonMapping(). Referenced by reloadButtonMapping(). |
|
|
This does return the systen name Definition at line 371 of file odevice.cpp. References d, and Opie::Core::ODeviceData::m_systemstr. |
|
|
Definition at line 387 of file odevice.cpp. References d, and Opie::Core::ODeviceData::m_sysverstr. |
|
|
This returns the vendor as one of the values of OVendor
Definition at line 346 of file odevice.cpp. References d, and Opie::Core::ODeviceData::m_vendor. |
|
|
This returns the vendor as string
Definition at line 337 of file odevice.cpp. References d, and Opie::Core::ODeviceData::m_vendorstr. |
|
||||||||||||
|
For internal use only.
Definition at line 688 of file odevice.cpp. |
|
1.4.2