Power Class Reference
Class which interfaces with the API logic.
#include <power>
Public Member Functions | |
Power (std::string ip="127.0.0.1") | |
bool | isAlive () |
void | monitorServiceAvailability_S (dpyPowermanager::service_availability_handler handler) |
void | monitorServiceAvailability_U () |
void | asyncGetCurrentEvent (dpyPowermanager::event_handler_function handler) |
void | getPowerEvent_S (dpyPowermanager::event_handler_function handler, dpyPowermanager::ConfigType configuration) |
void | getPowerEvent_U () |
void | asyncShutdownRequest (dpyPowermanager::answer_pm_handler_function handler) |
void | asyncRebootRequest (dpyPowermanager::answer_pm_handler_function handler) |
void | asyncStandbyRequest (dpyPowermanager::answer_pm_handler_function handler) |
void | asyncAbortRequest (dpyPowermanager::answer_pm_handler_function handler) |
void | asyncCheckPowerRailsStatus (dpyPowermanager::power_rails_handler_function) |
void | asyncCriticalBatteryRequest (dpyPowermanager::answer_pm_handler_function handler) |
void | asyncSetDebugMode (dpyPowermanager::answer_pm_handler_function handler, bool debug) |
void | asyncGetDebugMode (dpyPowermanager::debug_pm_handler_function handler) |
void | asyncSetTimers (dpyPowermanager::answer_pm_handler_function handler, std::uint32_t standbyTimer, std::uint32_t haltTimer) |
void | asyncGetTimers (dpyPowermanager::timers_pm_handler_function handler) |
void | asyncSetStateWakeupTimers (dpyPowermanager::answer_pm_handler_function handler, bool standbyEnabled, bool haltEnabled) |
void | asyncGetStateWakeupTimers (dpyPowermanager::timers_state_pm_handler_function handler) |
void | asyncSetTransitionIntervals (dpyPowermanager::answer_pm_handler_function handler, std::uint32_t cancelTime, std::uint32_t guardTime) |
void | asyncGetTransitionIntervals (dpyPowermanager::transition_intervals_pm_handler_function handler) |
void | asyncSetWakeupTime (dpyPowermanager::answer_pm_handler_function handler, struct tm &wakeupTime, bool localTime) |
void | asyncGetWakeupTime (dpyPowermanager::wakeup_time_pm_handler_function handler) |
void | asyncSetIgnitionOffTimeout (dpyPowermanager::answer_pm_handler_function handler, int minutes) |
void | asyncGetIgnitionOffTimeout (dpyPowermanager::ignition_off_timeout_pm_handler_function handler) |
void | asyncCancelIgnitionOffTimeout (dpyPowermanager::answer_pm_handler_function handler) |
Member Function Documentation
bool isAlive | ( | ) |
TESTING : define this flag to fake/mock DPY API methods to be able to unit test classes which use DPY APIs.