You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
651 B
C
36 lines
651 B
C
7 months ago
|
#ifndef NETWORKDETECTION_H
|
||
|
#define NETWORKDETECTION_H
|
||
|
|
||
|
#include <QDebug>
|
||
|
#include <QObject>
|
||
|
#include <QProcess>
|
||
|
#include <QThread>
|
||
|
// #include <synchapi.h>
|
||
|
|
||
|
class networkDetection : public QObject {
|
||
|
Q_OBJECT
|
||
|
public:
|
||
|
networkDetection(QObject *parent = nullptr);
|
||
|
~networkDetection();
|
||
|
|
||
|
public slots:
|
||
|
void dowork(int, QStringList);
|
||
|
void stop();
|
||
|
signals:
|
||
|
void resultReady(int, QString);
|
||
|
|
||
|
public:
|
||
|
void DyChangeCmdList(QStringList);
|
||
|
|
||
|
private:
|
||
|
int m_id;
|
||
|
QStringList m_cmd;
|
||
|
|
||
|
public:
|
||
|
bool flagRun; // 运行标志
|
||
|
bool CmdListChanged; // 指令列表改变标志
|
||
|
QProcess *m_process; // 执行CMD
|
||
|
};
|
||
|
|
||
|
#endif // NETWORKDETECTION_H
|