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

Opie::Core::OAbstractMobileDevice Class Reference

Common Implementations for Linux Handheld Devices. More...

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

Inheritance diagram for Opie::Core::OAbstractMobileDevice:

Inheritance graph
[legend]
Collaboration diagram for Opie::Core::OAbstractMobileDevice:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual bool suspend ()
virtual bool setDisplayStatus (bool)

Protected Member Functions

 OAbstractMobileDevice ()
void setAPMTimeOut (int time)
 Time to wait for the asynchronos APM implementation to suspend.

Protected Attributes

int m_timeOut

Detailed Description

Common Implementations for Linux Handheld Devices.

Abstract Class with implementation for suspending using asynchrnonus apm implementations and displaystatus using the Linux Frame Buffer API

Definition at line 48 of file odevice_abstractmobiledevice.h.


Constructor & Destructor Documentation

Opie::Core::OAbstractMobileDevice::OAbstractMobileDevice  )  [protected]
 

Definition at line 45 of file odevice_abstractmobiledevice.cpp.


Member Function Documentation

void Opie::Core::OAbstractMobileDevice::setAPMTimeOut int  time  )  [protected]
 

Time to wait for the asynchronos APM implementation to suspend.

Milli Seconds to wait before returning from the suspend method. This is needed due asynchrnonus implementations of the APM bios.

Definition at line 56 of file odevice_abstractmobiledevice.cpp.

References m_timeOut.

Referenced by Opie::Core::Internal::Zaurus::init().

bool Opie::Core::OAbstractMobileDevice::setDisplayStatus bool  on  )  [virtual]
 

This sets the display on or off

Reimplemented from Opie::Core::ODevice.

Reimplemented in Opie::Core::Internal::Beagle, Opie::Core::Internal::iPAQ, Opie::Core::Internal::Jornada, Opie::Core::Internal::MyPal, Opie::Core::Internal::SIMpad, and Opie::Core::Internal::Zaurus.

Definition at line 104 of file odevice_abstractmobiledevice.cpp.

References FBIOBLANK, VESA_NO_BLANKING, and VESA_POWERDOWN.

Referenced by Opie::Core::Internal::MyPal::setDisplayStatus(), and Opie::Core::Internal::iPAQ::setDisplayStatus().

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

Reimplemented in Opie::Core::Internal::SIMpad, Opie::Core::Internal::Yopy, and Opie::Core::Internal::Zaurus.

Definition at line 61 of file odevice_abstractmobiledevice.cpp.

References Opie::Core::isQWS(), m_timeOut, QCopChannel::send(), and Opie::Core::ODevice::system().


Member Data Documentation

int Opie::Core::OAbstractMobileDevice::m_timeOut [protected]
 

Definition at line 58 of file odevice_abstractmobiledevice.h.

Referenced by setAPMTimeOut(), Opie::Core::Internal::Zaurus::suspend(), and suspend().


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