-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPerson.h
84 lines (74 loc) · 2.01 KB
/
Person.h
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
#ifndef PERSON_H
#define PERSON_H
#pragma once
#include "QString"
class Person {
public:
Person(){}
Person(QString Name, QString User_name, QString Phone_number, QString Address, QString Password, QString Mail, bool Ban, int Type , int Moneybags=0)
{
name = Name;
user_name = User_name;
phone_number = Phone_number;
address = Address;
password = Password;
ban = Ban;
type = Type;
mail = Mail;
moneybags=Moneybags;
}
void set(QString Name, QString User_name, QString Phone_number, QString Address, QString Password, QString Mail, bool Ban, int Type ,int Moneybags=0)
{
name = Name;
user_name = User_name;
phone_number = Phone_number;
address = Address;
password = Password;
ban = Ban;
type = Type;
mail = Mail;
moneybags=Moneybags;
}
void set_password(QString Password) { password = Password;}
QString get_name() { return name;}
QString get_user_name() { return user_name;}
QString get_phone_number() { return phone_number;}
QString get_address() { return address;}
QString get_password() { return password;}
QString get_Mail() { return mail;}
bool get_ban() { return ban;}
int get_type() { return type;}
int get_moneybags(){return moneybags;}
void setMoneybags(int newMoneybags);
void setBan(bool newBan);
int getIndex_vector() const;
void setIndex_vector(int newIndex_vector);
private:
QString name;
QString user_name;
QString phone_number;
QString address;
QString password;
QString mail;
bool ban;
int type;
int moneybags{0};
int index_vector;
};
inline void Person::setMoneybags(int newMoneybags)
{
moneybags = newMoneybags;
}
inline void Person::setBan(bool newBan)
{
ban = newBan;
}
inline int Person::getIndex_vector() const
{
return index_vector;
}
inline void Person::setIndex_vector(int newIndex_vector)
{
index_vector = newIndex_vector;
}
#endif // PERSON_H