ifw-fcf  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
actionsInit.hpp
Go to the documentation of this file.
1 
8 #ifndef FCF_DEVMGR_COMMON_ACTIONS_INIT_HPP_
9 #define FCF_DEVMGR_COMMON_ACTIONS_INIT_HPP_
10 
11 #include <rad/actionGroup.hpp>
12 #include <rad/smAdapter.hpp>
13 #include <rad/mal/request.hpp>
14 
15 #include <scxml4cpp/Context.h>
16 
17 #include <fcf/devmgr/common/events.rad.hpp>
18 
19 namespace fcf {
20  namespace devmgr {
21  namespace common {
22 
23  class DataContext;
24  class DeviceFacade;
25 
29  class ActionsInit : public rad::ActionGroup
30  {
31  public:
32 
41  ActionsInit(boost::asio::io_service& ios,
42  rad::SMAdapter& sm,
43  DataContext& data_ctx,
44  DeviceFacade& device_facade);
45 
46 
53  void Start(rad::AnyEvent const& last_event);
61  void Stop(rad::AnyEvent const& last_event);
62 
70  void Done(rad::AnyEvent const& last_event);
78  void Error(rad::AnyEvent const& last_event);
79 
87  void Timeout(rad::AnyEvent const& last_event);
88 
89  ActionsInit(const ActionsInit&) = delete;
90  ActionsInit& operator= (const ActionsInit&) = delete;
91 
92  private:
93  boost::asio::io_service& m_io_service;
94  rad::SMAdapter& m_sm;
95  DataContext& m_data_ctx;
96  DeviceFacade& m_device_facade;
97  rad::cii::Request<std::string> m_init_req;
98  };
99  } // namespace common
100  } // namespace devmgr
101 }
102 
103 #endif // FCF_DEVMGR_COMMON_ACTIONS_INIT_HPP_
ActionsInit(boost::asio::io_service &ios, rad::SMAdapter &sm, DataContext &data_ctx, DeviceFacade &device_facade)
Definition: actionsInit.cpp:23
void Done(rad::AnyEvent const &last_event)
Definition: actionsInit.cpp:66
ActionsInit & operator=(const ActionsInit &)=delete
Disable assignment operator.
Definition: deviceFacade.hpp:39
void Timeout(rad::AnyEvent const &last_event)
Definition: actionsInit.cpp:90
void Start(rad::AnyEvent const &last_event)
Definition: actionsInit.cpp:36
Definition: dataContext.hpp:81
void Error(rad::AnyEvent const &last_event)
Definition: actionsInit.cpp:74
void Stop(rad::AnyEvent const &last_event)
Definition: actionsInit.cpp:50
Definition: actionsInit.hpp:29