123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- #ifndef WIDGET_H
- #define WIDGET_H
- #include "configure.h"
- #include <QWidget>
- #include <QThreadPool>
- QT_BEGIN_NAMESPACE
- namespace Ui { class Widget; }
- QT_END_NAMESPACE
- class Widget : public QWidget
- {
- Q_OBJECT
- public:
- Widget(QWidget *parent = nullptr);
- option conf;
- ~Widget();
- private:
- QString numToReadableString(const quint64);
- Ui::Widget *ui;
- unsigned int m_mode = 1;
- uint64_t m_speedRecord = 0;
- bool m_isStarted = false;
- QThreadPool* m_tpool = nullptr;
- public slots:
- void setAddr(const QString address);
- void setLog(const QString, const quint64, const quint64, const quint64);
- private slots:
- void secondByteEdit(int);
- void ipv6_pat_mode();
- void high_mode();
- void ipv6_pat_high_mode();
- void ipv6_reg_mode();
- void ipv6_reg_high_mode();
- void mesh_pat_mode();
- void mesh_reg_mode();
- void altitude_status(bool);
- void string_status(bool);
- void action();
- };
- #endif // WIDGET_H
|