1234567891011121314151617181920212223242526272829303132333435 |
- #ifndef ETNETWORKTEST_H
- #define ETNETWORKTEST_H
- #include <QWidget>
- #include <thread>
- #include <mutex>
- namespace Ui {
- class etNetworkTest;
- }
- class etNetworkTest : public QWidget
- {
- Q_OBJECT
- signals:
- void checkInfo(QString speed, QString sTime);
- public:
- explicit etNetworkTest(QWidget *parent = nullptr);
- ~etNetworkTest();
- int setUI(const int nLeft, const int nTop, const int nWidth);
- int widgetHeight();
- int getCheckStatus();//0:false 1:true 2:未检测
- private:
- void threadProc();
- Ui::etNetworkTest *ui;
- std::thread m_thread;
- bool m_bIsRun;
- bool bSpeedPass;
- bool bDelayPass;
- };
- #endif // ETNETWORKTEST_H
|