ifw-fcf  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
activityEnabling.hpp
Go to the documentation of this file.
1 
8 #ifndef FCF_DEVMGR_COMMON_ACTIVITY_ENABLING_HPP_
9 #define FCF_DEVMGR_COMMON_ACTIVITY_ENABLING_HPP_
10 
11 // System headers
12 #include <string>
13 
14 #include <rad/activity.hpp>
15 #include <rad/smAdapter.hpp>
16 
17 
18 namespace fcf {
19  namespace devmgr {
20  namespace common {
21 
22  class DataContext;
23  class DeviceFacade;
24 
28  class ActivityEnabling : public rad::ThreadActivity {
29  public:
30 
39  ActivityEnabling(const std::string& id,
40  rad::SMAdapter& sm,
41  DataContext& data_ctx,
42  DeviceFacade& device_facade);
43 
47  virtual ~ActivityEnabling();
48 
55  void Run() override;
56 
57  ActivityEnabling(const ActivityEnabling&) = delete;
58  ActivityEnabling& operator= (const ActivityEnabling&) = delete;
59 
60  private:
61  DataContext& m_data_ctx;
62  DeviceFacade& m_device_facade;
63  rad::SMAdapter& m_sm;
64  };
65  }
66  } // namespace devmgr::Common
67 }
68 
69 #endif // FCF_DEVMGR_COMMON_ACTIVITY_ENABLING_HPP_
void Run() override
Run method running inside the thread.
Definition: activityEnabling.cpp:46
ActivityEnabling(const std::string &id, rad::SMAdapter &sm, DataContext &data_ctx, DeviceFacade &device_facade)
Constructor.
Definition: activityEnabling.cpp:30
Definition: deviceFacade.hpp:39
virtual ~ActivityEnabling()
Destructor.
Definition: activityEnabling.cpp:42
Definition: activityEnabling.hpp:28
ActivityEnabling & operator=(const ActivityEnabling &)=delete
Disable copy constructor.
Definition: dataContext.hpp:81