jce-manager/src/jceData/Calendar/calendarPage.h

35 lines
674 B
C
Raw Normal View History

2014-09-12 08:43:55 +00:00
#ifndef CALENDARPAGE_H
#define CALENDARPAGE_H
#include "../page.h"
#include "calendarCourse.h"
#include <list>
#define ROOM_DEFAULT_STRING "nullRoom"
#define LECTURER_DEFAULT_STRING "nullLecturer"
2014-09-12 08:43:55 +00:00
class CalendarPage : public Page
{
public:
QString htmlToString();
2014-09-12 08:43:55 +00:00
std::list<calendarCourse*>* getCourses() { return courses; }
protected:
virtual void setPage(QString html);
CalendarPage() { courses = NULL; }
2014-09-12 08:43:55 +00:00
private:
void calendarListInit(QString &linesTokinzedString);
calendarCourse* lineToCourse(QString line);
2014-09-12 08:43:55 +00:00
QString tempHtml;
2014-09-12 08:43:55 +00:00
std::list<calendarCourse*>* courses;
};
#endif // CALENDARPAGE_H