42 virtual std::size_t
total() {
return 0; }
43 virtual std::size_t
current() {
return 0; }
46 virtual void poll() = 0;
64 std::atomic_size_t completed_,
total_;
73 const std::string& title,
74 const std::string& subtitle);
90 virtual const std::string&
window_id()
const override;
virtual void post_show(window &window) override
Actions to be taken after the window has been shown.
connection_data * connection_
connection_data *& connection_
virtual ~connection_data()
virtual void pre_show(window &window) override
Actions to be taken before showing the window.
std::string subtitle_
The subtitle for the dialog.
gui2::dialogs::network_transmission::pump_monitor pump_monitor_
virtual std::size_t total()
virtual std::size_t current()
network_transmission(connection_data &connection, const std::string &title, const std::string &subtitle)
std::atomic_size_t total_
A wrapper of either a wesnothd_connection or a network_asio::connection.
virtual bool finished()=0
std::future< void > poller_
utils::optional_reference< window > window_
Abstract base class for all modal dialogs.
Dialog that tracks network transmissions.
base class of top level items, the only item which needs to store the final canvases to draw on...
virtual const std::string & window_id() const override
The id of the window to build.
A simple wrapper class for optional reference types.