![]() |
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.
|
inline |
References m_addrType.
bool KviIpEditor::isValid | ( | ) | const |
bool KviIpEditor::setAddress | ( | const QString & | ipAddr | ) |
References IPv4, and m_addrType.
Referenced by KviIpEditor(), and setAddressType().
void KviIpEditor::setAddressType | ( | AddressType | addrType | ) |
References IPv4, IPv6, m_addrType, and setAddress().
Referenced by KviIpEditor().
|
private |
Referenced by address(), addressType(), setAddress(), and setAddressType().