This handles the system power state and ACPI event dispatches. More...
#include <libthinkpad.h>
Public Member Functions | |
void | addEventHandler (ACPIEventHandler *handler) |
Set a custom event handler for ACPI events. More... | |
void | wait () |
Block the caller of the method for infinite-loop exit-prevention. Used for testing. | |
void | start () |
starts the listening on ACPI events | |
This handles the system power state and ACPI event dispatches.
The ACPI class is used for power event monitoring and reporting. It combines the functionality from udev and acpid into a single API to be used by applications.
void ThinkPad::PowerManagement::ACPI::addEventHandler | ( | PowerManagement::ACPIEventHandler * | handler | ) |
Set a custom event handler for ACPI events.
handler |