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

Yopy Class Reference

Inheritance diagram for Yopy:

Inheritance graph
[legend]
Collaboration diagram for Yopy:

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

Static Public Member Functions

static bool isYopy ()

Protected Member Functions

virtual void init ()
virtual void initButtons ()

Member Function Documentation

int Yopy::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 1129 of file odevice.cpp.

void Yopy::init  )  [protected, virtual]
 

Reimplemented from Opie::ODevice.

Definition at line 1051 of file odevice.cpp.

References Opie::ODevice::d, f, IO_ReadOnly, Opie::Core::Model_Yopy_3700, QTextStream::readLine(), Rot0, Opie::Core::System_Linupy, and Opie::Core::Vendor_GMate.

void Yopy::initButtons  )  [protected, virtual]
 

This method initialises the button mapping

Reimplemented from Opie::ODevice.

Definition at line 1071 of file odevice.cpp.

References code, Opie::ODevice::d, yopy_button::fheldaction, yopy_button::fheldservice, yopy_button::fpressedaction, yopy_button::fpressedservice, i, Resource::loadPixmap(), Opie::Core::makeChannel(), pix, Opie::ODevice::reloadButtonMapping(), Opie::ODevice::systemMessage(), tr, utext, and yopy_buttons.

bool Yopy::isYopy  )  [static]
 

Definition at line 1031 of file odevice.cpp.

References f, IO_ReadOnly, loc, and Opie::ODevice::model().

Referenced by Opie::ODevice::inst().

bool Yopy::setDisplayBrightness int  b  )  [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 1109 of file odevice.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::ODevice.

Definition at line 1101 of file odevice.cpp.


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