The Battle for Wesnoth  1.17.0-dev
match_history.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2021 - 2021
3  Part of the Battle for Wesnoth Project https://www.wesnoth.org/
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY.
11 
12  See the COPYING file for more details.
13 */
14 
15 #pragma once
16 
18 
19 namespace mp { struct user_info; }
20 
22 
23 namespace gui2
24 {
25 class window;
26 
27 namespace dialogs
28 {
30 {
31 public:
33 
34  /**
35  * The display function.
36  *
37  * See @ref modal_dialog for more information.
38  */
40 
41 private:
42  virtual const std::string& window_id() const override;
43 
44  virtual void pre_show(window& window) override;
45 
46  void request_history(int offset);
47 
49 
51 };
52 
53 } // namespace dialogs
54 } // namespace gui2
wesnothd_connection & connection_
logger & info()
Definition: log.cpp:89
Generic file dialog.
Definition: field-fwd.hpp:23
Main entry points of multiplayer mode.
Definition: lobby_data.cpp:52
A class that represents a TCP/IP connection to the wesnothd server.
Various uncategorised dialogs.
This class represents the information a client has about another player.
Definition: lobby_data.hpp:105
Abstract base class for all modal dialogs.
base class of top level items, the only item which needs to store the final canvases to draw on...
Definition: window.hpp:65