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

Opie::Core::Internal::iPAQ Class Reference

#include </home/clem/local/src/opie/libopie2/opiecore/device/odevice_ipaq.h>

Inheritance diagram for Opie::Core::Internal::iPAQ:

Inheritance graph
[legend]
Collaboration diagram for Opie::Core::Internal::iPAQ:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual bool setDisplayStatus (bool on)
virtual bool setDisplayBrightness (int b)
virtual int displayBrightnessResolution () const
virtual void playAlarmSound ()
virtual QValueList< OLedledList () const
virtual QValueList< OLedStateledStateList (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

Protected Member Functions

virtual void init (const QString &)
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 [2]

Member Function Documentation

int iPAQ::displayBrightnessResolution  )  const [virtual]
 

Returns:
the number of steppings on the brightness slider in the Light-'n-Power settings. Values smaller than zero and bigger than 255 do not make sense.
See also:
QSlider::setLineStep

QSlider::setPageStep

Reimplemented from Opie::Core::ODevice.

Definition at line 394 of file odevice_ipaq.cpp.

References Opie::Core::ODevice::model(), Opie::Core::Model_iPAQ_H191x, Opie::Core::Model_iPAQ_H1940, Opie::Core::Model_iPAQ_H31xx, Opie::Core::Model_iPAQ_H36xx, Opie::Core::Model_iPAQ_H37xx, Opie::Core::Model_iPAQ_H38xx, Opie::Core::Model_iPAQ_H39xx, and Opie::Core::Model_iPAQ_H5xxx.

Referenced by setDisplayBrightness().

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

Reimplemented from QWSServer::KeyboardFilter.

Definition at line 277 of file odevice_ipaq.cpp.

References Opie::Core::ODevice::d, Opie::Core::HardKey_Mail, Opie::Core::HardKey_Menu, Opie::Core::HardKey_Suspend, Opie::Core::ODeviceData::m_model, m_power_timer, Opie::Core::Model_iPAQ_H191x, Opie::Core::Model_iPAQ_H1940, Opie::Core::Model_iPAQ_H31xx, Opie::Core::Model_iPAQ_H38xx, Opie::Core::Model_iPAQ_H39xx, Opie::Core::Model_iPAQ_H5xxx, and QWSServer::sendKeyEvent().

bool iPAQ::hasLightSensor  )  const [virtual]
 

Returns:
if the device has a light sensor

Reimplemented from Opie::Core::ODevice.

Definition at line 433 of file odevice_ipaq.cpp.

void iPAQ::init const QString  )  [protected, virtual]
 

Reimplemented from Opie::Core::ODevice.

Definition at line 131 of file odevice_ipaq.cpp.

References Opie::Core::ODevice::d, QString::findRev(), Opie::Core::Led_Off, m_leds, Opie::Core::ODeviceData::m_model, Opie::Core::ODeviceData::m_modelstr, m_power_timer, Opie::Core::ODeviceData::m_rotation, Opie::Core::ODeviceData::m_vendor, Opie::Core::ODeviceData::m_vendorstr, QString::mid(), Opie::Core::Model_iPAQ_H191x, Opie::Core::Model_iPAQ_H1940, Opie::Core::Model_iPAQ_H22xx, Opie::Core::Model_iPAQ_H31xx, Opie::Core::Model_iPAQ_H36xx, Opie::Core::Model_iPAQ_H37xx, Opie::Core::Model_iPAQ_H38xx, Opie::Core::Model_iPAQ_H39xx, Opie::Core::Model_iPAQ_H5xxx, Opie::Core::Model_Unknown, Rot0, Rot270, Rot90, and Opie::Core::Vendor_HP.

void iPAQ::initButtons  )  [protected, virtual]
 

This method initialises the button mapping

Reimplemented from Opie::Core::ODevice.

Definition at line 185 of file odevice_ipaq.cpp.

