KVIrc 5.2.6
Developer APIs
KviIpEditor Class Reference

#include <KviIpEditor.h>

+ Inheritance diagram for KviIpEditor:

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
 

Member Enumeration Documentation

◆ AddressType

Enumerator
IPv4 
IPv6 

Constructor & Destructor Documentation

◆ KviIpEditor()

KviIpEditor::KviIpEditor ( QWidget * parent,
AddressType addrType = IPv4,
const QString & ipAddr = QString(),
const char * name = nullptr )

References setAddress(), and setAddressType().

◆ ~KviIpEditor()

KviIpEditor::~KviIpEditor ( )
default

Member Function Documentation

◆ address()

QString KviIpEditor::address ( ) const

References IPv6, and m_addrType.

◆ addressType()

AddressType KviIpEditor::addressType ( ) const
inline

References m_addrType.

◆ isValid()

bool KviIpEditor::isValid ( ) const

◆ setAddress()

bool KviIpEditor::setAddress ( const QString & ipAddr)

References IPv4, and m_addrType.

Referenced by KviIpEditor(), and setAddressType().

◆ setAddressType()

void KviIpEditor::setAddressType ( AddressType addrType)

References IPv4, IPv6, m_addrType, and setAddress().

Referenced by KviIpEditor().

Member Data Documentation

◆ m_addrType

AddressType KviIpEditor::m_addrType
private

The documentation for this class was generated from the following files: