ifw-fcf  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
subscribeCmdWorker.h
Go to the documentation of this file.
1 
9 #ifndef SUBSCRIBE_CMD_OBJECT_H
10 #define SUBSCRIBE_CMD_OBJECT_H
11 
12 #include <QObject>
13 #include <QString>
14 
15 #include <any>
16 #include <boost/bind.hpp>
17 #include <boost/asio.hpp>
18 
19 
20 #include <mal/Cii.hpp>
21 #include <mal/Mal.hpp>
22 #include <mal/utility/LoadMal.hpp>
23 
24 
25 #include <Fcfif.hpp>
26 
27 Q_DECLARE_METATYPE(std::any)
28 
29 class SubscribeCmdWorker : public QObject
30 {
31 
32  Q_OBJECT
33 
34 public:
35  explicit SubscribeCmdWorker(boost::asio::io_service& ios,
36  const std::vector<std::string>& device_list,
37  std::string endpoint);
38 
39 public slots:
40  void process();
41 
42 
43 signals:
44  void finished();
45  void receivedData(const QString& topic_name,
46  const std::any& topic_data);
47 
48 
49 private:
50 
51 
52 private:
53  boost::asio::io_service& m_ios;
54  std::vector<std::string> m_devices;
55  std::string m_endpoint;
56 };
57 
58 #endif // SUBSCRIBE_CMD_OBJECT_H
59 
60 
61 
Definition: subscribeCmdWorker.h:29