ifw  0.0.1-dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
requestHwEnableHandler.h
Go to the documentation of this file.
1 #ifndef REQUEST_HWENABLE_HANDLER_H
2 #define REQUEST_HWENABLE_HANDLER_H
3 
4 #include <QObject>
5 #include <QString>
6 
7 
8 #include <rad/MsgRequestor.hpp>
9 #include <rad/Helper.hpp>
10 #include <rad/Logger.hpp>
11 
13 
14 
15 class RequestHwEnableHandler : public QObject
16 {
17  Q_OBJECT
18 
19 public:
21 
22  virtual ~RequestHwEnableHandler();
23 
24 public slots:
25 
26  bool SendSynch(const std::string endpoint, modif::ReqHwEnable req, const long replyTimeout);
27 
28  signals:
29  void ReplyLog(const QString& type,
30  const QString& cmd,
31  const QString& text);
32 
33 private:
34  void ReplyCallback(const std::error_code& errCode, modif::RepHwEnable rep);
35 
36 
37 private:
38  boost::asio::io_service mIOS;
39 };
40 
41 #endif // SETUP_OBJECT_H
42 
43 
44 
bool SendSynch(const std::string endpoint, modif::ReqHwEnable req, const long replyTimeout)
Definition: requestHwEnableHandler.cpp:21
Definition: requests.pb.h:6543
Definition: requests.pb.h:6645
void ReplyLog(const QString &type, const QString &cmd, const QString &text)
virtual ~RequestHwEnableHandler()
Definition: requestHwEnableHandler.cpp:16
Definition: requestHwEnableHandler.h:15
RequestHwEnableHandler()
Definition: requestHwEnableHandler.cpp:12
optional int32 error_code
Definition: topics.proto:14