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

65 lines
1.4 KiB
C
Raw Normal View History

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
};
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;
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;
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);
QString courseToString();
2014-09-12 08:43:55 +00:00
private:
void setDayAndHour(QString parse);
2014-09-12 08:43:55 +00:00
QString lecturer;
2014-09-12 08:43:55 +00:00
double semesterHours;
int day;
int hourBegin;
int minutesBegin;
int hourEnd;
int minutesEnd;
QString room;
2014-09-12 08:43:55 +00:00
};
#endif // CALENDARCOURSE_H