#pragma once #include #include #include class NetworkThread : public QObject { Q_OBJECT private: zmq::context_t context; zmq::socket_t *socket; void connect(); void disconnect(); void reconnect(); public: explicit NetworkThread(QObject *parent = nullptr); public slots: void process(); signals: void finished(); void error(QString err); void httpMessage(http::Flow flow); };