awWaitExam.h 788 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef AWWAITEXAM_H
  2. #define AWWAITEXAM_H
  3. #include <QWidget>
  4. #include "CHttpBll.h"
  5. #include <QTimer>
  6. namespace Ui {
  7. class awWaitExam;
  8. }
  9. class awWaitExam : public QWidget
  10. {
  11. Q_OBJECT
  12. signals:
  13. void enterExam();
  14. void exitEaxm();
  15. public:
  16. explicit awWaitExam(QWidget *parent = nullptr);
  17. ~awWaitExam();
  18. void setUI(const int nLeft, const int nTop, const int nWidth, const int nHeight);
  19. private slots:
  20. void onStartExam(CStartExam startExam);
  21. void onGetExamProperty(CGetExamProperty getExamProperty);
  22. void onGetExamRecordPaperStruct(CGetExamRecordPaperStruct getExamRecordPaperStruct);
  23. void on_btn_we_startExam_clicked();
  24. private:
  25. Ui::awWaitExam *ui;
  26. std::shared_ptr<QTimer> m_pTimer;
  27. int nCountDownCount;
  28. bool bHasStruct;
  29. };
  30. #endif // AWWAITEXAM_H