Opie::ODevice Class Reference
A singleton which gives informations about device specefic option like the Hardware used, LEDs, the Base Distribution and hardware key mappings. A small class for device specefic options. More...
#include <odevice.h>
Inheritance diagram for Opie::ODevice:


Signals | |
| void | buttonMappingChanged () |
Public Member Functions | |
| QString | modelString () const |
| This returns the model as a string. | |
| OModel | model () const |
| This does return the OModel used. | |
| OModel | series () const |
| QString | vendorString () const |
| This returns the vendor as string. | |
| OVendor | vendor () const |
| This returns the vendor as one of the values of OVendor. | |
| QString | systemString () const |
| This does return the systen name. | |
| OSystem | system () const |
| Return System as OSystem value. | |
| QString | systemVersionString () const |
| virtual Transformation | rotation () const |
| virtual ODirection | direction () const |
| virtual bool | setSoftSuspend (bool on) |
| virtual bool | suspend () |
| This method will try to suspend the device It only works if the user is the QWS Server and the apm application is installed. | |
| virtual bool | setDisplayStatus (bool on) |
| This sets the display on or off. | |
| virtual bool | setDisplayBrightness (int brightness) |
| This sets the display brightness. | |
| virtual int | displayBrightnessResolution () const |
| virtual bool | setDisplayContrast (int contrast) |
| This sets the display contrast. | |
| virtual int | displayContrastResolution () const |
| virtual void | alarmSound () |
| This plays an alarmSound. | |
| virtual void | keySound () |
| This plays a key sound. | |
| virtual void | touchSound () |
| This plays a touch sound. | |
| virtual QValueList< OLed > | ledList () const |
| This method will return a list of leds available on this device. | |
| virtual QValueList< OLedState > | ledStateList (OLed led) const |
| This does return the state of the LEDs. | |
| virtual OLedState | ledState (OLed led) const |
| virtual bool | setLedState (OLed led, OLedState st) |
| Set the state for a LED. | |
| virtual bool | hasLightSensor () const |
| virtual int | readLightSensor () |
| virtual int | lightSensorResolution () const |
| virtual bool | hasHingeSensor () const |
| virtual OHingeStatus | readHingeSensor () |
| const QStrList & | allowedCpuFrequencies () const |
| bool | setCurrentCpuFrequency (uint index) |
| Set desired CPU frequency. | |
| const QValueList< ODeviceButton > & | buttons () |
| /todo ### make const | |
| const ODeviceButton * | buttonForKeycode (ushort keyCode) |
| Returns the DeviceButton for the keyCode. | |
| void | remapPressedAction (int button, const OQCopMessage &qcopMessage) |
| Reassigns the pressed action for button. | |
| void | remapHeldAction (int button, const OQCopMessage &qcopMessage) |
| Reassigns the held action for button. | |
| uint | buttonHoldTime () const |
| How long (in ms) you have to press a button for a "hold" action. | |
Static Public Member Functions | |
| ODevice * | inst () |
Protected Member Functions | |
| virtual void | init () |
| virtual void | initButtons () |
| This method initialises the button mapping. | |
| void | reloadButtonMapping () |
| virtual void | virtual_hook (int id, void *data) |
Protected Attributes | |
| ODeviceData * | d |
Detailed Description
A singleton which gives informations about device specefic option like the Hardware used, LEDs, the Base Distribution and hardware key mappings. A small class for device specefic options.
- See also:
- QObject
- Author:
- Robert Griebl
- Version:
- 1.0
Definition at line 163 of file odevice.h.
Member Function Documentation
|
|
This method initialises the button mapping.
Definition at line 508 of file odevice.cpp. References QObject::connect(), and model(). Referenced by buttonForKeycode(), buttons(), remapHeldAction(), and remapPressedAction(). |
|
|
This returns the model as a string.
Definition at line 689 of file odevice.cpp. |
|
|
This does return the OModel used.
Definition at line 697 of file odevice.cpp. Referenced by initButtons(). |
|
|
This returns the vendor as string.
Definition at line 671 of file odevice.cpp. |
|
|
This returns the vendor as one of the values of OVendor.
Definition at line 680 of file odevice.cpp. |
|
|
This does return the systen name.
Definition at line 705 of file odevice.cpp. |
|
|
Return System as OSystem value.
Definition at line 713 of file odevice.cpp. |
|
|
Definition at line 721 of file odevice.cpp. |
|
|
Definition at line 729 of file odevice.cpp. |
|
|
Definition at line 737 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
Definition at line 565 of file odevice.cpp. |
|
|
This sets the display on or off.
Definition at line 609 of file odevice.cpp. |
|
|
This sets the display brightness.
Definition at line 632 of file odevice.cpp. |
|
|
Definition at line 642 of file odevice.cpp. |
|
|
This sets the display contrast.
Definition at line 652 of file odevice.cpp. |
|
|
Definition at line 662 of file odevice.cpp. |
|
|
This plays an alarmSound.
Definition at line 745 of file odevice.cpp. |
|
|
This plays a key sound.
Definition at line 758 of file odevice.cpp. |
|
|
This plays a touch sound.
Definition at line 771 of file odevice.cpp. |
|
|
This method will return a list of leds available on this device.
Definition at line 786 of file odevice.cpp. |
|
|
This does return the state of the LEDs.
Definition at line 794 of file odevice.cpp. |
|
|
Definition at line 802 of file odevice.cpp. |
|
||||||||||||
|
Set the state for a LED.
Definition at line 813 of file odevice.cpp. |
|
|
Definition at line 823 of file odevice.cpp. |
|
|
Definition at line 831 of file odevice.cpp. |
|
|
Definition at line 839 of file odevice.cpp. |
|
|
Definition at line 847 of file odevice.cpp. |
|
|
Definition at line 855 of file odevice.cpp. |
|
|
Definition at line 863 of file odevice.cpp. |
|
|
Set desired CPU frequency.
Definition at line 874 of file odevice.cpp. |
|
|
/todo ### make const
Definition at line 899 of file odevice.cpp. References initButtons(). |
|
|
Returns the DeviceButton for the keyCode. If keyCode is not found, it returns 0L Definition at line 921 of file odevice.cpp. References initButtons(). |
|
||||||||||||
|
Reassigns the pressed action for button. To return to the factory default pass an empty string as qcopMessage. Definition at line 963 of file odevice.cpp. References initButtons(). |
|
||||||||||||
|
Reassigns the held action for button. To return to the factory default pass an empty string as qcopMessage. Definition at line 987 of file odevice.cpp. References initButtons(). |
|
|
How long (in ms) you have to press a button for a "hold" action.
Definition at line 909 of file odevice.cpp. |
The documentation for this class was generated from the following files:
