#ifndef TCPSERVER_H #define TCPSERVER_H #include #include #include #include #include #include #include #include #include #include #include #include #include class TcpServer : public QObject { Q_OBJECT public: explicit TcpServer(QObject *parent = nullptr); void start(); signals: void tcp_log(QString log); public slots: void new_incomming(); void read_data(); void finishedSlot(QNetworkReply *reply); private: QTcpServer *svr; QTcpSocket *so; QNetworkAccessManager *networkManager; QSslConfiguration config; }; #endif // TCPSERVER_H