privacyWidget.h 699 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef PRIVACYWIDGET_H
  2. #define PRIVACYWIDGET_H
  3. #include <QWidget>
  4. #include <QTimer>
  5. #include "CHttpBll.h"
  6. namespace Ui {
  7. class privacyWidget;
  8. }
  9. class privacyWidget : public QWidget
  10. {
  11. Q_OBJECT
  12. public:
  13. explicit privacyWidget(QWidget *parent = nullptr);
  14. ~privacyWidget();
  15. signals:
  16. void agreement();
  17. void disAgreement();
  18. private slots:
  19. void on_btn_pw_agree_clicked();
  20. void on_btn_pw_disagree_clicked();
  21. void on_btn_pw_close_clicked();
  22. void onAgreement(CAgreement agreement);
  23. private:
  24. void initUI();
  25. void initAgreement(QString sContent);
  26. Ui::privacyWidget *ui;
  27. std::shared_ptr<QTimer> m_pTimer;
  28. int m_nStaySeconds;
  29. };
  30. #endif // PRIVACYWIDGET_H