24 lines
457 B
C++
24 lines
457 B
C++
#pragma once
|
|
|
|
#include <QObject>
|
|
#include <includes.h>
|
|
#include <httpflow.h>
|
|
|
|
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);
|
|
};
|