Files
MiniChat/Client.hpp
bettercallous bb721c9b2a optimizing code
2024-04-27 14:53:25 +01:00

36 lines
851 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;
bool _isRegistered;
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);
};
#endif