Channel changes and init JOIN command
This commit is contained in:
@@ -15,17 +15,18 @@
|
||||
# define USER_HPP
|
||||
|
||||
# include <iostream>
|
||||
# include <sys/socket.h>
|
||||
|
||||
class User
|
||||
{
|
||||
private:
|
||||
int fd;
|
||||
std::string nick;
|
||||
std::string username;
|
||||
std::string realname;
|
||||
std::string buffer;
|
||||
bool authenticated;
|
||||
bool registered;
|
||||
int fd;
|
||||
std::string nick;
|
||||
std::string username;
|
||||
std::string realname;
|
||||
std::string buffer;
|
||||
bool authenticated;
|
||||
bool registered;
|
||||
|
||||
public:
|
||||
User();
|
||||
@@ -34,29 +35,29 @@ class User
|
||||
User& operator=(const User &other);
|
||||
~User();
|
||||
|
||||
void send(const std::string &msg);
|
||||
void send(const std::string &msg);
|
||||
|
||||
// Getters
|
||||
|
||||
int getFd() const;
|
||||
std::string getNick() const;
|
||||
std::string getUsername() const;
|
||||
std::string getRealname() const;
|
||||
std::string &getBuffer();
|
||||
bool isAuthenticated() const;
|
||||
bool isRegistered() const;
|
||||
int getFd() const;
|
||||
std::string getNick() const;
|
||||
std::string getUsername() const;
|
||||
std::string getRealname() const;
|
||||
std::string &getBuffer();
|
||||
bool isAuthenticated() const;
|
||||
bool isRegistered() const;
|
||||
|
||||
|
||||
// Setters
|
||||
|
||||
void setNick(std::string nick);
|
||||
void setUsername(std::string username);
|
||||
void setRealname(std::string realname);
|
||||
void appendBuffer(std::string buff);
|
||||
void clearBuffer();
|
||||
void setNick(std::string nick);
|
||||
void setUsername(std::string username);
|
||||
void setRealname(std::string realname);
|
||||
void appendBuffer(std::string buff);
|
||||
void clearBuffer();
|
||||
|
||||
void setAuthenticated(bool value);
|
||||
void setRegistered(bool value);
|
||||
void setAuthenticated(bool value);
|
||||
void setRegistered(bool value);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user