libthinkpad  2.6
https://github.com/libthinkpad
Public Member Functions | Static Public Member Functions | List of all members
ThinkPad::PowerManagement::ACPIEventHandler Class Referenceabstract

This is the abstract ACPI event handler class. More...

#include <libthinkpad.h>

Public Member Functions

virtual void handleEvent (ACPIEvent event)=0
 

Static Public Member Functions

static void * _handleEvent (void *_this)
 

Detailed Description

This is the abstract ACPI event handler class.

If you want to use this class, override the handleEvent(ACPIEvent) method and do your thing there. The method is called from another thread so watch out for threading issues that might occur.

If you need to use shared resources inside the handler, use the pthread mutex API.

Member Function Documentation

void * ThinkPad::PowerManagement::ACPIEventHandler::_handleEvent ( void *  _this)
static

PRIVATE METHOD: DO NOT USE

virtual void ThinkPad::PowerManagement::ACPIEventHandler::handleEvent ( ACPIEvent  event)
pure virtual

This method is called for various ACPI events, such as power button presses, lid events and dock events.

Parameters
eventthe event that occured

The documentation for this class was generated from the following files: