2014-09-12 08:43:55 +00:00
|
|
|
#ifndef CALENDARCOURSE_H
|
|
|
|
#define CALENDARCOURSE_H
|
|
|
|
|
|
|
|
#include "../course.h"
|
|
|
|
#include <QTime>
|
|
|
|
|
|
|
|
#define CALENDAR_COURSE_FIELDS 8
|
|
|
|
|
|
|
|
class calendarCourse : public Course
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
enum CourseScheme
|
|
|
|
{
|
|
|
|
SERIAL,
|
|
|
|
NAME,
|
|
|
|
TYPE,
|
|
|
|
LECTURER,
|
|
|
|
POINTS,
|
|
|
|
SEM_HOURS,
|
|
|
|
DAY_AND_HOURS,
|
|
|
|
ROOM
|
|
|
|
};
|
2014-09-17 01:08:38 +00:00
|
|
|
calendarCourse(int serial, QString name, QString type, QString lecturer,
|
|
|
|
double points, double semesterHours, QString dayAndHour, QString room);
|
2014-09-12 08:43:55 +00:00
|
|
|
~calendarCourse(){}
|
|
|
|
|
|
|
|
int getDay() const;
|
2014-09-17 01:08:38 +00:00
|
|
|
QString getLecturer() const;
|
|
|
|
QString getRoom() const;
|
2014-09-12 08:43:55 +00:00
|
|
|
double getSemesterHours() const;
|
|
|
|
int getHourBegin() const;
|
|
|
|
int getMinutesBegin() const;
|
|
|
|
int getHourEnd() const;
|
|
|
|
int getMinutesEnd() const;
|
|
|
|
|
2014-09-17 01:08:38 +00:00
|
|
|
void setDay(const QString &value);
|
|
|
|
void setLecturer(const QString &value);
|
|
|
|
void setRoom(const QString &value);
|
2014-09-12 08:43:55 +00:00
|
|
|
void setSemesterHours(double value);
|
|
|
|
void setHourBegin(int value);
|
|
|
|
void setMinutesBegin(int value);
|
|
|
|
void setHourEnd(int value);
|
|
|
|
void setMinutesEnd(int value);
|
|
|
|
|
2014-09-17 01:08:38 +00:00
|
|
|
QString courseToString();
|
2014-09-12 08:43:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
2014-09-17 02:47:12 +00:00
|
|
|
void setDayAndHour(QString parse);
|
2014-09-12 08:43:55 +00:00
|
|
|
|
2014-09-17 01:08:38 +00:00
|
|
|
QString lecturer;
|
2014-09-12 08:43:55 +00:00
|
|
|
double semesterHours;
|
|
|
|
int day;
|
|
|
|
int hourBegin;
|
|
|
|
int minutesBegin;
|
|
|
|
int hourEnd;
|
|
|
|
int minutesEnd;
|
2014-09-17 01:08:38 +00:00
|
|
|
QString room;
|
2014-09-12 08:43:55 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // CALENDARCOURSE_H
|