#ifndef MYTHREAD_H #define MYTHREAD_H #include #include #include 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