-
Notifications
You must be signed in to change notification settings - Fork 0
/
User.hpp
48 lines (36 loc) · 891 Bytes
/
User.hpp
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
#pragma once
#include <string>
class User
{
private:
std::string _nick;
std::string _name;
std::string _fullName;
std::string _hostmask;
int _userFd;
bool _isRegistered;
bool _allowConnection;
bool _isDisconnected;
bool _isOper;
public:
User(int fd, std::string hostmask);
int getFD() const;
std::string getName() const;
void setName(std::string);
std::string getFull() const;
void setFull(std::string);
std::string getNick() const;
void setNick(std::string);
std::string _cmdAcc;
std::string getAcc();
void setAcc(std::string);
void appendAcc(std::string);
std::string getHostmask() const;
bool isDisconnected() const;
void setDisconnected();
void setOper(bool);
bool getAllowConnection() const;
void setAllowConnection();
bool isRegistered();
void registrate();
};