forked from 3rd-year-CSE-20/SIS_GUI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
person.cpp
109 lines (87 loc) · 2.17 KB
/
person.cpp
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
100
101
102
103
104
105
106
107
108
109
#include "person.h"
#include <QString>
Person::Person()
{
this->id = 0;
this->is_saved = false;
this->first_name = QString("");
this->last_name = QString("");
this->gendre = QString("");
this->picture = QString("");
this->birth_date = QString("");
this->address = QString("");
this->college_id = QString("");
this->password = QString("");
}
Person::Person(QString first_name, QString last_name, QString gendre, QString picture, QString birth_date, QString address, QString college_id, QString password) {
this->id = 0;
this->is_saved = false;
this->first_name = first_name;
this->last_name = last_name;
this->gendre = gendre;
this->picture = picture;
this->birth_date = birth_date;
this->address = address;
this->college_id = college_id;
this->password = password;
}
void Person::setFirstName(QString first_name) {
this->first_name = first_name;
}
QString Person::getFirstName() {
return this->first_name;
}
void Person::setLastName(QString last_name) {
this->last_name = last_name;
}
QString Person::getLastName() {
return this->last_name;
}
void Person::setGendre(QString gendre) {
this->gendre = gendre;
}
QString Person::getGendre() {
return this->gendre;
}
void Person::setPicture(QString picture) {
this->picture = picture;
}
QString Person::getPicture() {
return this->picture;
}
void Person::setAddress(QString address) {
this->address = address;
}
QString Person::getAddress() {
return this->address;
}
void Person::setBirthDate(QString birth_date) {
this->birth_date = birth_date;
}
QString Person::getBirthDate() {
return this->birth_date;
}
void Person::setCollegeId(QString college_id){
this->college_id = college_id;
}
QString Person::getCollegeId(){
return this->college_id;
}
void Person::setPassword(QString password){
this->password = password;
}
QString Person::getPassword(){
return this->password;
}
void Person::setId(long long id) {
this->id = id;
}
long long Person::getId() {
return this->id;
}
void Person::setIsSaved(bool is_saved) {
this->is_saved = is_saved;
}
bool Person::isSaved() {
return this->is_saved;
}