bigsnitch/networkthread.h

23 lines
449 B
C
Raw Normal View History

2020-08-08 11:44:16 +00:00
#pragma once
#include <QObject>
2020-08-09 12:07:14 +00:00
#include <includes.h>
2020-08-09 12:38:41 +00:00
const std::string INIT_MSG_STR = R"({"msg": "init"})";
const std::string ACK_MSG_STR = R"({"msg": "ack"})";
2020-08-08 11:44:16 +00:00
class NetworkThread : public QObject
{
Q_OBJECT
2020-08-09 12:07:14 +00:00
private:
// add your variables here
2020-08-08 11:44:16 +00:00
public:
explicit NetworkThread(QObject *parent = nullptr);
public slots:
void process();
signals:
void finished();
void error(QString err);
2020-08-09 12:07:14 +00:00
void httpMessage(json data);
2020-08-08 11:44:16 +00:00
};