This class allows to interact with the Power Manager Service.

#include <powermanagerClient.h>

Inheritance diagram for PowerClient:

Public Member Functions

 PowerClient (std::string ip, int dport, int sport)
 
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 asyncCriticalBatteryRequest (dpyPowermanager::answer_pm_handler_function handler)
 
void asyncCheckPowerRailsStatus (dpyPowermanager::power_rails_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 asyncGetStateWakeupTimers (dpyPowermanager::timers_state_pm_handler_function handler)
 
void asyncSetStateWakeupTimers (dpyPowermanager::answer_pm_handler_function handler, bool standbyEnabled, bool haltEnabled)
 
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)
 
- Public Member Functions inherited from DpyMwClient
 DpyMwClient (std::string &ip, int dport, int sport)
 
void start ()
 
void stop ()
 
void subscribe (int messageType, boost::any handler)
 
void unsubscribe (int messageType)
 
bool isAlive ()
 
void monitorServiceAvailability_S (const f_hearbeat_handler &handler)
 
void monitorServiceAvailability_U ()
 

Additional Inherited Members

- Protected Member Functions inherited from DpyMwClient
void sendRequest (int requestType, int responseType, std::string content, boost::any handler, int ms_timeout=2000)
 
- Protected Attributes inherited from DpyMwClient
map_proto_register_client m_register_map
 
std::mutex m_map_mutex