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.
PayloadAPP/Src/HomePage/networkDetection.h

37 lines
708 B
C

#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, QString);
public:
void DyChangeCmdList(QStringList);
private:
int m_id;
QStringList m_cmd;
public:
bool flagRun; // 运行标志
bool CmdListChanged; // 指令列表改变标志
QProcess *m_process; // 执行CMD
QString selectTTL(QString str);//查找延迟
};
#endif // NETWORKDETECTION_H