Files
MiniChat/Client.hpp
2024-04-27 21:51:21 +01:00

39 lines
942 B
C++

#ifndef CLIENT_HPP
#define CLIENT_HPP
#include <iostream>
class Client {
private:
int _fd;
std::string pass;
std::string name;
std::string nick;
std::string user;
int _authentication;
public:
Client();
Client(int fd);
~Client();
int getFd() const;
std::string getPassowrd() const;
void setPassword(const std::string& password); // Function to set the password
// Getter and setter for name
std::string getName() const;
void setName(const std::string& newName);
// Getter and setter for nick
std::string getNick() const;
void setNick(const std::string& newNick);
// Getter and setter for user
std::string getUser() const;
void setUser(const std::string& newUser);
int getAuthentication() const;
void setAuthentication(int auth);
};
#endif