#include <portentry.h>
Public Member Functions | |
PortEntry (unsigned lookup=LOOKUP_IPV4|LOOKUP_IPV6) | |
PortEntry (IPAddressInterface *addr, unsigned lookup=LOOKUP_IPV4) | |
PortEntry (IPAddressInterface::pointer addr, unsigned lookup=LOOKUP_IPV4) | |
PortEntry (IPv4::Address &addr, unsigned lookup=LOOKUP_IPV4) | |
PortEntry (IPv6::Address &addr, unsigned lookup=LOOKUP_IPV6) | |
~PortEntry () | |
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::SpinButton & | port_widget () |
::Gtk::Adjustment & | port_widget_adjustment () |
uint32_t | port () |
void | set_port (uint32_t p) |
std::string | servicename () |
bool | is_servicename_label_visible () |
void | show_servicename_label (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_port_changed () |
virtual void | on_port_widget_changed () |
void | on_spinbutton_text_entry (const Glib::ustring &text, int *position) |
void | on_spinbutton_text_delete (int start, int end) |
Protected Attributes | |
IPAddressInterface * | m_address |
unsigned | m_lookup |
bool | m_immediate_apply |
sigc::connection | m_conn_address_port |
::Gtk::SpinButton | m_port_widget |
sigc::connection | m_conn_port_widget_changed |
::Gtk::Adjustment | m_port_widget_adjustment |
::Gtk::Label | m_servicename_label |
::Gtk::Button | m_apply_button |
Private Member Functions | |
void | setup_widget () |
Conexus::Gtk::PortEntry::PortEntry | ( | unsigned | lookup = LOOKUP_IPV4|LOOKUP_IPV6 |
) |
References setup_widget().
Conexus::Gtk::PortEntry::PortEntry | ( | IPAddressInterface * | addr, | |
unsigned | lookup = LOOKUP_IPV4 | |||
) |
References setup_widget().
Conexus::Gtk::PortEntry::PortEntry | ( | IPAddressInterface::pointer | addr, | |
unsigned | lookup = LOOKUP_IPV4 | |||
) |
References setup_widget().
Conexus::Gtk::PortEntry::PortEntry | ( | IPv4::Address & | addr, | |
unsigned | lookup = LOOKUP_IPV4 | |||
) |
References setup_widget().
Conexus::Gtk::PortEntry::PortEntry | ( | IPv6::Address & | addr, | |
unsigned | lookup = LOOKUP_IPV6 | |||
) |
References setup_widget().
Conexus::Gtk::PortEntry::~PortEntry | ( | ) |
IPAddressInterface * Conexus::Gtk::PortEntry::address | ( | ) |
References m_address.
void Conexus::Gtk::PortEntry::apply | ( | ) |
References m_address, m_apply_button, m_conn_port_widget_changed, m_port_widget, m_servicename_label, port(), servicename(), and Conexus::IPAddressInterface::set_port().
Referenced by enable_immediate_apply(), on_port_widget_changed(), on_spinbutton_text_delete(), on_spinbutton_text_entry(), and setup_widget().
Gtk::Button & Conexus::Gtk::PortEntry::apply_button | ( | ) |
References m_apply_button.
void Conexus::Gtk::PortEntry::enable_immediate_apply | ( | bool | enable = true |
) |
References apply(), m_apply_button, and m_immediate_apply.
bool Conexus::Gtk::PortEntry::is_immediate_apply_enabled | ( | ) |
References m_immediate_apply.
bool Conexus::Gtk::PortEntry::is_servicename_label_visible | ( | ) |
References m_servicename_label.
void Conexus::Gtk::PortEntry::on_controlled_port_changed | ( | ) | [protected, virtual] |
References m_address, m_apply_button, m_conn_port_widget_changed, m_port_widget, m_servicename_label, Conexus::IPAddressInterface::port(), port(), and servicename().
Referenced by set_address().
void Conexus::Gtk::PortEntry::on_port_widget_changed | ( | ) | [protected, virtual] |
void Conexus::Gtk::PortEntry::on_spinbutton_text_delete | ( | int | start, | |
int | end | |||
) | [protected] |
void Conexus::Gtk::PortEntry::on_spinbutton_text_entry | ( | const Glib::ustring & | text, | |
int * | position | |||
) | [protected] |
uint32_t Conexus::Gtk::PortEntry::port | ( | ) |
Gtk::SpinButton & Conexus::Gtk::PortEntry::port_widget | ( | ) |
References m_port_widget.
Gtk::Adjustment & Conexus::Gtk::PortEntry::port_widget_adjustment | ( | ) |
References m_port_widget_adjustment.
std::string Conexus::Gtk::PortEntry::servicename | ( | ) |
References Conexus::Gtk::LOOKUP_IPV4, Conexus::Gtk::LOOKUP_IPV6, m_lookup, port(), and Conexus::IPv6::service_to_servicename().
Referenced by apply(), on_controlled_port_changed(), and setup_widget().
void Conexus::Gtk::PortEntry::set_address | ( | IPv6::Address & | addr, | |
unsigned | lookup = LOOKUP_IPV6 | |||
) |
References set_address().
void Conexus::Gtk::PortEntry::set_address | ( | IPv4::Address & | addr, | |
unsigned | lookup = LOOKUP_IPV4 | |||
) |
References set_address().
void Conexus::Gtk::PortEntry::set_address | ( | IPAddressInterface::pointer | addr, | |
unsigned | lookup = LOOKUP_IPV4 | |||
) |
References set_address().
void Conexus::Gtk::PortEntry::set_address | ( | IPAddressInterface * | addr, | |
unsigned | lookup = LOOKUP_IPV4 | |||
) |
References m_address, m_conn_address_port, m_lookup, on_controlled_port_changed(), and Conexus::IPAddressInterface::signal_port_changed().
Referenced by set_address(), and Conexus::Gtk::HostPortEntry::set_address().
void Conexus::Gtk::PortEntry::set_port | ( | uint32_t | p | ) |
void Conexus::Gtk::PortEntry::setup_widget | ( | ) | [private] |
void Conexus::Gtk::PortEntry::show_servicename_label | ( | bool | show = true |
) |
References m_servicename_label.
void Conexus::Gtk::PortEntry::unset_address | ( | ) |
References Conexus::Gtk::LOOKUP_NONE, m_address, m_conn_address_port, m_lookup, and set_port().
Referenced by Conexus::Gtk::HostPortEntry::unset_address().
IPAddressInterface* Conexus::Gtk::PortEntry::m_address [protected] |
Referenced by address(), apply(), on_controlled_port_changed(), set_address(), and unset_address().
::Gtk::Button Conexus::Gtk::PortEntry::m_apply_button [protected] |
sigc::connection Conexus::Gtk::PortEntry::m_conn_address_port [protected] |
Referenced by set_address(), and unset_address().
sigc::connection Conexus::Gtk::PortEntry::m_conn_port_widget_changed [protected] |
Referenced by apply(), on_controlled_port_changed(), and setup_widget().
bool Conexus::Gtk::PortEntry::m_immediate_apply [protected] |
unsigned Conexus::Gtk::PortEntry::m_lookup [protected] |
Referenced by servicename(), set_address(), and unset_address().
::Gtk::SpinButton Conexus::Gtk::PortEntry::m_port_widget [protected] |
Referenced by apply(), on_controlled_port_changed(), port(), port_widget(), set_port(), and setup_widget().
::Gtk::Adjustment Conexus::Gtk::PortEntry::m_port_widget_adjustment [protected] |
Referenced by port_widget_adjustment(), and setup_widget().
::Gtk::Label Conexus::Gtk::PortEntry::m_servicename_label [protected] |
Referenced by apply(), is_servicename_label_visible(), on_controlled_port_changed(), setup_widget(), and show_servicename_label().