The Battle for Wesnoth  1.13.10+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
mp::chat_session Class Reference

this class memorizes a chat session. More...

#include <lobby_data.hpp>

Public Member Functions

 chat_session ()
 
void add_message (const time_t &timestamp, 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_messagehistory_
 

Detailed Description

this class memorizes a chat session.

Definition at line 41 of file lobby_data.hpp.

Constructor & Destructor Documentation

mp::chat_session::chat_session ( )

Definition at line 57 of file lobby_data.cpp.

Member Function Documentation

void mp::chat_session::add_message ( const time_t &  timestamp,
const std::string &  user,
const std::string &  message 
)
void mp::chat_session::add_message ( const std::string &  user,
const std::string &  message 
)

Definition at line 69 of file lobby_data.cpp.

References add_message().

void mp::chat_session::clear ( )

Definition at line 74 of file lobby_data.cpp.

References history_.

Referenced by gui2::chatbox::close_window().

const std::deque<chat_message>& mp::chat_session::history ( ) const
inline

Definition at line 52 of file lobby_data.hpp.

References history_.

Member Data Documentation

std::deque<chat_message> mp::chat_session::history_
private

Definition at line 60 of file lobby_data.hpp.

Referenced by add_message(), clear(), and history().


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