39 virtual std::size_t
total() {
return 0; }
40 virtual std::size_t
current() {
return 0; }
66 const std::string& title,
67 const std::string& subtitle);
83 virtual const std::string&
window_id()
const override;
Abstract base class for all modal dialogs.
A wrapper of either a wesnothd_connection or a network_asio::connection.
virtual std::size_t total()
virtual ~connection_data()
virtual bool finished()=0
virtual std::size_t current()
pump_monitor(connection_data *&connection)
utils::optional_reference< window > window_
connection_data *& connection_
Dialog that tracks network transmissions.
std::string subtitle_
The subtitle for the dialog.
network_transmission(connection_data &connection, const std::string &title, const std::string &subtitle)
gui2::dialogs::network_transmission::pump_monitor pump_monitor_
virtual void pre_show() override
Actions to be taken before showing the window.
virtual const std::string & window_id() const override
The ID of the window to build.
connection_data * connection_
virtual void post_show() override
Actions to be taken after the window has been shown.
A simple wrapper class for optional reference types.