This class represents the information a client has about a room. More...
#include <data.hpp>
Public Member Functions | |
room_info (const std::string &name) | |
const std::string & | name () const |
const std::set< std::string > & | members () const |
bool | is_member (const std::string &user) const |
void | add_member (const std::string &user) |
void | remove_member (const std::string &user) |
void | process_room_members (const config &data) |
const chat_log & | log () const |
chat_log & | log () |
Private Attributes | |
std::string | name_ |
std::set< std::string > | members_ |
chat_log | log_ |
This class represents the information a client has about a room.
|
explicit |
void room_info::add_member | ( | const std::string & | user | ) |
Definition at line 80 of file data.cpp.
References members_.
Referenced by gui2::tlobby_main::process_room_join().
bool room_info::is_member | ( | const std::string & | user | ) | const |
Definition at line 75 of file data.cpp.
References members_.
Referenced by user_info::update_state().
|
inline |
Definition at line 83 of file data.hpp.
References log_.
Referenced by gui2::tlobby_main::add_chat_room_message_sent().
|
inline |
|
inline |
Definition at line 90 of file data.cpp.
References config::child_range(), and members_.
Referenced by gui2::tlobby_main::process_room_join(), and gui2::tlobby_main::process_room_query_response().
void room_info::remove_member | ( | const std::string & | user | ) |
Definition at line 85 of file data.cpp.
References members_.
Referenced by gui2::tlobby_main::process_room_part().
|
private |
Definition at line 94 of file data.hpp.
Referenced by add_member(), is_member(), members(), process_room_members(), and remove_member().
|
private |