Fixing merge issues.
This commit is contained in:
parent
2ef0ca32fc
commit
f125b6b708
2 changed files with 0 additions and 84 deletions
37
User.cpp
37
User.cpp
|
@ -1,37 +0,0 @@
|
|||
#include <iostream>
|
||||
#include <vector>
|
||||
#include "user.h"
|
||||
|
||||
User::User(){
|
||||
name = "";
|
||||
password = "";
|
||||
phone_number = "";
|
||||
fax_number = "";
|
||||
postal_address = "";
|
||||
is_admin = false;
|
||||
}
|
||||
|
||||
User::User(string n, string pass, string phone, string fax, string postal, bool admin){
|
||||
name = n;
|
||||
password = pass;
|
||||
phone_number = phone;
|
||||
fax_number = fax;
|
||||
postal_address = postal;
|
||||
is_admin = admin;
|
||||
}
|
||||
|
||||
string User::getName() {return name;}
|
||||
string User::getPassword() {return password;}
|
||||
string User::getPhoneNumber() {return phone_number;}
|
||||
string User::getFaxNumber() {return fax_number;}
|
||||
string User::getPostalAddress() {return postal_address;}
|
||||
bool User::confirmAdmin() {return is_admin;}
|
||||
bool User::checkLogin() {return is_logged_in;}
|
||||
vector<string> User::getGroups(){return groups;}
|
||||
vector<string> User::getMessages(){return messages;}
|
||||
|
||||
void User::setName(string new_name) {name = new_name;}
|
||||
void User::setPassword(string new_password) {password = new_password;}
|
||||
void User::setPhone(string new_phone) {phone_number = new_phone;}
|
||||
void User::setFax(string new_fax) {fax_number = new_fax;}
|
||||
void User::setPostal(string new_postal) {postal_address = new_postal;}
|
47
User.h
47
User.h
|
@ -1,47 +0,0 @@
|
|||
#include <fstream>
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
|
||||
class User {
|
||||
string name;
|
||||
string password;
|
||||
string phone_number;
|
||||
string fax_number;
|
||||
string postal_address;
|
||||
vector<string> groups;
|
||||
vector<string> messages;
|
||||
|
||||
bool is_admin;
|
||||
bool is_logged_in;
|
||||
|
||||
public:
|
||||
User();
|
||||
User(string n, string pass, string phone, string fax, string postal, bool admin);
|
||||
string getName();
|
||||
string getPassword();
|
||||
string getPhoneNumber();
|
||||
string getFaxNumber();
|
||||
string getPostalAddress();
|
||||
vector<string> getGroups();
|
||||
vector<string> getMessages();
|
||||
bool confirmAdmin();
|
||||
bool checkLogin();
|
||||
void setName(string new_name);
|
||||
void setPassword(string new_name);
|
||||
void setPhone(string new_phone);
|
||||
void setFax(string new_fax);
|
||||
void setPostal(string new_postal);
|
||||
};
|
||||
|
||||
class Message {
|
||||
string timestamp;
|
||||
string text;
|
||||
|
||||
public:
|
||||
Message();
|
||||
Message(string time, string t);
|
||||
};
|
||||
<<<<<<< HEAD
|
||||
|
||||
=======
|
||||
>>>>>>> a478d7914de8de7750d1c877475def9cfb3ac83b
|
Reference in a new issue