-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPassword.cpp
52 lines (40 loc) · 948 Bytes
/
Password.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
#include "Password.hpp"
using namespace std;
Password::Password(string newType, string newService, string newUsername, string newPassword, string newNote) {
// type not currently exposed
type = newType;
service = newService;
username = newUsername;
password = newPassword;
note = newNote;
}
string Password::getType() {
return type;
}
string Password::getService() {
return service;
}
string Password::getUsername() {
return username;
}
string Password::getPassword() {
return password;
}
string Password::getNote() {
return note;
}
void Password::setType(string newType) {
type = newType;
}
void Password::setService(string newService) {
service = newService;
}
void Password::setUsername(string newUsername) {
password = newUsername;
}
void Password::setPassword(string newPassword) {
password = newPassword;
}
void Password::setNote(string newNote) {
note = newNote;
}