-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathlesson.h
More file actions
99 lines (94 loc) · 1.77 KB
/
lesson.h
File metadata and controls
99 lines (94 loc) · 1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#ifndef LESSON_H
#define LESSON_H
#include<QString>
#include<QVector>
/**
* @brief The Lesson_time struct
* 课程时间结构体
*/
struct Lesson_time{
QVector<int> weekDay;
QVector<int> begin;
QVector<int> end;
};
/**
* @brief The Lesson class
* 课程类:每个课程存放于一个课程类中
*/
class Lesson
{
private:
/**
* @brief key
* 课程编号
*/
QString key;
/**
* @brief name
* 课程名称
*/
QString name;
/**
* @brief type
* 课程类型(性质)
*/
QString type;
/**
* @brief department
* 开课院系
*/
QString department;
/**
* @brief credit
* 课程学分
*/
int credit;
/**
* @brief class_hours
* 课程学时
*/
int class_hours;
/**
* @brief campus
* 校区
*/
QString campus;
/**
* @brief teacher
* 教师
*/
QString teacher;
/**
* @brief time_location
* 上课时间及地点
*/
QString time_location;
/**
* @brief info
* 详细信息(html)
*/
QString info;
public:
Lesson();
void setKey(QString key);
void setName(QString name);
void setType(QString type);
void setDepartment(QString department);
void setCredit(int credit);
void setClass_hours(int class_hours);
void setCampus(QString campus);
void setTeacher(QString teacher);
void setTime_location(QString time_location);
void setInfo(QString info);
QString getKey();
QString getName();
QString getType();
QString getDepartment();
int getCredit();
int getClass_hours();
QString getCampus();
QString getTeacher();
QString getTime_location();
QString getInfo();
};
#endif // LESSON_H