50 virtual const std::string&
window_id()
const override;
A config object defines a single node in a WML file, with access to child nodes.
Abstract base class for all modal dialogs.
const config request_history()
Requests game history from the server based on the offset.
mp_match_history(const std::string &player_name, wesnothd_connection &connection, bool wait_for_response=true)
Creates a dialog to view a player's history 10 games at a time.
int offset_
The offset to start retrieving history data at - should be increments of 10.
virtual const std::string & window_id() const override
The ID of the window to build.
bool wait_for_response_
Whether to wait a few seconds for a response or not.
std::string player_name_
The username of the player whose history is being viewed.
void older_history_offset()
Decrements the offset to use for querying data by 10 and updates the information displayed by the dia...
void new_search()
Executes a new search for the entered username.
void tab_switch_callback()
Handles changing the selected horizontal listbox item for the specified game history row.
wesnothd_connection & connection_
A reference to the lobby's network connection to wesnothd.
void newer_history_offset()
Increments the offset to use for querying data by 10 and updates the information displayed by the dia...
bool update_display()
Updates the dialog with the information returned by the server.
static void display(const std::string &player_name, wesnothd_connection &connection, bool wait_for_response=true)
The display function.
virtual void pre_show() override
Actions to be taken before showing the window.
A class that represents a TCP/IP connection to the wesnothd server.
Various uncategorised dialogs.