2014-09-08 15:54:52 +00:00
|
|
|
#ifndef GRADE_PAGE_H
|
|
|
|
#define GRADE_PAGE_H
|
|
|
|
|
|
|
|
/* This Code Made By Sagi Dayan
|
|
|
|
* SagiDayan@gmail.com
|
|
|
|
*
|
2014-09-17 01:08:38 +00:00
|
|
|
* Changes has been made by Liran Ben Gida
|
2014-09-08 15:54:52 +00:00
|
|
|
* LiranBG@gmail.com
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "../page.h"
|
|
|
|
#include "../Grades/gradeCourse.h"
|
|
|
|
|
|
|
|
#include <list>
|
|
|
|
|
|
|
|
class GradePage : public Page
|
|
|
|
{
|
|
|
|
|
|
|
|
public:
|
2014-09-17 01:08:38 +00:00
|
|
|
GradePage(QString html);
|
2014-09-08 15:54:52 +00:00
|
|
|
~GradePage();
|
|
|
|
|
2014-09-17 01:08:38 +00:00
|
|
|
void removeCourse(QString courseSerialID);
|
2014-09-08 15:54:52 +00:00
|
|
|
double getAvg();
|
|
|
|
|
|
|
|
std::list<gradeCourse*>* getCourses() { return courses; }
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
2014-09-17 01:08:38 +00:00
|
|
|
void coursesListInit(QString &linesTokinzedString);
|
|
|
|
gradeCourse* lineToCourse(QString line);
|
2014-09-08 15:54:52 +00:00
|
|
|
|
2014-09-17 01:08:38 +00:00
|
|
|
bool isGradedYet(QString grade);
|
2014-09-08 15:54:52 +00:00
|
|
|
|
|
|
|
std::list<gradeCourse*>* courses;
|
2014-09-17 01:08:38 +00:00
|
|
|
QString tempHtml;
|
2014-09-08 15:54:52 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|