-
Notifications
You must be signed in to change notification settings - Fork 0
/
user.h
41 lines (35 loc) · 901 Bytes
/
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
#ifndef USER_H
#define USER_H
#define DIRECTORY_IP "ay7aga"
#define DIRECTORY_PORT 10
#include <string>
#include <vector>
using namespace std;
struct userInfo {
String username;
String password;
}
class User : public Peer
{
private:
userInfo myInfo;
vector <Image> myImages;
vector <Image> allImages;
int rpcId;
public:
User();
void updateStatus();
void login ();
void signup();
void logout();
//acting as a client
void Client_uploadImage(string imageName);
void Client_viewImage(string ownerUsername, string imageName);
void Client_requestImageAccess();
void getAllImages();
//acting as a server
virtual void Server_viewImage(Message * request);
virtual void Server_requestImageAccess();
~User();
};
#endif // USER_H