#ifndef SERVER_H #define SERVER_H #include #include #include #include #include #include #include class Server : public QObject { Q_OBJECT public: explicit Server(QObject *parent = nullptr); ~Server(); public slots: void start(QString host, int port); private slots: void newClient(); void leftClient(); void messageFromClient(); signals: private: QTcpServer *m_server = nullptr; QVector m_clients; bool isInfoGot = false; QString fileName; int fileSize; signals: }; #endif // SERVER_H