#ifndef CLONLINEEXAM_H #define CLONLINEEXAM_H #include #include #include "clObjectiveScore.h" #include "CHttpBll.h" #include "clOperation.h" namespace Ui { class clOnlineExam; } class clOnlineExam : public QWidget { Q_OBJECT signals: void enterExam(CL_OPERATION_TYPE cot, __int64 nExamId, __int64 nExamStudentId, QString sCourseCode, QString sCourseName); public: explicit clOnlineExam(QWidget *parent = nullptr); ~clOnlineExam(); void setUI(const int nWidth, const int nHeight); void refreshExam(); private slots: void onQueryExamList(CQueryExamList queryExamList); void onQueryExamEndList(CQueryExamEndList queryExamEndList); private: void showEvent(QShowEvent *event); QString getWeekCycles(std::vector vWeek); Ui::clOnlineExam *ui; std::shared_ptr m_pObjectiveScoreTimer; std::shared_ptr m_pObjectiveScore; std::vector m_vOnlieExamList; std::vector m_vOnlieEndExamList; }; #endif // CLONLINEEXAM_H