2014-10-08 04:14:50 +00:00
|
|
|
#ifndef CALENDAREXAM_H
|
|
|
|
#define CALENDAREXAM_H
|
|
|
|
|
|
|
|
#include "../../page.h"
|
|
|
|
#include "calendarExamCourse.h"
|
|
|
|
|
|
|
|
#include <QString>
|
|
|
|
#include <QStringList>
|
|
|
|
#include <QList>
|
|
|
|
|
2014-10-10 18:33:08 +00:00
|
|
|
/**
|
|
|
|
* @brief The calendarExam class
|
|
|
|
*
|
|
|
|
* This class generating html string to a list of examcourses
|
|
|
|
* Each item in a list is a course with its information (hour, day, name, serial and etc)
|
|
|
|
*
|
|
|
|
* Made By liran ben gida, LiranBG@gmail.com On 08/10/2014
|
|
|
|
*/
|
2014-10-08 04:14:50 +00:00
|
|
|
class calendarExam : public Page
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
calendarExam();
|
|
|
|
void setPage(QString html);
|
|
|
|
|
2014-10-10 18:33:08 +00:00
|
|
|
QList<calendarExamCourse*> getExams() { return exams; }
|
2014-10-08 04:14:50 +00:00
|
|
|
int getExamsCounter() const;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
void examListInit(QString &linesTokinzedString);
|
|
|
|
calendarExamCourse * lineToCourse(QString line);
|
|
|
|
|
|
|
|
QString htmlDataHolderParsed;
|
2014-10-10 18:33:08 +00:00
|
|
|
QList<calendarExamCourse*> exams;
|
2014-10-08 04:14:50 +00:00
|
|
|
|
|
|
|
int examsCounter; //not including madei b
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CALENDAREXAM_H
|