documentation

This commit is contained in:
liranbg 2014-10-10 21:47:30 +03:00
parent 8d5385f99e
commit 96751b6945
7 changed files with 145 additions and 126 deletions

View file

@ -71,24 +71,24 @@ calendarExamCourse *calendarExam::lineToCourse(QString line)
return NULL; return NULL;
serial = templinearray[calendarExamCourse::ExamScheme::SERIAL].toInt(); serial = templinearray[calendarExamCourse::CourseScheme::SERIAL].toInt();
name = templinearray[calendarExamCourse::ExamScheme::NAME]; name = templinearray[calendarExamCourse::CourseScheme::NAME];
lecturer = templinearray[calendarExamCourse::ExamScheme::LECTURER]; lecturer = templinearray[calendarExamCourse::CourseScheme::LECTURER];
if (lecturer.isEmpty()) if (lecturer.isEmpty())
lecturer = LECTURER_DEFAULT_STRING; lecturer = LECTURER_DEFAULT_STRING;
field = templinearray[calendarExamCourse::ExamScheme::FIELD]; field = templinearray[calendarExamCourse::CourseScheme::FIELD];
type = templinearray[calendarExamCourse::ExamScheme::TYPE]; type = templinearray[calendarExamCourse::CourseScheme::TYPE];
firstDate = templinearray[calendarExamCourse::ExamScheme::FIRST_DATE]; firstDate = templinearray[calendarExamCourse::CourseScheme::FIRST_DATE];
if (firstDate.isEmpty()) if (firstDate.isEmpty())
return NULL; //can't set a default date to an exam. must be an error return NULL; //can't set a default date to an exam. must be an error
firstHourbegin = templinearray[calendarExamCourse::ExamScheme::FIRST_HOUR_BEGIN]; firstHourbegin = templinearray[calendarExamCourse::CourseScheme::FIRST_HOUR_BEGIN];
if (firstHourbegin.isEmpty()) if (firstHourbegin.isEmpty())
firstHourbegin = HOUR_DEFAULT_STRING; firstHourbegin = HOUR_DEFAULT_STRING;
secondDate = templinearray[calendarExamCourse::ExamScheme::SECOND_DATE]; secondDate = templinearray[calendarExamCourse::CourseScheme::SECOND_DATE];
if (secondDate.isEmpty()) if (secondDate.isEmpty())
{ {
secondDate = SECOND_DATE_DEFAULT_STRING; secondDate = SECOND_DATE_DEFAULT_STRING;
@ -96,7 +96,7 @@ calendarExamCourse *calendarExam::lineToCourse(QString line)
} }
else else
{ {
secondHourbegin = templinearray[calendarExamCourse::ExamScheme::SECOND_HOUR_BEGIN]; secondHourbegin = templinearray[calendarExamCourse::CourseScheme::SECOND_HOUR_BEGIN];
if (secondHourbegin.isEmpty()) if (secondHourbegin.isEmpty())
secondHourbegin = HOUR_DEFAULT_STRING; secondHourbegin = HOUR_DEFAULT_STRING;
} }

View file

@ -17,7 +17,7 @@
* @brief The calendarExamCourse class * @brief The calendarExamCourse class
* *
* This class holds each exam course * This class holds each exam course
* the course scheme can be found below, inside the enum ExamScheme * the course scheme can be found below, inside the enum CourseScheme
* *
* The class's constructor gets the data and manipulate it into an object * The class's constructor gets the data and manipulate it into an object
* with its relevant information. * with its relevant information.
@ -29,7 +29,7 @@ class calendarExamCourse : public Course
public: public:
enum ExamScheme enum CourseScheme
{ {
SERIAL, SERIAL,
NAME, NAME,

View file

@ -15,6 +15,7 @@ gradeCourse::~gradeCourse()
{ {
} }
double gradeCourse::getGrade() const double gradeCourse::getGrade() const
{ {
double noGrade = NO_GRADE_YET; double noGrade = NO_GRADE_YET;

View file

@ -1,18 +1,25 @@
#ifndef GRADE_COURSE_H #ifndef GRADE_COURSE_H
#define GRADE_COURSE_H #define GRADE_COURSE_H
/* This Code Made By Sagi Dayan
* SagiDayan@gmail.com
*
* Minor changes has been made by Liran Ben Gida
* LiranBG@gmail.com
*/
#include "../course.h" #include "../course.h"
#define COURSE_FIELDS 10 #define COURSE_FIELDS 10
#define NO_GRADE_YET 101; #define NO_GRADE_YET 101;
/**
* @brief The gradeCourse class
*
* This class holds a list of course in GPA
* the course scheme can be found below, inside the enum CourseScheme
*
* The class's constructor gets the data and manipulate it into an object
* with its relevant information.
*
* Made By:
* Sagi Dayan, SagiDayan@gmail.com
* Liran Ben Gida, LiranBG@gmail.com
* On 31/8/2014
*/
class gradeCourse : public Course { class gradeCourse : public Course {
public: public:

View file

@ -13,6 +13,17 @@
#include <QList> #include <QList>
/**
* @brief The GradePage class
*
* This class generating html string to a list of gradeCourse
* Each item in a list is a course with its information (grade, points, name, serial and etc)
*
* Made By:
* Sagi Dayan, SagiDayan@gmail.com
* Liran Ben Gida, LiranBG@gmail.com
* On 31/8/2014
*/
class GradePage : public Page class GradePage : public Page
{ {