#include <hostentry.h>
Public Member Functions | |
HostEntry (unsigned lookup=LOOKUP_IPV4|LOOKUP_IPV6) | |
HostEntry (IPAddressInterface *addr, unsigned lookup=LOOKUP_IPV4|LOOKUP_IPV6) | |
HostEntry (IPAddressInterface::pointer addr, unsigned lookup=LOOKUP_IPV4|LOOKUP_IPV6) | |
HostEntry (IPv4::Address &address, unsigned lookup=LOOKUP_IPV4|LOOKUP_IPV6) | |
HostEntry (IPv6::Address &address, unsigned lookup=LOOKUP_IPV4|LOOKUP_IPV6) | |
~HostEntry () | |
IPAddressInterface * | address () |
void | set_address (IPAddressInterface *addr, unsigned lookup=LOOKUP_IPV4) |
void | set_address (IPAddressInterface::pointer addr, unsigned lookup=LOOKUP_IPV4) |
void | set_address (IPv4::Address &addr, unsigned lookup=LOOKUP_IPV4) |
void | set_address (IPv6::Address &addr, unsigned lookup=LOOKUP_IPV6) |
void | unset_address () |
::Gtk::ComboBoxEntryText & | host_widget () |
::Gtk::Image & | good_host_image () |
::Gtk::Image & | bad_host_image () |
std::string | host () |
void | set_host (const std::string &s) |
bool | is_hostname_label_visible () |
bool | is_host_label_visible () |
bool | is_host_image_visible () |
void | show_hostname_label (bool show=true) |
void | show_host_label (bool show=true) |
void | show_host_image (bool show=true) |
::Gtk::Button & | apply_button () |
bool | is_immediate_apply_enabled () |
void | enable_immediate_apply (bool enable=true) |
void | apply () |
Protected Member Functions | |
virtual void | on_controlled_host_changed () |
virtual void | on_host_widget_changed () |
Protected Attributes | |
IPAddressInterface * | m_address |
unsigned | m_lookup |
bool | m_immediate_apply |
sigc::connection | m_conn_address_host |
sigc::connection | m_host_widget_connection |
::Gtk::Label | m_hostname_label |
::Gtk::Label | m_host_label |
::Gtk::ComboBoxEntryText | m_host_widget |
::Gtk::EventBox | m_image_holder |
::Gtk::Image | m_good_host_image |
::Gtk::Image | m_bad_host_image |
::Gtk::Button | m_apply_button |
Private Member Functions | |
void | setup_widget () |
..
Conexus::Gtk::HostEntry::HostEntry | ( | unsigned | lookup = LOOKUP_IPV4|LOOKUP_IPV6 |
) |
References setup_widget().
Conexus::Gtk::HostEntry::HostEntry | ( | IPAddressInterface * | addr, | |
unsigned | lookup = LOOKUP_IPV4|LOOKUP_IPV6 | |||
) |
References setup_widget().
Conexus::Gtk::HostEntry::HostEntry | ( | IPAddressInterface::pointer | addr, | |
unsigned | lookup = LOOKUP_IPV4|LOOKUP_IPV6 | |||
) |
References setup_widget().
Conexus::Gtk::HostEntry::HostEntry | ( | IPv4::Address & | address, | |
unsigned | lookup = LOOKUP_IPV4|LOOKUP_IPV6 | |||
) |
References setup_widget().
Conexus::Gtk::HostEntry::HostEntry | ( | IPv6::Address & | address, | |
unsigned | lookup = LOOKUP_IPV4|LOOKUP_IPV6 | |||
) |
References setup_widget().
Conexus::Gtk::HostEntry::~HostEntry | ( | ) |
IPAddressInterface * Conexus::Gtk::HostEntry::address | ( | ) |
References m_address.
void Conexus::Gtk::HostEntry::apply | ( | ) |
References host(), Conexus::IPv6::host_to_hostname(), Conexus::IPv6::host_to_string(), Conexus::IPv6::hostname_to_host(), Conexus::IPv6::is_valid_hostname(), Conexus::IPv4::is_valid_hostname(), Conexus::Gtk::LOOKUP_IPV4, Conexus::Gtk::LOOKUP_IPV6, m_address, m_apply_button, m_bad_host_image, m_good_host_image, m_host_label, m_host_widget, m_host_widget_connection, m_hostname_label, m_image_holder, m_lookup, and Conexus::IPAddressInterface::set_host().
Referenced by enable_immediate_apply(), and on_host_widget_changed().
Gtk::Button & Conexus::Gtk::HostEntry::apply_button | ( | ) |
References m_apply_button.
Gtk::Image & Conexus::Gtk::HostEntry::bad_host_image | ( | ) |
References m_bad_host_image.
void Conexus::Gtk::HostEntry::enable_immediate_apply | ( | bool | enable = true |
) |
References apply(), m_apply_button, and m_immediate_apply.
Gtk::Image & Conexus::Gtk::HostEntry::good_host_image | ( | ) |
References m_good_host_image.
std::string Conexus::Gtk::HostEntry::host | ( | ) |
Gtk::ComboBoxEntryText & Conexus::Gtk::HostEntry::host_widget | ( | ) |
References m_host_widget.
bool Conexus::Gtk::HostEntry::is_host_image_visible | ( | ) |
References m_image_holder.
bool Conexus::Gtk::HostEntry::is_host_label_visible | ( | ) |
References m_host_label.
bool Conexus::Gtk::HostEntry::is_hostname_label_visible | ( | ) |
References m_hostname_label.
bool Conexus::Gtk::HostEntry::is_immediate_apply_enabled | ( | ) |
References m_immediate_apply.
void Conexus::Gtk::HostEntry::on_controlled_host_changed | ( | ) | [protected, virtual] |
Referenced by set_address().
void Conexus::Gtk::HostEntry::on_host_widget_changed | ( | ) | [protected, virtual] |
void Conexus::Gtk::HostEntry::set_address | ( | IPv6::Address & | addr, | |
unsigned | lookup = LOOKUP_IPV6 | |||
) |
References set_address().
void Conexus::Gtk::HostEntry::set_address | ( | IPv4::Address & | addr, | |
unsigned | lookup = LOOKUP_IPV4 | |||
) |
References set_address().
void Conexus::Gtk::HostEntry::set_address | ( | IPAddressInterface::pointer | addr, | |
unsigned | lookup = LOOKUP_IPV4 | |||
) |
References set_address().
void Conexus::Gtk::HostEntry::set_address | ( | IPAddressInterface * | addr, | |
unsigned | lookup = LOOKUP_IPV4 | |||
) |
References m_address, m_conn_address_host, m_lookup, on_controlled_host_changed(), and Conexus::IPAddressInterface::signal_host_changed().
Referenced by Conexus::Gtk::HostPortEntry::set_address(), and set_address().
void Conexus::Gtk::HostEntry::set_host | ( | const std::string & | s | ) |
void Conexus::Gtk::HostEntry::setup_widget | ( | ) | [private] |
References m_apply_button, m_bad_host_image, m_good_host_image, m_host_label, m_host_widget, m_host_widget_connection, m_hostname_label, m_image_holder, and on_host_widget_changed().
Referenced by HostEntry().
void Conexus::Gtk::HostEntry::show_host_image | ( | bool | show = true |
) |
References m_image_holder.
void Conexus::Gtk::HostEntry::show_host_label | ( | bool | show = true |
) |
References m_host_label.
void Conexus::Gtk::HostEntry::show_hostname_label | ( | bool | show = true |
) |
References m_hostname_label.
void Conexus::Gtk::HostEntry::unset_address | ( | ) |
References Conexus::Gtk::LOOKUP_NONE, m_address, m_conn_address_host, m_lookup, and set_host().
Referenced by Conexus::Gtk::HostPortEntry::unset_address().
IPAddressInterface* Conexus::Gtk::HostEntry::m_address [protected] |
Referenced by address(), apply(), set_address(), and unset_address().
::Gtk::Button Conexus::Gtk::HostEntry::m_apply_button [protected] |
Referenced by apply(), apply_button(), enable_immediate_apply(), on_host_widget_changed(), and setup_widget().
::Gtk::Image Conexus::Gtk::HostEntry::m_bad_host_image [protected] |
Referenced by apply(), bad_host_image(), and setup_widget().
sigc::connection Conexus::Gtk::HostEntry::m_conn_address_host [protected] |
Referenced by set_address(), and unset_address().
::Gtk::Image Conexus::Gtk::HostEntry::m_good_host_image [protected] |
Referenced by apply(), good_host_image(), and setup_widget().
::Gtk::Label Conexus::Gtk::HostEntry::m_host_label [protected] |
Referenced by apply(), is_host_label_visible(), setup_widget(), and show_host_label().
::Gtk::ComboBoxEntryText Conexus::Gtk::HostEntry::m_host_widget [protected] |
Referenced by apply(), host(), host_widget(), set_host(), and setup_widget().
sigc::connection Conexus::Gtk::HostEntry::m_host_widget_connection [protected] |
Referenced by apply(), and setup_widget().
::Gtk::Label Conexus::Gtk::HostEntry::m_hostname_label [protected] |
Referenced by apply(), is_hostname_label_visible(), setup_widget(), and show_hostname_label().
::Gtk::EventBox Conexus::Gtk::HostEntry::m_image_holder [protected] |
Referenced by apply(), is_host_image_visible(), setup_widget(), and show_host_image().
bool Conexus::Gtk::HostEntry::m_immediate_apply [protected] |
Referenced by enable_immediate_apply(), is_immediate_apply_enabled(), and on_host_widget_changed().
unsigned Conexus::Gtk::HostEntry::m_lookup [protected] |
Referenced by apply(), set_address(), and unset_address().