123456789101112131415161718192021222324252627282930 |
- #ifndef MYTHREAD_H
- #define MYTHREAD_H
- #include <QThread>
- #include <QTcpSocket>
- #include <QDebug>
- class MyThread : public QThread
- {
- Q_OBJECT
- public:
- explicit MyThread(long iID, QObject *parent = 0);
- void run();
- signals:
- void error(QTcpSocket::SocketError socketerror);
- public slots:
- void readyRead();
- void disconnected();
- public slots:
- private:
- QTcpSocket *socket;
- int socketDescriptor;
- QString cmd_left,cmd_right,cmd_f5,cmd_esc;
- };
- #endif // MYTHREAD_H
|