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

Ramses Class Reference

Inheritance diagram for Ramses:

Inheritance graph
[legend]
Collaboration diagram for Ramses:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual bool setSoftSuspend (bool soft)
virtual bool suspend ()
virtual bool setDisplayStatus (bool on)
virtual bool setDisplayBrightness (int b)
virtual int displayBrightnessResolution () const
virtual bool setDisplayContrast (int b)
virtual int displayContrastResolution () const

Protected Member Functions

virtual void init ()
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 Ramses::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 2669 of file odevice.cpp.

int Ramses::displayContrastResolution  )  const [virtual]
 

Returns:
return the max value for the brightness settings slider or 0 if the device doesn't support setting of a contrast

Reimplemented from Opie::ODevice.

Definition at line 2700 of file odevice.cpp.

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

Reimplemented from QWSServer::KeyboardFilter.

Definition at line 2550 of file odevice.cpp.

void Ramses::init  )  [protected, virtual]
 

Reimplemented from Opie::ODevice.

Definition at line 2501 of file odevice.cpp.

References QPtrList< type >::append(), Opie::ODevice::d, f, IO_ReadOnly, ODeviceData::m_cpu_frequencies, ODeviceData::m_holdtime, ODeviceData::m_model, ODeviceData::m_modelstr, m_power_timer, ODeviceData::m_rotation, ODeviceData::m_system, ODeviceData::m_systemstr, ODeviceData::m_sysverstr, ODeviceData::m_vendor, ODeviceData::m_vendorstr, Opie::Core::Model_Ramses_MNCI, OC, QFile::open(), QTextStream::readLine(), Rot90, QTextStream::setDevice(), QFile::setName(), Opie::Core::System_OpenZaurus, and Opie::Core::Vendor_MundN.

bool Ramses::setDisplayBrightness int  bright  )  [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 2635 of file odevice.cpp.

References qDebug(), and write().

bool Ramses::setDisplayContrast int  contr  )  [virtual]
 

This sets the display contrast

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

Reimplemented from Opie::ODevice.

Definition at line 2674 of file odevice.cpp.

References qDebug(), and write().

bool Ramses::setDisplayStatus bool  on  )  [virtual]
 

This sets the display on or off

Reimplemented from Opie::ODevice.

Definition at line 2614 of file odevice.cpp.

References FBIOBLANK, qDebug(), VESA_NO_BLANKING, and VESA_POWERDOWN.

bool Ramses::setSoftSuspend bool  soft  )  [virtual]
 

Reimplemented from Opie::ODevice.

Definition at line 2568 of file odevice.cpp.

References APM_EVT_POWER_BUTTON, APM_IOCGEVTSRC, APM_IOCSEVTSRC, Opie::Core::perror(), and qDebug().

bool Ramses::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 2605 of file odevice.cpp.

References qDebug().

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

Definition at line 2559 of file odevice.cpp.

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


Member Data Documentation

int Ramses::m_power_timer [protected]
 

Definition at line 208 of file odevice.cpp.

Referenced by init(), and timerEvent().


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