BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
IQRFEventFirer.h
1 #pragma once
2 
3 #include <Poco/SharedPtr.h>
4 
5 #include "iqrf/DPARequest.h"
6 #include "iqrf/DPAResponse.h"
7 #include "iqrf/IQRFListener.h"
8 #include "util/EventSource.h"
9 #include "util/Loggable.h"
10 
11 namespace BeeeOn {
12 
19 class IQRFEventFirer: protected Loggable {
20 public:
21  typedef Poco::SharedPtr<IQRFEventFirer> Ptr;
22 
24 
25  void fireDPAStatistics(const DPAResponse::Ptr DPA);
26  void fireDPAStatistics(const DPARequest::Ptr DPA);
27 
28  void setAsyncExecutor(AsyncExecutor::Ptr executor);
29  void addListener(IQRFListener::Ptr listener);
30 
31 private:
32  EventSource<IQRFListener> m_eventSource;
33 };
34 
35 }
EventSource implements common logic for firing events to listeners.
Definition: EventSource.h:24
Definition: IQRFEventFirer.h:19
Definition: Loggable.h:19