#ifndef TCPCONTROLLER_H #define TCPCONTROLLER_H #include #include #include #include using Routes = QMap>; class TcpController : public QObject { Q_OBJECT public: TcpController(QObject* parent = nullptr); Routes getRoutes(); private: Routes routes; void setIpaddr(QTcpSocket* socket); void setVideoEnc(QTcpSocket* socket); void getFileList(QTcpSocket* socket); void downloadFile(QTcpSocket* socket); void deleteFile(QTcpSocket* socket); void playLive(QTcpSocket* socket); void playFile(QTcpSocket* socket); }; #endif // TCPCONTROLLER_H