Public Types | Public Member Functions | Protected Member Functions | Private Attributes

events::chat_command_handler Class Reference

Inheritance diagram for events::chat_command_handler:
Inheritance graph
[legend]
Collaboration diagram for events::chat_command_handler:
Collaboration graph
[legend]

List of all members.

Public Types

typedef map_command_handler
< chat_command_handler
map

Public Member Functions

 chat_command_handler (chat_handler &chathandler, bool allies_only)

Protected Member Functions

void do_emote ()
void do_network_send ()
void do_network_send_req_arg ()
void do_room_query ()
void do_room_query_noarg ()
void do_gen_room_query ()
void do_whisper ()
void do_chanmsg ()
void do_log ()
void do_ignore ()
void do_friend ()
void do_remove ()
void do_display ()
void do_version ()
void do_register ()
 Ask the server to register the currently used nick.
void do_drop ()
 Ask the server do drop the currently used (and registered) nick.
void do_set ()
 Update details for the currently used username.
void do_info ()
 Request information about a user from the server.
void do_details ()
 Request a list of details that can be set for a username as these might vary depending on the configuration of the server.
std::string get_flags_description () const
std::string get_command_flags_description (const map_command_handler< chat_command_handler >::command &c) const
bool is_enabled (const map_command_handler< chat_command_handler >::command &c) const
void print (const std::string &title, const std::string &message)
void init_map ()

Private Attributes

chat_handlerchat_handler_
bool allies_only_

Detailed Description

Definition at line 2258 of file menu_events.cpp.


Member Typedef Documentation

Definition at line 2261 of file menu_events.cpp.


Constructor & Destructor Documentation

events::chat_command_handler::chat_command_handler ( chat_handler chathandler,
bool  allies_only 
) [inline]

Definition at line 2262 of file menu_events.cpp.


Member Function Documentation

void events::chat_command_handler::do_chanmsg (  )  [protected]
void events::chat_command_handler::do_details (  )  [protected]

Request a list of details that can be set for a username as these might vary depending on the configuration of the server.

Definition at line 3006 of file menu_events.cpp.

References config::add_child(), and network::send_data().

Referenced by init_map().

Here is the call graph for this function:

Here is the caller graph for this function:

void events::chat_command_handler::do_display (  )  [protected]

Definition at line 2916 of file menu_events.cpp.

References _, preferences::get_friends(), preferences::get_ignores(), utils::join(), and print().

Referenced by init_map().

Here is the call graph for this function:

Here is the caller graph for this function:

void events::chat_command_handler::do_drop (  )  [protected]

Ask the server do drop the currently used (and registered) nick.

Definition at line 2963 of file menu_events.cpp.

References _, config::add_child(), print(), and network::send_data().

Referenced by init_map().

Here is the call graph for this function:

Here is the caller graph for this function:

void events::chat_command_handler::do_emote (  )  [protected]

Definition at line 2800 of file menu_events.cpp.

References allies_only_, chat_handler_, events::map_command_handler< chat_command_handler >::get_data(), and events::chat_handler::send_chat_message().

Referenced by init_map().

Here is the call graph for this function:

Here is the caller graph for this function:

void events::chat_command_handler::do_friend (  )  [protected]
void events::chat_command_handler::do_gen_room_query (  )  [protected]
void events::chat_command_handler::do_ignore (  )  [protected]
void events::chat_command_handler::do_info (  )  [protected]
void events::chat_command_handler::do_log (  )  [protected]

Definition at line 2861 of file menu_events.cpp.

References events::chat_handler::change_logging(), chat_handler_, and events::map_command_handler< chat_command_handler >::get_data().

Referenced by init_map().

Here is the call graph for this function:

Here is the caller graph for this function:

void events::chat_command_handler::do_network_send (  )  [protected]

Definition at line 2805 of file menu_events.cpp.

References chat_handler_, events::map_command_handler< chat_command_handler >::get_cmd(), events::map_command_handler< chat_command_handler >::get_data(), and events::chat_handler::send_command().

Referenced by do_network_send_req_arg(), and init_map().

Here is the call graph for this function:

Here is the caller graph for this function:

void events::chat_command_handler::do_network_send_req_arg (  )  [protected]
void events::chat_command_handler::do_register (  )  [protected]
void events::chat_command_handler::do_remove (  )  [protected]

Definition at line 2904 of file menu_events.cpp.

References _, chat_handler_, events::map_command_handler< chat_command_handler >::get_arg(), print(), preferences::remove_friend(), preferences::remove_ignore(), events::chat_handler::user_relation_changed(), and VGETTEXT.

Referenced by init_map().

Here is the call graph for this function:

Here is the caller graph for this function:

void events::chat_command_handler::do_room_query (  )  [protected]
void events::chat_command_handler::do_room_query_noarg (  )  [protected]

Definition at line 2816 of file menu_events.cpp.

References config::add_child(), events::map_command_handler< chat_command_handler >::get_cmd(), and network::send_data().

Referenced by init_map().

Here is the call graph for this function:

Here is the caller graph for this function:

void events::chat_command_handler::do_set (  )  [protected]
void events::chat_command_handler::do_version (  )  [protected]

Definition at line 2934 of file menu_events.cpp.

References _, print(), and game_config::revision.

Referenced by init_map().

Here is the call graph for this function:

Here is the caller graph for this function:

void events::chat_command_handler::do_whisper (  )  [protected]
std::string events::chat_command_handler::get_command_flags_description ( const map_command_handler< chat_command_handler >::command &  c  )  const [inline, protected]

Definition at line 2305 of file menu_events.cpp.

References _.

std::string events::chat_command_handler::get_flags_description (  )  const [inline, protected, virtual]

Reimplemented from events::map_command_handler< chat_command_handler >.

Reimplemented in events::console_handler.

Definition at line 2301 of file menu_events.cpp.

References _.

void events::chat_command_handler::init_map (  )  [inline, protected, virtual]
bool events::chat_command_handler::is_enabled ( const map_command_handler< chat_command_handler >::command &  c  )  const [inline, protected]

Definition at line 2315 of file menu_events.cpp.

References preferences::is_authenticated().

Here is the call graph for this function:

void events::chat_command_handler::print ( const std::string &  title,
const std::string &  message 
) [inline, protected, virtual]

Implements events::map_command_handler< chat_command_handler >.

Reimplemented in events::console_handler.

Definition at line 2321 of file menu_events.cpp.

References events::chat_handler::add_chat_message(), and chat_handler_.

Referenced by do_display(), do_drop(), do_friend(), do_ignore(), do_info(), do_register(), do_remove(), do_set(), and do_version().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 2408 of file menu_events.cpp.

Referenced by do_emote().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Thu May 24 2012 01:20:16 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs