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

Opie::Core::Internal::MyPal Class Reference

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

Inheritance diagram for Opie::Core::Internal::MyPal:

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

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 ()

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

Member Function Documentation

int MyPal::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 227 of file odevice_mypal.cpp.

References Opie::Core::ODevice::displayBrightnessResolution(), Opie::Core::ODevice::model(), and Opie::Core::Model_MyPal_716.

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

Reimplemented from QWSServer::KeyboardFilter.

Definition at line 134 of file odevice_mypal.cpp.

References Opie::Core::ODevice::d, Opie::Core::HardKey_Suspend, Opie::Core::ODeviceData::m_model, m_power_timer, Opie::Core::Model_MyPal_716, and QWSServer::sendKeyEvent().

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

Reimplemented from Opie::Core::ODevice.

Definition at line 90 of file odevice_mypal.cpp.

References Opie::Core::ODevice::d, QString::findRev(), 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_MyPal_716, Opie::Core::Model_Unknown, Rot0, and Opie::Core::Vendor_Asus.

void MyPal::initButtons  )  [protected, virtual]
 

This method initialises the button mapping

Reimplemented from Opie::Core::ODevice.

Definition at line 106 of file odevice_mypal.cpp.

References Opie::Core::ODevice::addPreHandler(), QValueList< T >::append(), Opie::Core::Internal::m_button::code, Opie::Core::ODevice::d, Opie::Core::Internal::m_button::fheldaction, Opie::Core::Internal::m_button::fheldservice, Opie::Core::Internal::m_button::fpressedaction, Opie::Core::Internal::m_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::m_button::model, Opie::Core::Internal::m_button::pix, Opie::Core::ODevice::reloadButtonMapping(), tr, and Opie::Core::Internal::m_button::utext.

void MyPal::playAlarmSound  )  [virtual]
 

This plays an alarm sound

Reimplemented from Opie::Core::ODevice.

Definition at line 188 of file odevice_mypal.cpp.

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

bool MyPal::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 200 of file odevice_mypal.cpp.

References QFile::encodeName(), QString::fromLatin1(), Opie::Core::ODevice::model(), Opie::Core::Model_MyPal_716, Opie::Core::ODevice::setDisplayBrightness(), and Opie::Core::ODevice::system().

bool MyPal::setDisplayStatus bool  on  )  [virtual]
 

This sets the display on or off

Reimplemented from Opie::Core::OAbstractMobileDevice.

Definition at line 237 of file odevice_mypal.cpp.

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

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

Definition at line 179 of file odevice_mypal.cpp.

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


Member Data Documentation

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

Definition at line 60 of file odevice_mypal.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:02 2005 for OPIE by  doxygen 1.4.2