b01d9fbda0
删除了一些不明所以的 Cplus 项目
32 lines
424 B
C++
32 lines
424 B
C++
#ifndef THREAD_H
|
|
#define THREAD_H
|
|
|
|
#include <QObject>
|
|
#include <QThread>
|
|
#include <QTcpSocket>
|
|
|
|
class Thread : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit Thread(QTcpSocket *s);
|
|
|
|
void myTimeout();
|
|
|
|
void setFlag(bool flag);
|
|
|
|
signals:
|
|
void sendToWidget(QByteArray b);
|
|
void mySignal();
|
|
|
|
public slots:
|
|
|
|
void clientInfoSlots();
|
|
|
|
private:
|
|
QTcpSocket *socket;
|
|
bool isStop;
|
|
};
|
|
|
|
#endif // THREAD_H
|