clOfflineExam.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #ifndef CLOFFLINEEXAM_H
  2. #define CLOFFLINEEXAM_H
  3. #include <QWidget>
  4. #include "CHttpBll.h"
  5. #include "cloeViewPaper.h"
  6. #include "cloeUploadFile.h"
  7. namespace Ui {
  8. class clOfflineExam;
  9. }
  10. class clOfflineExam : public QWidget
  11. {
  12. Q_OBJECT
  13. public:
  14. explicit clOfflineExam(QWidget *parent = nullptr);
  15. ~clOfflineExam();
  16. void setUI(const int nWidth, const int nHeight);
  17. private slots:
  18. void onGetOfflineCourse(CGetOfflineCourse getOfflineCourse);
  19. void onGetOffLineExamAnswerSheet(CGetOffLineExamAnswerSheet getOffLineExamAnswerSheet);
  20. void onStartOfflineExam(CStartOfflineExam startOfflineExam);
  21. void onGetOffLineExamPaper(CGetOffLineExamPaper getOffLineExamPaper);
  22. void onPreviewOffLineExamPaper(CPreviewOffLineExamPaper previewOffLineExamPaper);
  23. void onDownLoadFile(CDownLoadFileInfo downLoadFileInfo);
  24. void onGetExamProperty(CGetExamProperty getExamProperty);
  25. void on_btn_downloadAnswerSheet_clicked();
  26. private:
  27. void showEvent(QShowEvent *);
  28. void refreshCourse();
  29. Ui::clOfflineExam *ui;
  30. std::vector<COfflineCourseInfo> m_vOfflineCourseInfo;
  31. std::shared_ptr<cloeViewPaper> m_pViewPaper;
  32. std::shared_ptr<cloeUploadFile> m_pUploadFile;
  33. QString m_sAnswerSheetUrl;
  34. };
  35. #endif // CLOFFLINEEXAM_H