PowerEvent Struct Reference
A struct which represents the message that might be received from the service. It indicates when it was asked, the next action, and the level of the request.
#include <iPower.h>
Public Member Functions | |
PowerEvent (Action ev_action, Cause ev_cause, EventType ev_type=dpyPowermanager::EventType::STARTED_MSG) | |
Public Attributes | |
std::string | timestamp |
A timestamp which represents when was asked the request. | |
Action | action = Action::POWER_ON |
The action that is wanted to be taken. | |
Cause | cause = Cause::DEFAULT |
Cause of the event. | |
EventType | type = dpyPowermanager::EventType::STARTED_MSG |
The identity of the request, SET or WARN request. | |