![]() |
KVIrc 5.2.6
Developer APIs
|
#include <KviIpEditor.h>
Public Types | |
enum | AddressType { IPv4 , IPv6 } |
Public Member Functions | |
QString | address () const |
AddressType | addressType () const |
bool | isValid () const |
KviIpEditor (QWidget *parent, AddressType=IPv4, const QString &ipAddr=QString(), const char *name=nullptr) | |
bool | setAddress (const QString &ipAddr) |
void | setAddressType (AddressType addrType) |
~KviIpEditor ()=default | |
Private Attributes | |
AddressType | m_addrType |
KviIpEditor::KviIpEditor | ( | QWidget * | parent, |
AddressType | addrType = IPv4, | ||
const QString & | ipAddr = QString(), | ||
const char * | name = nullptr ) |
References setAddress(), and setAddressType().
|
default |
QString KviIpEditor::address | ( | ) | const |
References IPv6, and m_addrType.
Referenced by IrcServerDetailsWidget::fillData(), and OptionsWidget_proxy::saveLastItem().
|
inline |
bool KviIpEditor::isValid | ( | ) | const |
Referenced by IrcServerDetailsWidget::fillData(), and OptionsWidget_proxy::saveLastItem().
bool KviIpEditor::setAddress | ( | const QString & | ipAddr | ) |
References IPv4, and m_addrType.
Referenced by OptionsWidget_proxy::currentItemChanged(), IrcServerDetailsWidget::IrcServerDetailsWidget(), KviIpEditor(), and setAddressType().
void KviIpEditor::setAddressType | ( | AddressType | addrType | ) |
|
private |
Referenced by address(), setAddress(), and setAddressType().