KVIrc  4.9.2
DeveloperAPIs
Public Types | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
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
 
void clear ()
 
bool hasEmptyFields () const
 
 KviIpEditor (QWidget *parent, AddressType=IPv4, const QString &ipAddr=QString(), const char *name=0)
 
bool setAddress (const QString &ipAddr)
 
void setAddressType (AddressType addrType)
 
virtual void setEnabled (bool bEnabled)
 
 ~KviIpEditor ()
 

Protected Member Functions

virtual bool eventFilter (QObject *o, QEvent *e)
 
virtual void resizeEvent (QResizeEvent *e)
 
virtual QSize sizeHint () const
 

Private Member Functions

void recreateChildren ()
 

Private Attributes

AddressType m_addrType
 
QLineEdit * m_pEdit [8]
 
QLabel * m_pLabel [7]
 

Member Enumeration Documentation

Enumerator
IPv4 
IPv6 

Constructor & Destructor Documentation

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

Member Function Documentation

QString KviIpEditor::address ( ) const
KviIpEditor::AddressType KviIpEditor::addressType ( ) const

References m_addrType.

void KviIpEditor::clear ( )

References i, IPv4, m_addrType, and m_pEdit.

Referenced by setAddress().

bool KviIpEditor::eventFilter ( QObject *  o,
QEvent *  e 
)
protectedvirtual

References c, i, IPv4, m_addrType, m_pEdit, and s.

bool KviIpEditor::hasEmptyFields ( ) const
void KviIpEditor::recreateChildren ( )
private
void KviIpEditor::resizeEvent ( QResizeEvent *  e)
protectedvirtual

References i, IPv4, m_addrType, m_pEdit, and m_pLabel.

Referenced by recreateChildren().

bool KviIpEditor::setAddress ( const QString &  ipAddr)
void KviIpEditor::setAddressType ( AddressType  addrType)
void KviIpEditor::setEnabled ( bool  bEnabled)
virtual
QSize KviIpEditor::sizeHint ( ) const
protectedvirtual

References IPv4, m_addrType, m_pEdit, and m_pLabel.

Referenced by recreateChildren().

Member Data Documentation

AddressType KviIpEditor::m_addrType
private
QLineEdit* KviIpEditor::m_pEdit[8]
private
QLabel* KviIpEditor::m_pLabel[7]
private

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