References Opie::Core::ODevice::addPreHandler(), QValueList< T >::append(), Opie::Core::Internal::i_button::code, Opie::Core::ODevice::d, Opie::Core::Internal::i_button::fheldaction, Opie::Core::Internal::i_button::fheldservice, Opie::Core::Internal::i_button::fpressedaction, Opie::Core::Internal::i_button::fpressedservice, i, Opie::Core::isQWS(), Opie::Core::OResource::loadPixmap(), Opie::Core::ODeviceData::m_buttons, Opie::Core::ODeviceData::m_model, Opie::Core::makeChannel(), Opie::Core::Internal::i_button::model, Opie::Core::Internal::i_button::pix, Opie::Core::ODevice::reloadButtonMapping(), tr, and Opie::Core::Internal::i_button::utext.

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

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

Returns:
a list of LEDs.

Reimplemented from Opie::Core::ODevice.

Definition at line 213 of file odevice_ipaq.cpp.

References Opie::Core::ODevice::d, Opie::Core::Led_BlueTooth, Opie::Core::Led_Power, Opie::Core::ODeviceData::m_model, and Opie::Core::Model_iPAQ_H38xx.

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

Returns:
the state for a given OLed

Reimplemented from Opie::Core::ODevice.

Definition at line 235 of file odevice_ipaq.cpp.

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

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

This does return the state of the LEDs

Reimplemented from Opie::Core::ODevice.

Definition at line 223 of file odevice_ipaq.cpp.

References Opie::Core::ODevice::d, Opie::Core::Led_BlinkFast, Opie::Core::Led_BlinkSlow, Opie::Core::Led_BlueTooth, Opie::Core::Led_Off, Opie::Core::Led_On, Opie::Core::Led_Power, Opie::Core::ODeviceData::m_model, and Opie::Core::Model_iPAQ_H38xx.

int iPAQ::lightSensorResolution  )  const [virtual]
 

Returns:
the light sensor resolution

Reimplemented from Opie::Core::ODevice.

Definition at line 461 of file odevice_ipaq.cpp.

void iPAQ::playAlarmSound  )  [virtual]
 

This plays an alarm sound

Reimplemented from Opie::Core::ODevice.

Definition at line 348 of file odevice_ipaq.cpp.

References Opie::Core::ODevice::changeMixerForAlarm(), Sound::isFinished(), and snd.

int iPAQ::readLightSensor  )  [virtual]
 

Returns:
a value from the light sensor

Reimplemented from Opie::Core::ODevice.

Definition at line 438 of file odevice_ipaq.cpp.

References val.

bool iPAQ::setDisplayBrightness int  bright  )  [virtual]
 

This sets the display brightness

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

Reimplemented from Opie::Core::ODevice.

Definition at line 360 of file odevice_ipaq.cpp.

References displayBrightnessResolution(), QFile::encodeName(), FLITE_ON, QString::fromLatin1(), Opie::Core::ODevice::model(), Opie::Core::Model_iPAQ_H191x, and Opie::Core::ODevice::system().

bool iPAQ::setDisplayStatus bool  on  )  [virtual]
 

This sets the display on or off

Reimplemented from Opie::Core::OAbstractMobileDevice.

Definition at line 416 of file odevice_ipaq.cpp.

References QFile::encodeName(), QString::fromLatin1(), Opie::Core::ODevice::model(), Opie::Core::Model_iPAQ_H191x, Opie::Core::OAbstractMobileDevice::setDisplayStatus(), and Opie::Core::ODevice::system().

bool iPAQ::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::Core::ODevice.

Definition at line 247 of file odevice_ipaq.cpp.

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

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

Definition at line 339 of file odevice_ipaq.cpp.

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


Member Data Documentation

OLedState Opie::Core::Internal::iPAQ::m_leds[2] [protected]
 

Definition at line 71 of file odevice_ipaq.h.

Referenced by init(), ledState(), and setLedState().

int Opie::Core::Internal::iPAQ::m_power_timer [protected]
 

Definition at line 69 of file odevice_ipaq.h.

Referenced by filter(), init(), and timerEvent().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 18:01:00 2005 for OPIE by  doxygen 1.4.2