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

Opie::Core::Internal::GenuineIntel Class Reference

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

Inheritance diagram for Opie::Core::Internal::GenuineIntel:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

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)

Member Function Documentation

int GenuineIntel::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 170 of file odevice_genuineintel.cpp.

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

Reimplemented from QWSServer::KeyboardFilter.

Definition at line 147 of file odevice_genuineintel.cpp.

bool GenuineIntel::hasLightSensor  )  const [virtual]
 

Returns:
if the device has a light sensor

Reimplemented from Opie::Core::ODevice.

Definition at line 176 of file odevice_genuineintel.cpp.

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

Reimplemented from Opie::Core::ODevice.

Definition at line 87 of file odevice_genuineintel.cpp.

References Opie::Core::ODevice::d, Opie::Core::ODeviceData::m_model, Opie::Core::ODeviceData::m_rotation, Opie::Core::ODeviceData::m_vendor, Opie::Core::ODeviceData::m_vendorstr, Opie::Core::Model_GenuineIntel, Rot0, QStringList::split(), and Opie::Core::Vendor_GenuineIntel.

void GenuineIntel::initButtons  )  [protected, virtual]
 

This method initialises the button mapping

Reimplemented from Opie::Core::ODevice.

Definition at line 98 of file odevice_genuineintel.cpp.

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

QValueList< OLed > GenuineIntel::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 124 of file odevice_genuineintel.cpp.

OLedState GenuineIntel::ledState OLed  led  )  const [virtual]
 

Returns:
the state for a given OLed

Reimplemented from Opie::Core::ODevice.

Definition at line 136 of file odevice_genuineintel.cpp.

References Opie::Core::Led_Off.

QValueList< OLedState > GenuineIntel::ledStateList OLed  led  )  const [virtual]
 

This does return the state of the LEDs

Reimplemented from Opie::Core::ODevice.

Definition at line 130 of file odevice_genuineintel.cpp.

int GenuineIntel::lightSensorResolution  )  const [virtual]
 

Returns:
the light sensor resolution

Reimplemented from Opie::Core::ODevice.

Definition at line 186 of file odevice_genuineintel.cpp.

void GenuineIntel::playAlarmSound  )  [virtual]
 

This plays an alarm sound

Reimplemented from Opie::Core::ODevice.

Definition at line 152 of file odevice_genuineintel.cpp.

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

int GenuineIntel::readLightSensor  )  [virtual]
 

Returns:
a value from the light sensor

Reimplemented from Opie::Core::ODevice.

Definition at line 181 of file odevice_genuineintel.cpp.

bool GenuineIntel::setDisplayBrightness int  b  )  [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 165 of file odevice_genuineintel.cpp.

bool GenuineIntel::setLedState OLed  led,
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 141 of file odevice_genuineintel.cpp.


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