2014-09-08 15:54:52 +00:00
|
|
|
#ifndef COURSE_H
|
|
|
|
#define COURSE_H
|
|
|
|
|
|
|
|
/* This Code Made By Sagi Dayan
|
|
|
|
* SagiDayan@gmail.com
|
2014-09-26 20:00:40 +00:00
|
|
|
* & Liran Ben Gida
|
2014-09-08 15:54:52 +00:00
|
|
|
* LiranBG@gmail.com
|
|
|
|
*/
|
|
|
|
|
2014-09-17 01:08:38 +00:00
|
|
|
#include <QString>
|
2014-09-08 15:54:52 +00:00
|
|
|
#include <list>
|
|
|
|
|
2014-10-10 18:51:14 +00:00
|
|
|
/**
|
|
|
|
* @brief The Course class
|
|
|
|
*
|
|
|
|
* This class is a prototype of a basic course structure
|
|
|
|
*
|
|
|
|
* Made By:
|
|
|
|
* Sagi Dayan, SagiDayan@gmail.com
|
|
|
|
* Liran Ben Gida, LiranBG@gmail.com
|
|
|
|
* On 31/8/2014
|
|
|
|
*/
|
2014-09-08 15:54:52 +00:00
|
|
|
class Course {
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
2014-10-08 04:14:50 +00:00
|
|
|
Course(int serial,QString name, QString type) {
|
2014-09-08 15:54:52 +00:00
|
|
|
this->serialNum = serial;
|
|
|
|
this->name = name;
|
|
|
|
this->type = type;
|
|
|
|
}
|
|
|
|
virtual ~Course() { }
|
|
|
|
|
|
|
|
int getSerialNum() const {return this->serialNum;}
|
2014-09-17 01:08:38 +00:00
|
|
|
virtual QString getName() const {return this->name;}
|
|
|
|
virtual QString getType() const {return this->type;}
|
2014-09-08 15:54:52 +00:00
|
|
|
|
2014-09-17 01:08:38 +00:00
|
|
|
virtual void setName(QString name) { this->name = name;}
|
|
|
|
virtual void setType(QString type){ this->type = type;}
|
2014-09-08 15:54:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
int serialNum;
|
2014-09-17 01:08:38 +00:00
|
|
|
QString name;
|
|
|
|
QString type;
|
2014-09-08 15:54:52 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|