myserver.h 346 B

123456789101112131415161718192021222324
  1. #ifndef MYSERVER_H
  2. #define MYSERVER_H
  3. #include <QTcpServer>
  4. #include <QDebug>
  5. #include "mythread.h"
  6. class MyServer : public QTcpServer
  7. {
  8. Q_OBJECT
  9. public:
  10. explicit MyServer(QObject *parent = 0);
  11. void StartServer();
  12. signals:
  13. public slots:
  14. protected:
  15. void incomingConnection(qintptr socketDescriptor);
  16. };
  17. #endif // MYSERVER_H