Horizon Official Technical Documentation
Horizon::Zone::UI::Chatroom Class Reference

#include <UserInterface.hpp>

Public Member Functions

 Chatroom (std::shared_ptr< ZoneSession > session)
 Chatroom. More...
 
 ~Chatroom ()
 
std::shared_ptr< ZoneSessionget_session ()
 
void create_chatroom (int limit, int _public, std::string password, std::string title)
 
void role_change (int role, std::string name)
 
void add_member (int chat_id, std::string password)
 
void expel_member (std::string name)
 
void leave ()
 
void change_properties (int limit, int type, std::string password, std::string title)
 

Private Attributes

std::weak_ptr< ZoneSession_session
 

Constructor & Destructor Documentation

◆ Chatroom()

Horizon::Zone::UI::Chatroom::Chatroom ( std::shared_ptr< ZoneSession session)

Chatroom.

99: _session(session)
100{
101
102}
std::weak_ptr< ZoneSession > _session
Definition: UserInterface.hpp:80

◆ ~Chatroom()

Horizon::Zone::UI::Chatroom::~Chatroom ( )
105{
106
107}

Member Function Documentation

◆ add_member()

void Horizon::Zone::UI::Chatroom::add_member ( int  chat_id,
std::string  password 
)
120{
121
122}

◆ change_properties()

void Horizon::Zone::UI::Chatroom::change_properties ( int  limit,
int  type,
std::string  password,
std::string  title 
)
135{
136
137}

◆ create_chatroom()

void Horizon::Zone::UI::Chatroom::create_chatroom ( int  limit,
int  _public,
std::string  password,
std::string  title 
)
110{
111
112}

◆ expel_member()

void Horizon::Zone::UI::Chatroom::expel_member ( std::string  name)
125{
126
127}

◆ get_session()

std::shared_ptr< ZoneSession > Horizon::Zone::UI::Chatroom::get_session ( )
inline
70{ return _session.lock(); }

References _session.

◆ leave()

void Horizon::Zone::UI::Chatroom::leave ( )
130{
131
132}

◆ role_change()

void Horizon::Zone::UI::Chatroom::role_change ( int  role,
std::string  name 
)
115{
116
117}

Member Data Documentation

◆ _session

std::weak_ptr<ZoneSession> Horizon::Zone::UI::Chatroom::_session
private

Referenced by get_session().


The documentation for this class was generated from the following files: