diff options
Diffstat (limited to 'src/chat-server/chatchannel.hpp')
-rw-r--r-- | src/chat-server/chatchannel.hpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/chat-server/chatchannel.hpp b/src/chat-server/chatchannel.hpp index 0fd6d4b..268f135 100644 --- a/src/chat-server/chatchannel.hpp +++ b/src/chat-server/chatchannel.hpp @@ -36,7 +36,8 @@ class ChatChannel { */ ChatChannel(const std::string &channelName, const std::string &channelAnnouncement, - const std::string &channelPassword); + const std::string &channelPassword, + bool channelPrivacy); /** * Destructor @@ -59,6 +60,11 @@ class ChatChannel { const std::string& getPassword() const; /** + * Get the password of the channel + */ + bool getPrivacy() const; + + /** * Set the name of the channel */ void setName(const std::string &channelName); @@ -114,6 +120,11 @@ class ChatChannel { */ ChannelUsers mRegisteredUsers; + /** + * Whether the channel is private + */ + bool mChannelPrivate; + }; #endif |