widget.h 964 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #ifndef WIDGET_H
  2. #define WIDGET_H
  3. #include <QWidget>
  4. #include "configure.h"
  5. QT_BEGIN_NAMESPACE
  6. namespace Ui { class Widget; }
  7. QT_END_NAMESPACE
  8. class Widget : public QWidget
  9. {
  10. Q_OBJECT
  11. public:
  12. Widget(QWidget *parent = nullptr);
  13. option conf;
  14. ~Widget();
  15. private:
  16. Ui::Widget *ui;
  17. unsigned int m_mode = 1;
  18. uint64_t speedRecord = 0;
  19. bool isStarted = false;
  20. QString numToReadableString(const quint64);
  21. public slots:
  22. void secondByteEdit(int);
  23. void ipv6_pat_mode();
  24. void high_mode();
  25. void ipv6_pat_high_mode();
  26. void ipv6_reg_mode();
  27. void ipv6_reg_high_mode();
  28. void mesh_pat_mode();
  29. void mesh_reg_mode();
  30. void altitude_status(bool);
  31. void string_status(bool);
  32. void action();
  33. void changeBanner();
  34. void setAddr(const QString address);
  35. void setLog(const QString, const quint64, const quint64, const quint64);
  36. };
  37. #endif // WIDGET_H