#include </home/clem/local/src/opie/noncore/unsupported/libopie/odevice.h>
Inheritance diagram for Opie::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 |
| Transformation | rotation () const |
| ODirection | direction () const |
| virtual bool | setSoftSuspend (bool on) |
| 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 | alarmSound () |
| virtual void | keySound () |
| virtual void | touchSound () |
| 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 |
| bool | hasHingeSensor () const |
| OHingeStatus | readHingeSensor () |
| 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 Types | |
| enum | { VIRTUAL_ROTATION = 0x200, VIRTUAL_DIRECTION, VIRTUAL_HAS_HINGE, VIRTUAL_HINGE } |
Protected Member Functions | |
| ODevice () | |
| virtual void | init () |
| virtual void | initButtons () |
| void | reloadButtonMapping () |
| virtual void | virtual_hook (int id, void *data) |
Protected Attributes | |
| ODeviceData * | d |
Private Slots | |
| void | systemMessage (const QCString &, const QByteArray &) |
Private Member Functions | |
| ODevice (const ODevice &) | |
Classes | |
| struct | VirtDirection |
| struct | VirtHasHinge |
| struct | VirtHingeStatus |
| struct | VirtRotation |
A singleton which gives informations about device specefic option like the Hardware used, LEDs, the Base Distribution and hardware key mappings.
Definition at line 163 of file odevice.h.
|
|
|
|
|
|
|
|
Definition at line 454 of file odevice.cpp. References Opie::CW, d, Opie::Model_Unknown, Rot0, Opie::System_Unknown, and Opie::Vendor_Unknown. Referenced by inst(). |
|
|
Definition at line 516 of file odevice.cpp. References d. |
|
|
This plays an alarmSound Reimplemented in iPAQ, Zaurus, and SIMpad. Definition at line 734 of file odevice.cpp. References snd. Referenced by BenD::slotIMAPStatus(). |
|
|
Definition at line 857 of file odevice.cpp. References d, and ODeviceData::m_cpu_frequencies. |
|
|
Returns the DeviceButton for the keyCode. If keyCode is not found, it returns 0L Definition at line 915 of file odevice.cpp. References begin, d, end, initButtons(), and keycode. |
|
|
How long (in ms) you have to press a button for a "hold" action Definition at line 903 of file odevice.cpp. References d. |
|
|
|
|
|
/todo ### make const Definition at line 893 of file odevice.cpp. References d, and initButtons(). |
|
|
Reimplemented in Zaurus. Definition at line 723 of file odevice.cpp. References Opie::ODevice::VirtDirection::direct, VIRTUAL_DIRECTION, and virtual_hook(). |
|
|
Reimplemented in iPAQ, Jornada, Zaurus, SIMpad, Ramses, and Yopy. Definition at line 625 of file odevice.cpp. |
|
|
Reimplemented in Ramses. Definition at line 645 of file odevice.cpp. |
|
|
Reimplemented in Zaurus. Definition at line 836 of file odevice.cpp. References Opie::ODevice::VirtHasHinge::hasHinge, VIRTUAL_HAS_HINGE, and virtual_hook(). |
|
|
Reimplemented in iPAQ. Definition at line 812 of file odevice.cpp. |
|
|
Reimplemented in iPAQ, Jornada, Zaurus, SIMpad, Ramses, and Yopy. Definition at line 480 of file odevice.cpp. Referenced by inst(). |
|
|
This method initialises the button mapping Reimplemented in iPAQ, Zaurus, SIMpad, and Yopy. Definition at line 487 of file odevice.cpp. References code, d, fheldaction, fheldservice, fpressedaction, fpressedservice, i, ipaq_buttons, Resource::loadPixmap(), Opie::Core::makeChannel(), model(), Opie::Model_iPAQ_H36xx, pix, qDebug(), reloadButtonMapping(), systemMessage(), tr, and utext. Referenced by buttonForKeycode(), buttons(), reloadButtonMapping(), remapHeldAction(), and remapPressedAction(). |
|
|
Definition at line 422 of file odevice.cpp. References QFile::exists(), init(), Jornada::isJornada(), Yopy::isYopy(), Zaurus::isZaurus(), and ODevice(). Referenced by UserDialog::addUser(), BackupAndRestore::backupRootFs(), OQWSServer::eventFilter(), WellenreiterConfigWindow::performAction(), BenD::slotClicked(), BenD::slotIMAPStatus(), VolumeControl::VolumeControl(), and Wellenreiter::Wellenreiter(). |
|
|
This plays a key sound Reimplemented in Zaurus. Definition at line 747 of file odevice.cpp. References snd. |
|
|
This method will return a list of leds available on this device
Reimplemented in iPAQ, Zaurus, and SIMpad. Definition at line 775 of file odevice.cpp. |
|
|
Reimplemented in iPAQ, Zaurus, and SIMpad. Definition at line 791 of file odevice.cpp. References Opie::Led_Off. |
|
|
This does return the state of the LEDs Reimplemented in iPAQ, Zaurus, and SIMpad. Definition at line 783 of file odevice.cpp. |
|
|
Reimplemented in iPAQ. Definition at line 828 of file odevice.cpp. |
|
|
This does return the OModel used Definition at line 680 of file odevice.cpp. References d. Referenced by iPAQ::displayBrightnessResolution(), Zaurus::init(), SIMpad::initButtons(), iPAQ::initButtons(), initButtons(), Jornada::isJornada(), Yopy::isYopy(), Zaurus::isZaurus(), and series(). |
|
|
This returns the model as a string
Definition at line 672 of file odevice.cpp. References d. |
|
|
Reimplemented in Zaurus. Definition at line 847 of file odevice.cpp. References Opie::ODevice::VirtHingeStatus::hingeStat, VIRTUAL_HINGE, and virtual_hook(). |
|
|
Reimplemented in iPAQ. Definition at line 820 of file odevice.cpp. |
|
|
Definition at line 926 of file odevice.cpp. References d, i, initButtons(), and QString::number(). Referenced by Opie::Core::Internal::SIMpad::initButtons(), SIMpad::initButtons(), Zaurus::initButtons(), iPAQ::initButtons(), Yopy::initButtons(), initButtons(), and systemMessage(). |
|
||||||||||||
|
Reassigns the held action for button. To return to the factory default pass an empty string as qcopMessage. Definition at line 981 of file odevice.cpp. References channel, d, initButtons(), 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 957 of file odevice.cpp. References channel, d, initButtons(), message, and QString::number(). |
|
|
Reimplemented in Zaurus. Definition at line 712 of file odevice.cpp. References Opie::ODevice::VirtRotation::trans, virtual_hook(), and VIRTUAL_ROTATION. |
|
|
Definition at line 187 of file odevice.h. References model(), and Opie::Model_Series_Mask. |
|
|
Set desired CPU frequency
Definition at line 868 of file odevice.cpp. References QPtrList< type >::at(), QPtrList< type >::count(), d, ODeviceData::m_cpu_frequencies, qWarning(), and write(). |
|
|
This sets the display brightness
Reimplemented in iPAQ, Jornada, Zaurus, SIMpad, Ramses, and Yopy. Definition at line 615 of file odevice.cpp. |
|
|
This sets the display contrast
Reimplemented in Ramses. Definition at line 635 of file odevice.cpp. |
|
|
This sets the display on or off Reimplemented in SIMpad, and Ramses. Definition at line 588 of file odevice.cpp. References d, FBIOBLANK, Opie::Model_Unknown, qDebug(), VESA_NO_BLANKING, and VESA_POWERDOWN. |
|
||||||||||||
|
Set the state for a LED
Reimplemented in iPAQ, Zaurus, and SIMpad. Definition at line 802 of file odevice.cpp. Referenced by BenD::slotClicked(), and BenD::slotIMAPStatus(). |
|
|
Reimplemented in iPAQ, Jornada, Zaurus, SIMpad, and Ramses. Definition at line 524 of file odevice.cpp. |
|
|
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 Zaurus, SIMpad, Ramses, and Yopy. Definition at line 544 of file odevice.cpp. References d, Opie::Core::isQWS(), Opie::Model_Unknown, qDebug(), and system(). |
|
|
Return System as OSystem value Definition at line 696 of file odevice.cpp. References d. Referenced by SIMpad::setDisplayStatus(), SIMpad::suspend(), Zaurus::suspend(), and suspend(). |
|
||||||||||||
|
Definition at line 473 of file odevice.cpp. References reloadButtonMapping(). Referenced by SIMpad::initButtons(), Zaurus::initButtons(), iPAQ::initButtons(), Yopy::initButtons(), and initButtons(). |
|
|
This does return the systen name Definition at line 688 of file odevice.cpp. References d. |
|
|
Definition at line 704 of file odevice.cpp. References d. |
|
|
This plays a touch sound Reimplemented in Zaurus. Definition at line 760 of file odevice.cpp. References snd. |
|
|
This returns the vendor as one of the values of OVendor
Definition at line 663 of file odevice.cpp. References d. |
|
|
This returns the vendor as string
Definition at line 654 of file odevice.cpp. References d. |
|
||||||||||||
|
Reimplemented in Zaurus. Definition at line 1000 of file odevice.cpp. References Opie::CASE_UNKNOWN, d, Opie::ODevice::VirtDirection::direct, Opie::ODevice::VirtHasHinge::hasHinge, Opie::ODevice::VirtHingeStatus::hingeStat, ODeviceData::m_direction, ODeviceData::m_rotation, Opie::ODevice::VirtRotation::trans, VIRTUAL_DIRECTION, VIRTUAL_HAS_HINGE, VIRTUAL_HINGE, and VIRTUAL_ROTATION. Referenced by direction(), hasHingeSensor(), readHingeSensor(), and rotation(). |
|
1.4.2