Classes | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes

gui2::tnetwork_transmission Class Reference

Dialog that tracks network transmissions. More...

#include <network_transmission.hpp>

Inheritance diagram for gui2::tnetwork_transmission:
Inheritance graph
[legend]
Collaboration diagram for gui2::tnetwork_transmission:
Collaboration graph
[legend]

List of all members.

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::connectionconnection_
gui2::tnetwork_transmission::pump_monitor pump_monitor
bool track_upload_
std::string subtitle_
 The subtitle for the dialog.

Detailed Description

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.


Constructor & Destructor Documentation

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().

Here is the call graph for this function:


Member Function Documentation

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_.

Here is the call graph for this function:

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_.

Here is the call graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

virtual const std::string& gui2::tnetwork_transmission::window_id (  )  const [private, virtual]

Inherited from tdialog, implemented by REGISTER_DIALOG.

Implements gui2::tdialog.


Member Data Documentation

Definition at line 36 of file network_transmission.hpp.

Referenced by post_show().

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().

Definition at line 71 of file network_transmission.hpp.

Referenced by set_track_upload().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Thu May 24 2012 01:22:36 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs