ifw-fcf  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
activityRecovering.hpp
Go to the documentation of this file.
1 
8 #ifndef FCF_DEVMGR_COMMON_ACTIVITY_RECOVORING_HPP_
9 #define FCF_DEVMGR_COMMON_ACTIVITY_RECOVORING_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 ActivityRecovering : public rad::ThreadActivity {
29  public:
30 
39  ActivityRecovering(const std::string& id,
40  rad::SMAdapter& sm,
41  DataContext& data_ctx,
42  DeviceFacade& device_facade);
43 
47  virtual ~ActivityRecovering();
48 
55  void Run() override;
56 
57  ActivityRecovering(const ActivityRecovering&) = 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_RECOVORING_HPP_
ActivityRecovering & operator=(const ActivityRecovering &)=delete
Disable copy constructor.
Definition: deviceFacade.hpp:39
Definition: dataContext.hpp:81
ActivityRecovering(const std::string &id, rad::SMAdapter &sm, DataContext &data_ctx, DeviceFacade &device_facade)
Constructor.
Definition: activityRecovering.cpp:30
virtual ~ActivityRecovering()
Destructor.
Definition: activityRecovering.cpp:42
Definition: activityRecovering.hpp:28
void Run() override
Run method running inside the thread.
Definition: activityRecovering.cpp:46