#ifndef TCPSERVER_H #define TCPSERVER_H #include "TcpConnectionHandler.h" #include "TcpRequestHandler.h" #include class TcpServer : public QTcpServer { Q_OBJECT public: TcpServer(QObject* parent = nullptr); ~TcpServer(); void listen(); void close(); private slots: void onNewConnect(); private: QList clients; TcpRequestHandler* handler; }; #endif // TCPSERVER_H