#ifndef TCPSERVER1_H #define TCPSERVER1_H #include #include #include #include #include #include #include #include #include #include #include #include #include #include class TcpServer1 : public QObject { Q_OBJECT public: explicit TcpServer1(QObject *parent = nullptr); void start(); void app_info(QString url,QString key,QString signature); 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; QString url, key, signature; }; #endif // TCPSERVER1_H