#include <conexus-gtkmm/hostentry.h>
Public Member Functions | |
HostEntry (unsigned validate=IPV4|IPV6) | |
HostEntry (Conexus::IPv4::Address &address, unsigned validate=IPV4) | |
HostEntry (Conexus::IPv6::Address &address, unsigned validate=IPV6) | |
~HostEntry () | |
void | set_hostname (std::string s) |
::Gtk::ComboBoxEntryText & | get_hostname_box () |
::Gtk::Image & | get_good_hostname_image () |
::Gtk::Image & | get_bad_hostname_image () |
std::string | get_hostname () |
sigc::signal< void, bool > | signal_host_changed () |
bool | get_show_hostname_label () |
bool | get_show_address_label () |
bool | get_show_host_image () |
void | set_show_hostname_label (bool show=true) |
void | set_show_address_label (bool show=true) |
void | set_show_host_image (bool show=true) |
Protected Member Functions | |
virtual void | on_hostname_changed () |
virtual void | on_connect (Conexus::IPv4::Address &address) |
virtual void | on_connect (Conexus::IPv6::Address &address) |
virtual void | on_validate_type_changed () |
Protected Attributes | |
bool | m_change_lock |
std::set< std::string > | m_host_names |
sigc::connection | m_address_connection |
::Gtk::Label | m_hostname_label |
::Gtk::Label | m_address_label |
::Gtk::ComboBoxEntryText | m_host |
::Gtk::EventBox | m_image_holder |
::Gtk::Image | m_good_host_image |
::Gtk::Image | m_bad_host_image |
sigc::signal< void, bool > | m_signal_host_changed |
Private Member Functions | |
void | setup_widget () |
..
Conexus::Gtk::HostEntry::HostEntry | ( | unsigned | validate = IPV4|IPV6 |
) |
References setup_widget().
Conexus::Gtk::HostEntry::HostEntry | ( | Conexus::IPv4::Address & | address, | |
unsigned | validate = IPV4 | |||
) |
References Conexus::Gtk::AddressContainer::connect(), and setup_widget().
Conexus::Gtk::HostEntry::HostEntry | ( | Conexus::IPv6::Address & | address, | |
unsigned | validate = IPV6 | |||
) |
References Conexus::Gtk::AddressContainer::connect(), and setup_widget().
Conexus::Gtk::HostEntry::~HostEntry | ( | ) |
Gtk::Image & Conexus::Gtk::HostEntry::get_bad_hostname_image | ( | ) |
References m_bad_host_image.
Gtk::Image & Conexus::Gtk::HostEntry::get_good_hostname_image | ( | ) |
References m_good_host_image.
std::string Conexus::Gtk::HostEntry::get_hostname | ( | ) |
References m_host.
Referenced by Conexus::Gtk::HostPortEntry::hostname(), on_connect(), and on_hostname_changed().
Gtk::ComboBoxEntryText & Conexus::Gtk::HostEntry::get_hostname_box | ( | ) |
References m_host.
bool Conexus::Gtk::HostEntry::get_show_address_label | ( | ) |
References m_address_label.
bool Conexus::Gtk::HostEntry::get_show_host_image | ( | ) |
References m_image_holder.
bool Conexus::Gtk::HostEntry::get_show_hostname_label | ( | ) |
References m_hostname_label.
void Conexus::Gtk::HostEntry::on_connect | ( | Conexus::IPv6::Address & | address | ) | [protected, virtual] |
void Conexus::Gtk::HostEntry::on_connect | ( | Conexus::IPv4::Address & | address | ) | [protected, virtual] |
void Conexus::Gtk::HostEntry::on_hostname_changed | ( | ) | [protected, virtual] |
References get_hostname(), Conexus::Gtk::AddressContainer::IPV4, Conexus::Gtk::AddressContainer::IPV6, m_address_label, m_bad_host_image, m_good_host_image, m_host, m_host_names, m_hostname_label, m_image_holder, Conexus::Gtk::AddressContainer::m_ipv4_address, Conexus::Gtk::AddressContainer::m_ipv6_address, m_signal_host_changed, and Conexus::Gtk::AddressContainer::m_validate_type.
Referenced by on_validate_type_changed(), and setup_widget().
void Conexus::Gtk::HostEntry::on_validate_type_changed | ( | ) | [protected, virtual] |
void Conexus::Gtk::HostEntry::set_hostname | ( | std::string | s | ) |
void Conexus::Gtk::HostEntry::set_show_address_label | ( | bool | show = true |
) |
References m_address_label.
void Conexus::Gtk::HostEntry::set_show_host_image | ( | bool | show = true |
) |
References m_image_holder.
void Conexus::Gtk::HostEntry::set_show_hostname_label | ( | bool | show = true |
) |
References m_hostname_label.
void Conexus::Gtk::HostEntry::setup_widget | ( | ) | [private] |
References m_address_label, m_bad_host_image, m_good_host_image, m_host, m_hostname_label, m_image_holder, and on_hostname_changed().
Referenced by HostEntry().
sigc::signal< void, bool > Conexus::Gtk::HostEntry::signal_host_changed | ( | ) |
sigc::connection Conexus::Gtk::HostEntry::m_address_connection [protected] |
::Gtk::Label Conexus::Gtk::HostEntry::m_address_label [protected] |
Referenced by get_show_address_label(), on_hostname_changed(), set_show_address_label(), and setup_widget().
::Gtk::Image Conexus::Gtk::HostEntry::m_bad_host_image [protected] |
Referenced by get_bad_hostname_image(), on_hostname_changed(), and setup_widget().
bool Conexus::Gtk::HostEntry::m_change_lock [protected] |
::Gtk::Image Conexus::Gtk::HostEntry::m_good_host_image [protected] |
Referenced by get_good_hostname_image(), on_hostname_changed(), and setup_widget().
::Gtk::ComboBoxEntryText Conexus::Gtk::HostEntry::m_host [protected] |
Referenced by get_hostname(), get_hostname_box(), on_hostname_changed(), set_hostname(), and setup_widget().
std::set<std::string> Conexus::Gtk::HostEntry::m_host_names [protected] |
Referenced by on_hostname_changed(), and set_hostname().
::Gtk::Label Conexus::Gtk::HostEntry::m_hostname_label [protected] |
Referenced by get_show_hostname_label(), on_hostname_changed(), set_show_hostname_label(), and setup_widget().
::Gtk::EventBox Conexus::Gtk::HostEntry::m_image_holder [protected] |
Referenced by get_show_host_image(), on_hostname_changed(), set_show_host_image(), and setup_widget().
sigc::signal<void, bool> Conexus::Gtk::HostEntry::m_signal_host_changed [protected] |
Referenced by on_hostname_changed(), and signal_host_changed().