-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuser.h
76 lines (57 loc) · 1.34 KB
/
user.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
#ifndef USER_H
#define USER_H
#include <string>
#include "wall.h"
#include "DlinkedList.h"
#include <fstream>
using namespace std;
class User {
public:
User ();
User (string, string, string);
User (string, string);
User (string, string, string, string);
void editUserName(string);
void editName(string);
void editPassword(string);
// void removeWallPost(WallPost);
void editPhoneNumber(string);
void setId(int);
string displayInfo();
string getUsername();
string getName();
string getPassword();
string getPhoneNumber();
string getWall();
int getId();
void createWallPost(string);
private:
string username;
string name;
string password;
string phoneNumber;
Wall wall;
int id;
};
class UserNetwork {
public:
UserNetwork();
UserNetwork(User);
~UserNetwork();
// void validateUser();
void add(User);
void remove(int);
<<<<<<< HEAD
void writeNetwork(const char*);
void readNetwork(const char*);
=======
void writeNetwork(char *);
void readNetwork(const char *);
>>>>>>> de3fc3e3a48de67685e198316bcda09c92f5c1c5
User* login(string, string);
int validateUser(string);
string getUserList();
private:
DoublyLinkedList<User> userList;
};
#endif