Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

SIMpad Class Reference

Inheritance diagram for SIMpad:

Inheritance graph
[legend]
Collaboration diagram for SIMpad:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual bool setSoftSuspend (bool soft)
virtual bool suspend ()
virtual bool setDisplayStatus (bool on)
virtual bool setDisplayBrightness (int b)
virtual int displayBrightnessResolution () const
virtual void alarmSound ()
virtual QValueList< OLedledList () const
virtual QValueList< OLedStateledStateList (OLed led) const
virtual OLedState ledState (OLed led) const
virtual bool setLedState (OLed led, OLedState st)

Protected Member Functions

virtual void init ()
virtual void initButtons ()
virtual bool filter (int unicode, int keycode, int modifiers, bool isPress, bool autoRepeat)
virtual void timerEvent (QTimerEvent *te)

Protected Attributes

int m_power_timer
OLedState m_leds [1]

Member Function Documentation

void SIMpad::alarmSound  )  [virtual]
 

This plays an alarmSound

Reimplemented from Opie::ODevice.

Definition at line 2388 of file odevice.cpp.

References qApp, and snd.

int SIMpad::displayBrightnessResolution  )  const [virtual]
 

Returns:
returns the number of steppings on the brightness slider in the Light-'n-Power settings.

Reimplemented from Opie::ODevice.

Definition at line 2490 of file odevice.cpp.

bool SIMpad::filter int  unicode,
int  keycode,
int  modifiers,
bool  isPress,
bool  autoRepeat
[protected, virtual]
 

Reimplemented from QWSServer::KeyboardFilter.

Definition at line 2373 of file odevice.cpp.

void SIMpad::init  )  [protected, virtual]
 

Reimplemented from Opie::ODevice.

Definition at line 2204 of file odevice.cpp.

References Opie::Core::CCW, Opie::ODevice::d, f, IO_ReadOnly, Opie::Core::Led_Off, m_leds, m_power_timer, Opie::Core::Model_SIMpad_SL4, Rot0, QTextStream::setDevice(), Opie::Core::System_Familiar, Opie::Core::System_OpenZaurus, and Opie::Core::Vendor_SIEMENS.

void SIMpad::initButtons  )  [protected, virtual]
 

This method initialises the button mapping

Reimplemented from Opie::ODevice.

Definition at line 2255 of file odevice.cpp.

References code, Opie::ODevice::d, fheldaction, fheldservice, fpressedaction, fpressedservice, i, Opie::Core::isQWS(), Resource::loadPixmap(), Opie::Core::makeChannel(), Opie::ODevice::model(), pix, Opie::ODevice::reloadButtonMapping(), QWSServer::setKeyboardFilter(), Opie::Core::Internal::simpad_buttons, Opie::ODevice::systemMessage(), tr, and utext.

QValueList< OLed > SIMpad::ledList  )  const [virtual]
 

This method will return a list of leds available on this device

Returns:
a list of LEDs.

Reimplemented from Opie::ODevice.

Definition at line 2308 of file odevice.cpp.

References Opie::Core::Led_Power.

OLedState SIMpad::ledState OLed  l  )  const [virtual]
 

Returns:
the state for a given OLed

Reimplemented from Opie::ODevice.

Definition at line 2327 of file odevice.cpp.

References Opie::Core::Led_Off, Opie::Core::Led_Power, and m_leds.

QValueList< OLedState > SIMpad::ledStateList OLed  l  )  const [virtual]
 

This does return the state of the LEDs

Reimplemented from Opie::ODevice.

Definition at line 2316 of file odevice.cpp.

References Opie::Core::Led_Off, Opie::Core::Led_On, and Opie::Core::Led_Power.

bool SIMpad::setDisplayBrightness int  bright  )  [virtual]
 

This sets the display brightness

Parameters:
p The brightness to be set on a scale from 0 to 255
Returns:
success or failure

Reimplemented from Opie::ODevice.

Definition at line 2465 of file odevice.cpp.

References qDebug(), SIMPAD_BACKLIGHT_CONTROL, SIMPAD_BACKLIGHT_MASK, and write().

bool SIMpad::setDisplayStatus bool  on  )  [virtual]
 

This sets the display on or off

Reimplemented from Opie::ODevice.

Definition at line 2451 of file odevice.cpp.

References qDebug(), and Opie::ODevice::system().

bool SIMpad::setLedState OLed  l,
OLedState  st
[virtual]
 

Set the state for a LED

Parameters:
which Which OLed to use
st The state to set
Returns:
success or failure

Reimplemented from Opie::ODevice.

Definition at line 2339 of file odevice.cpp.

References Opie::Core::Led_BlinkFast, Opie::Core::Led_BlinkSlow, Opie::Core::Led_Off, Opie::Core::Led_On, Opie::Core::Led_Power, m_leds, and SIMPAD_BOARDCONTROL.

bool SIMpad::setSoftSuspend bool  soft  )  [virtual]
 

Reimplemented from Opie::ODevice.

Definition at line 2444 of file odevice.cpp.

References qDebug().

bool SIMpad::suspend  )  [virtual]
 

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

Returns:
if the device got suspended

Reimplemented from Opie::ODevice.

Definition at line 2426 of file odevice.cpp.

References Opie::Core::isQWS(), qDebug(), and Opie::ODevice::system().

void SIMpad::timerEvent QTimerEvent *  te  )  [protected, virtual]
 

Definition at line 2379 of file odevice.cpp.

References Opie::Core::HardKey_Backlight, m_power_timer, and QWSServer::sendKeyEvent().


Member Data Documentation

OLedState SIMpad::m_leds[1] [protected]
 

Definition at line 187 of file odevice.cpp.

Referenced by Opie::Core::Internal::SIMpad::init(), init(), Opie::Core::Internal::SIMpad::ledState(), ledState(), Opie::Core::Internal::SIMpad::setLedState(), and setLedState().

int SIMpad::m_power_timer [protected]
 

Definition at line 185 of file odevice.cpp.

Referenced by Opie::Core::Internal::SIMpad::init(), init(), Opie::Core::Internal::SIMpad::timerEvent(), and timerEvent().


The documentation for this class was generated from the following file:
Generated on Sat Nov 5 17:51:55 2005 for OPIE by  doxygen 1.4.2