jce-manager/src/jceData/course.h

48 lines
980 B
C
Raw Normal View History

2014-09-08 15:54:52 +00:00
#ifndef COURSE_H
#define COURSE_H
/* This Code Made By Sagi Dayan
* SagiDayan@gmail.com
* & Liran Ben Gida
2014-09-08 15:54:52 +00:00
* LiranBG@gmail.com
*/
#include <QString>
2014-09-08 15:54:52 +00:00
#include <list>
class Course {
public:
Course(int serial,QString name, QString type, double points) {
2014-09-08 15:54:52 +00:00
this->serialNum = serial;
this->name = name;
this->type = type;
this->points = points;
}
virtual ~Course() { }
int getSerialNum() const {return this->serialNum;}
virtual QString getName() const {return this->name;}
virtual QString getType() const {return this->type;}
2014-09-08 15:54:52 +00:00
virtual double getPoints() const {return this->points;}
virtual void setName(QString name) { this->name = name;}
virtual void setType(QString type){ this->type = type;}
2014-09-08 15:54:52 +00:00
virtual void setPoints(double points){ this->points = points;}
private:
int serialNum;
QString name;
QString type;
2014-09-08 15:54:52 +00:00
double points;
};
#endif