this class memorizes a chat session. More...
#include <data.hpp>
Public Member Functions | |
chat_log () | |
void | add_message (const time_t ×tamp, const std::string &user, const std::string &message) |
void | add_message (const std::string &user, const std::string &message) |
const std::deque< chat_message > & | history () const |
void | clear () |
Private Attributes | |
std::deque< chat_message > | history_ |
void chat_log::add_message | ( | const time_t & | timestamp, |
const std::string & | user, | ||
const std::string & | message | ||
) |
Definition at line 53 of file data.cpp.
References chat_message(), and history_.
Referenced by gui2::tlobby_main::add_chat_room_message_sent(), add_message(), gui2::tlobby_main::add_whisper_received(), and gui2::tlobby_main::add_whisper_sent().
void chat_log::add_message | ( | const std::string & | user, |
const std::string & | message | ||
) |
Definition at line 61 of file data.cpp.
References add_message().
void chat_log::clear | ( | ) |
Definition at line 66 of file data.cpp.
References history_.
Referenced by gui2::tlobby_main::close_window().
|
inline |
|
private |
Definition at line 59 of file data.hpp.
Referenced by add_message(), clear(), and history().