APM_Interface Class Reference

#include <apm.h>

Inheritance diagram for APM_Interface:

PM_Interface List of all members.

Public Member Functions

 APM_Interface ()
 default initialisation
virtual ~APM_Interface ()
 destructor
virtual int openHWEventFD ()
 opens the apm event file
virtual int openAcpidSocket ()
 dummy implementation
virtual int handleHWEventRequest (int fd=-1)
 Handles an event on the socket.
virtual int suspend_to_ram ()
 triggers suspend_to_ram for apm
virtual int standby ()
 triggers standby for apm
virtual void activateSettings ()
 activates settings for specific scheme

Private Attributes

int _hwEvent_fd
 the event fd

Constructor & Destructor Documentation

APM_Interface::APM_Interface  ) 
 

default initialisation

APM_Interface::~APM_Interface  )  [virtual]
 

destructor


Member Function Documentation

void APM_Interface::activateSettings  )  [virtual]
 

activates settings for specific scheme

only calls activateSettings from parent class for now

Reimplemented from PM_Interface.

int APM_Interface::handleHWEventRequest int  fd = -1  )  [virtual]
 

Handles an event on the socket.

Returns:
< 0 on error

Implements PM_Interface.

int APM_Interface::openAcpidSocket  )  [virtual]
 

dummy implementation

Implements PM_Interface.

int APM_Interface::openHWEventFD  )  [virtual]
 

opens the apm event file

Returns:
the filedescriptor or -1 on error
Return values:
< 0 on error
the filedesctiptor on success

Implements PM_Interface.

int APM_Interface::standby  )  [virtual]
 

triggers standby for apm

Returns:
true on success, false if not supported

Implements PM_Interface.

int APM_Interface::suspend_to_ram  )  [virtual]
 

triggers suspend_to_ram for apm

Returns:
true on success, false if not supported

Implements PM_Interface.


Member Data Documentation

int APM_Interface::_hwEvent_fd [private]
 

the event fd


The documentation for this class was generated from the following files:
Generated on Mon Mar 27 09:27:19 2006 for Powersave Daemon by  doxygen 1.4.6