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

Opie::Core::Internal::Yopy Class Reference

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

Inheritance diagram for Opie::Core::Internal::Yopy:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual bool suspend ()
virtual bool setDisplayBrightness (int b)
virtual int displayBrightnessResolution () const

Protected Member Functions

virtual void init (const QString &)
virtual void initButtons ()

Member Function Documentation

int Yopy::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 151 of file odevice_yopy.cpp.

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

Reimplemented from Opie::Core::ODevice.

Definition at line 76 of file odevice_yopy.cpp.

References Opie::Core::ODevice::d, Opie::Core::ODeviceData::m_model, Opie::Core::ODeviceData::m_modelstr, Opie::Core::ODeviceData::m_rotation, Opie::Core::ODeviceData::m_system, Opie::Core::ODeviceData::m_systemstr, Opie::Core::ODeviceData::m_vendor, Opie::Core::ODeviceData::m_vendorstr, Opie::Core::Model_Yopy_3700, Rot0, Opie::Core::System_Linupy, and Opie::Core::Vendor_GMate.

void Yopy::initButtons  )  [protected, virtual]
 

This method initialises the button mapping

Reimplemented from Opie::Core::ODevice.

Definition at line 89 of file odevice_yopy.cpp.

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

bool Yopy::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 126 of file odevice_yopy.cpp.

References QFile::exists(), and write().

bool Yopy::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::Core::OAbstractMobileDevice.

Definition at line 117 of file odevice_yopy.cpp.


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