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 };
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;
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, int minutes)> ignition_off_timeout_pm_handler_function
Ignition Off Timeout handler function.
Definition: iPower.h:150
boost::function< void(boost::system::error_code &ec, dpyPowermanager::TransitionIntervals)> transition_intervals_pm_handler_function
Transition Intervals handler function.
Definition: iPower.h:148
std::uint32_t standby
The value of the wakeup standby timer.
Definition: iPower.h:125
@ REQ_ABORT
The request to abort a request on course. It is only possible to abort the following requests: REBOOT...
Definition: iPower.h:45
std::string timestamp
A timestamp which represents when was asked the request.
Definition: iPower.h:104
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
@ STARTED_COMPLETED
COMPLETED and STARTED messages.
Definition: iPower.h:77
std::uint32_t guardTime
The value of the guard time.
Definition: iPower.h:136
ConfigType
An enum definition which represents the different types of messages that it is wanted to be subscribe...
Definition: iPower.h:72
@ MCU_ERROR
The MCU is not ready for the transition.
Definition: iPower.h:32
Deepsy PowerManager namespace that includes the different enums, structs or method signatures that sh...
boost::function< void(const bool &available)> service_availability_handler
Prototype of the handler function used to monitor service availability.
Definition: iPower.h:23
@ ABORTED_MSG
An Aborting message, it indicates that the previous action was aborted.
Definition: iPower.h:66
boost::function< void(boost::system::error_code &ec)> answer_pm_handler_function
Answer handler function.
Definition: iPower.h:144
A struct which store the values of the transition intervals.
Definition: iPower.h:133
std::uint32_t cancelTime
The value of the cancel time.
Definition: iPower.h:135
@ REQ_SHUTDOWN
The request to switch off the system.
Definition: iPower.h:44
Cause
The enum definition of the different types of causes.
Definition: iPower.h:28
A struct which represents the message that might be received from the service. It indicates when it w...
Definition: iPower.h:114
Request request
The action that is wanted to be taken.
Definition: iPower.h:116
boost::function< void(boost::system::error_code &ec, bool rightConfiguration)> power_rails_handler_function
Power Rails handler function.
Definition: iPower.h:146
@ REQ_STANDBY
The request to turn on standby mode (suspend to ram).
Definition: iPower.h:43
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
Debug
An enum definition which represents the different modes of the Automatic Power configuration.
Definition: iPower.h:83
@ COMPLETED_MSG
A Completed message, it indicates that it is going to turn on the indicated action.
Definition: iPower.h:65
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
std::uint32_t shutdown
The value of the wakeup shutdown timer.
Definition: iPower.h:126
Request
The enum definition of the different types of Power Manager Requests.
Definition: iPower.h:39
@ STARTED_MSG
A Started message, it indicates that it is wanted to change the power state. However,...
Definition: iPower.h:64
@ STANDBY
The request to turnon standby mode (suspend to ram).
Definition: iPower.h:55
Action
The enum definition of the different types of Power Manager Requests.
Definition: iPower.h:51
Cause cause
The cause that provokes the action.
Definition: iPower.h:117
Action action
The action that is wanted to be taken.
Definition: iPower.h:106
boost::function< void(boost::system::error_code &ec, struct tm dateTime)> wakeup_time_pm_handler_function
Wakeup Time handler function.
Definition: iPower.h:149
@ REQ_POWER_ON
The request to switch on the system.
Definition: iPower.h:41
@ CRITICAL_BATTERY
The action of warning the critical battery status.
Definition: iPower.h:31
A struct which represents the message that might be received from the service. It indicates when it w...
Definition: iPower.h:93
EventType type
The identity of the request, SET or WARN request.
Definition: iPower.h:108
A struct which store the values of the power wakeup timers.
Definition: iPower.h:123