clOnlinePractice.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #ifndef CLONLINEPRACTICE_H
  2. #define CLONLINEPRACTICE_H
  3. #include <QWidget>
  4. #include "CHttpBll.h"
  5. #include "clopResultList.h"
  6. #include "clOperation.h"
  7. namespace Ui {
  8. class clOnlinePractice;
  9. }
  10. class clOnlinePractice : public QWidget
  11. {
  12. Q_OBJECT
  13. signals:
  14. void enterExam(CL_OPERATION_TYPE cot, __int64 nExamId, __int64 nExamStudentId,
  15. QString sCourseCode, QString sCourseName);
  16. public:
  17. explicit clOnlinePractice(QWidget *parent = nullptr);
  18. ~clOnlinePractice();
  19. void setUI(const int nWidth, const int nHeight);
  20. void releaseClopResult();
  21. void refreshExamInfo();
  22. private slots:
  23. void onQueryBatchList(CQueryBatchList queryBatchList);
  24. void onQueyPracticeCourseList(CQueryPracticeCourseList queryPracticeCourseList);
  25. void on_cbo_batch_currentIndexChanged(int index);
  26. private:
  27. void showEvent(QShowEvent *);
  28. void refreshExam();
  29. Ui::clOnlinePractice *ui;
  30. std::vector<CPracticeCourseInfo> m_vPracticeCourseInfo;
  31. std::shared_ptr<clopResultList> m_pResultList;
  32. __int64 m_nCurExamId;
  33. };
  34. #endif // CLONLINEPRACTICE_H