awBackground.h 1023 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #ifndef AWBACKGROUND_H
  2. #define AWBACKGROUND_H
  3. #include <QWidget>
  4. #include "awWaitExam.h"
  5. #include "answerWidget.h"
  6. #include "awExamScore.h"
  7. #include <QTimer>
  8. namespace Ui {
  9. class awBackground;
  10. }
  11. enum class AW_WIDGET_TYPE
  12. {
  13. awwt_waitExam = 1,
  14. awwt_answerWidget,
  15. awwt_examScore
  16. };
  17. class awBackground : public QWidget
  18. {
  19. Q_OBJECT
  20. signals:
  21. void showPracticeInfo();
  22. void closeWidget();
  23. void gobackLogin();
  24. void minisize();
  25. public:
  26. explicit awBackground(AW_WIDGET_TYPE wt, QWidget *parent = nullptr);
  27. ~awBackground();
  28. private slots:
  29. void onGetCourseInfo(CGetCourseInfo getCourseInfo);
  30. void on_btn_aw_close_clicked();
  31. void on_btn_aw_minisize_clicked();
  32. private:
  33. void initUI();
  34. void showExamAnswer();
  35. Ui::awBackground *ui;
  36. std::shared_ptr<QTimer> m_pServerTime;
  37. std::shared_ptr<awWaitExam> m_pWaitExam;
  38. std::shared_ptr<answerWidget> m_pAnswerWidget;
  39. std::shared_ptr<awExamScore> m_pExamScore;
  40. AW_WIDGET_TYPE m_wt;
  41. };
  42. #endif // AWBACKGROUND_H