#ifndef TCPSERVER_H #define TCPSERVER_H #include "TcpController.h" #include class TcpServer : public QTcpServer { Q_OBJECT public: TcpServer(QObject* parent = nullptr); private slots: void onReadyRead(); void onNewConnect(); private: TcpController* controller; QList clients; }; #endif // TCPSERVER_H