#include <dataprogresswatcher.h>
Public Member Functions | |
DataProgressWatcher () | |
virtual | ~DataProgressWatcher () |
void | add_endpoint (Conexus::Endpoint::pointer endpoint, bool watch_read=true, bool watch_write=true) |
void | remove_endpoint (Conexus::Endpoint::pointer endpoint) |
Protected Types | |
typedef std::set < Conexus::Endpoint::pointer > | Endpoints |
typedef std::map < Conexus::Endpoint::pointer, sigc::connection > | ConnectionMap |
Protected Member Functions | |
virtual void | on_read_data (size_t n)=0 |
virtual void | on_write_data (size_t n)=0 |
Protected Attributes | |
unsigned | m_data_count |
Endpoints | m_endpoints |
ConnectionMap | m_read_connections |
ConnectionMap | m_write_connections |
Private Member Functions | |
virtual void | on_read_data_proxy (size_t n) |
virtual void | on_write_data_proxy (size_t n) |
typedef std::map<Conexus::Endpoint::pointer, sigc::connection> Conexus::Gtk::DataProgressWatcher::ConnectionMap [protected] |
typedef std::set<Conexus::Endpoint::pointer> Conexus::Gtk::DataProgressWatcher::Endpoints [protected] |
Conexus::Gtk::DataProgressWatcher::DataProgressWatcher | ( | ) |
Conexus::Gtk::DataProgressWatcher::~DataProgressWatcher | ( | ) | [virtual] |
void Conexus::Gtk::DataProgressWatcher::add_endpoint | ( | Conexus::Endpoint::pointer | endpoint, | |
bool | watch_read = true , |
|||
bool | watch_write = true | |||
) |
virtual void Conexus::Gtk::DataProgressWatcher::on_read_data | ( | size_t | n | ) | [protected, pure virtual] |
Implemented in Conexus::Gtk::ProgressBar, and Conexus::Gtk::Spinner.
Referenced by on_read_data_proxy().
void Conexus::Gtk::DataProgressWatcher::on_read_data_proxy | ( | size_t | n | ) | [private, virtual] |
virtual void Conexus::Gtk::DataProgressWatcher::on_write_data | ( | size_t | n | ) | [protected, pure virtual] |
Implemented in Conexus::Gtk::ProgressBar, and Conexus::Gtk::Spinner.
Referenced by on_write_data_proxy().
void Conexus::Gtk::DataProgressWatcher::on_write_data_proxy | ( | size_t | n | ) | [private, virtual] |
void Conexus::Gtk::DataProgressWatcher::remove_endpoint | ( | Conexus::Endpoint::pointer | endpoint | ) |
unsigned Conexus::Gtk::DataProgressWatcher::m_data_count [protected] |
Referenced by add_endpoint(), and remove_endpoint().
Referenced by add_endpoint(), and remove_endpoint().
Referenced by add_endpoint(), and remove_endpoint().