iPower.h
Go to the documentation of this file.
99 PowerEvent(Action ev_action, Cause ev_cause, EventType ev_type=dpyPowermanager::EventType::STARTED_MSG)
104 };
125 std::uint32_t standby = 0;
126 std::uint32_t shutdown = 0;
135 std::uint32_t cancelTime = 0;
136 std::uint32_t guardTime = 0;
142 typedef boost::function<void(boost::system::error_code& ec, dpyPowermanager::PowerEvent event)> event_handler_function;
143 typedef boost::function<void(boost::system::error_code ec, bool active)> debug_pm_handler_function;
145 typedef boost::function<void(boost::system::error_code& ec, dpyPowermanager::Timers)> timers_pm_handler_function;
146 typedef boost::function<void(boost::system::error_code& ec, bool rightConfiguration)> power_rails_handler_function;
147 typedef boost::function<void(boost::system::error_code& ec, bool standbyEnabled, bool haltEnabled)> timers_state_pm_handler_function;
148 typedef boost::function<void(boost::system::error_code& ec, dpyPowermanager::TransitionIntervals)> transition_intervals_pm_handler_function;
149 typedef boost::function<void(boost::system::error_code& ec, struct tm dateTime)> wakeup_time_pm_handler_function;
150 typedef boost::function<void(boost::system::error_code& ec, int minutes)> ignition_off_timeout_pm_handler_function;
A struct which represents the message that might be received from the service. It indicates when it w...
Definition: iPower.h:114
Request
The enum definition of the different types of Power Manager Requests.
Definition: iPower.h:39
ConfigType
An enum definition which represents the different types of messages that it is wanted to be subscribe...
Definition: iPower.h:72
EventType type
The identity of the request, SET or WARN request.
Definition: iPower.h:108
The request to abort a request on course. It is only possible to abort the following requests: REBOOT...
Definition: iPower.h:45
boost::function< void(boost::system::error_code &ec, dpyPowermanager::TransitionIntervals)> transition_intervals_pm_handler_function
Transition Intervals handler function.
Definition: iPower.h:148
std::string timestamp
A timestamp which represents when was asked the request.
Definition: iPower.h:104
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
Action
The enum definition of the different types of Power Manager Requests.
Definition: iPower.h:51
An Aborting message, it indicates that the previous action was aborted.
Definition: iPower.h:66
A struct which store the values of the transition intervals.
Definition: iPower.h:133
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
The request to turn on standby mode (suspend to ram).
Definition: iPower.h:43
A Completed message, it indicates that it is going to turn on the indicated action.
Definition: iPower.h:65
Cause
The enum definition of the different types of causes.
Definition: iPower.h:28
boost::function< void(boost::system::error_code &ec, bool rightConfiguration)> power_rails_handler_function
Power Rails handler function.
Definition: iPower.h:146
The request to turnon standby mode (suspend to ram).
Definition: iPower.h:55
A Started message, it indicates that it is wanted to change the power state. However, it exits the possibility of aborting it.
Definition: iPower.h:64
A struct which represents the message that might be received from the service. It indicates when it w...
Definition: iPower.h:93
Debug
An enum definition which represents the different modes of the Automatic Power configuration.
Definition: iPower.h:83
Action action
The action that is wanted to be taken.
Definition: iPower.h:106
Deepsy PowerManager namespace that includes the different enums, structs or method signatures that sh...
The action of warning the critical battery status.
Definition: iPower.h:31
A struct which store the values of the power wakeup timers.
Definition: iPower.h:123
EventType
Identity of the kind of received message.
Definition: iPower.h:62
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