Dialog that tracks network transmissions. More...
#include <network_transmission.hpp>


Classes | |
| class | pump_monitor |
Public Member Functions | |
| tnetwork_transmission (network_asio::connection &connection, const std::string &title, const std::string &subtitle) | |
| void | set_subtitle (const std::string &) |
| void | set_track_upload (bool track_upload) |
Protected Member Functions | |
| void | pre_show (CVideo &video, twindow &window) |
| Inherited from tdialog. | |
| void | post_show (twindow &window) |
| Inherited from tdialog. | |
Private Member Functions | |
| virtual const std::string & | window_id () const |
| Inherited from tdialog, implemented by REGISTER_DIALOG. | |
Private Attributes | |
| network_asio::connection & | connection_ |
| gui2::tnetwork_transmission::pump_monitor | pump_monitor |
| bool | track_upload_ |
| std::string | subtitle_ |
| The subtitle for the dialog. | |
Dialog that tracks network transmissions.
It shows upload/download progress and allows the user to cancel the transmission.
Definition at line 34 of file network_transmission.hpp.
| gui2::tnetwork_transmission::tnetwork_transmission | ( | network_asio::connection & | connection, | |
| const std::string & | title, | |||
| const std::string & | subtitle | |||
| ) |
Definition at line 66 of file network_transmission.cpp.
References gui2::tdialog::register_label().

| void gui2::tnetwork_transmission::post_show | ( | twindow & | window | ) | [protected, virtual] |
Inherited from tdialog.
Reimplemented from gui2::tdialog.
Definition at line 95 of file network_transmission.cpp.
References network_asio::connection::cancel(), and connection_.

| void gui2::tnetwork_transmission::pre_show | ( | CVideo & | video, | |
| twindow & | window | |||
| ) | [protected, virtual] |
Inherited from tdialog.
Reimplemented from gui2::tdialog.
Definition at line 82 of file network_transmission.cpp.
References gui2::tcontrol::set_label(), gui2::tcontrol::set_use_markup(), and subtitle_.

| void gui2::tnetwork_transmission::set_subtitle | ( | const std::string & | subtitle | ) |
Definition at line 77 of file network_transmission.cpp.
References subtitle_.
Referenced by addons_client::wait_for_transfer_done().

| void gui2::tnetwork_transmission::set_track_upload | ( | bool | track_upload | ) | [inline] |
Definition at line 61 of file network_transmission.hpp.
References track_upload_.
Referenced by addons_client::wait_for_transfer_done().

| virtual const std::string& gui2::tnetwork_transmission::window_id | ( | ) | const [private, virtual] |
Inherited from tdialog, implemented by REGISTER_DIALOG.
Implements gui2::tdialog.
Definition at line 36 of file network_transmission.hpp.
Referenced by post_show().
std::string gui2::tnetwork_transmission::subtitle_ [private] |
The subtitle for the dialog.
This field commenly shows the action in progress eg connecting, uploading, downloading etc..
Definition at line 78 of file network_transmission.hpp.
Referenced by pre_show(), and set_subtitle().
bool gui2::tnetwork_transmission::track_upload_ [private] |
Definition at line 71 of file network_transmission.hpp.
Referenced by set_track_upload().
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:22:36 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |