powermanagerApi.h
Go to the documentation of this file.
36 void getPowerEvent_S(dpyPowermanager::event_handler_function handler, dpyPowermanager::ConfigType configuration);
46 void asyncSetTimers(dpyPowermanager::answer_pm_handler_function handler, std::uint32_t standbyTimer, std::uint32_t haltTimer);
48 void asyncSetStateWakeupTimers(dpyPowermanager::answer_pm_handler_function handler, bool standbyEnabled, bool haltEnabled);
50 void asyncSetTransitionIntervals(dpyPowermanager::answer_pm_handler_function handler, std::uint32_t cancelTime, std::uint32_t guardTime);
51 void asyncGetTransitionIntervals(dpyPowermanager::transition_intervals_pm_handler_function handler);
52 void asyncSetWakeupTime(dpyPowermanager::answer_pm_handler_function handler, struct tm &wakeupTime, bool localTime);
54 void asyncSetIgnitionOffTimeout(dpyPowermanager::answer_pm_handler_function handler, int minutes);
55 void asyncGetIgnitionOffTimeout(dpyPowermanager::ignition_off_timeout_pm_handler_function handler);
60 virtual void monitorServiceAvailability_S(dpyPowermanager::service_availability_handler handler);
63 virtual void getPowerEvent_S(dpyPowermanager::event_handler_function handler, dpyPowermanager::ConfigType configuration);
73 virtual void asyncSetTimers(dpyPowermanager::answer_pm_handler_function handler, std::uint32_t standbyTimer, std::uint32_t haltTimer);
75 virtual void asyncSetTransitionIntervals(dpyPowermanager::answer_pm_handler_function handler, std::uint32_t cancelTime, std::uint32_t guardTime);
76 virtual void asyncGetTransitionIntervals(dpyPowermanager::transition_intervals_pm_handler_function handler);
ConfigType
An enum definition which represents the different types of messages that it is wanted to be subscribe...
Definition: iPower.h:72
boost::function< void(boost::system::error_code &ec, dpyPowermanager::TransitionIntervals)> transition_intervals_pm_handler_function
Transition Intervals handler function.
Definition: iPower.h:148
bool isAlive()
This class allows to interact with the Power Manager Service.
Definition: powermanagerClient.h:15
boost::function< void(const bool &available)> service_availability_handler
Prototype of the handler function used to monitor service availability.
Definition: iPower.h:23
boost::function< void(boost::system::error_code &ec)> answer_pm_handler_function
Answer handler function.
Definition: iPower.h:144
boost::function< void(boost::system::error_code &ec, dpyPowermanager::PowerEvent event)> event_handler_function
Handlers to the functions the client has to implement.
Definition: iPower.h:142
boost::function< void(boost::system::error_code &ec, dpyPowermanager::Timers)> timers_pm_handler_function
Timers handler function.
Definition: iPower.h:145
boost::function< void(boost::system::error_code &ec, bool standbyEnabled, bool haltEnabled)> timers_state_pm_handler_function
Timers State handler function.
Definition: iPower.h:147
boost::function< void(boost::system::error_code &ec, bool rightConfiguration)> power_rails_handler_function
Power Rails handler function.
Definition: iPower.h:146
boost::function< void(boost::system::error_code &ec, struct tm dateTime)> wakeup_time_pm_handler_function
Wakeup Time handler function.
Definition: iPower.h:149
boost::function< void(boost::system::error_code ec, bool active)> debug_pm_handler_function
Debug handler to check if the debug is active or not.
Definition: iPower.h:143
boost::function< void(boost::system::error_code &ec, int minutes)> ignition_off_timeout_pm_handler_function
Ignition Off Timeout handler function.
Definition: iPower.h:150