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

35 lines
739 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>
//#include <string.h> //strlen and strtok to phrase the html file
//#include <ctype.h> //checks if character is numeric
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() { }
2014-09-12 08:43:55 +00:00
private:
QString tokenToLines(QString &textToParse);
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