KVIrc  4.9.2
DeveloperAPIs
Public Types | Signals | Public Member Functions | Protected Member Functions | Protected Attributes | Properties | Private Slots | Private Member Functions | Private Attributes | List of all members
KviDnsResolver Class Reference

The KviDnsResolver class. More...

#include <KviDnsResolver.h>

+ Inheritance diagram for KviDnsResolver:

Public Types

enum  QueryType {
  IPv4, IPv6, Any, IPv4,
  IPv6, Any
}
 
enum  QueryType {
  IPv4, IPv6, Any, IPv4,
  IPv6, Any
}
 
enum  State {
  Idle, Busy, Failure, Success,
  Idle, Busy, Failure, Success
}
 
enum  State {
  Idle, Busy, Failure, Success,
  Idle, Busy, Failure, Success
}
 

Signals

void lookupDone (KviDnsResolver *)
 
void lookupDone (KviDnsResolver *)
 

Public Member Functions

KviError::Code error () const
 
KviError::Code error ()
 
const QString & errorString () const
 
QString errorString ()
 
const QString & firstHostname ()
 
const QString & firstIpAddress ()
 
const QString & firstIpAddress ()
 
const QString & hostName () const
 
const QString & hostName ()
 
int hostnameCount ()
 
KviPointerList< QString > * hostnameList ()
 
int ipAddressCount () const
 
int ipAddressCount ()
 
KviPointerList< QString > * ipAddressList ()
 
KviPointerList< QString > * ipAddressList ()
 
bool isRunning () const
 
bool isRunning () const
 
 KviDnsResolver (QObject *pParent=NULL)
 
 KviDnsResolver ()
 
bool lookup (const QString &szQuery, QueryType eType)
 
bool lookup (const QString &szQuery, QueryType type)
 
const QString & query () const
 
const QString & query ()
 
void * releaseAuxData ()
 
void setAuxData (void *pAuxData)
 
State state () const
 
State state ()
 
virtual ~KviDnsResolver ()
 
virtual ~KviDnsResolver ()
 

Protected Member Functions

virtual bool event (QEvent *e)
 

Protected Attributes

void * m_pAuxData
 
KviDnsResolverResultm_pDnsResult
 
KviDnsResolverThreadm_pSlaveThread
 
State m_state
 

Properties

bool blockingDelete
 

Private Slots

void slotHostLookupTerminated (const QHostInfo &oHostInfo)
 

Private Member Functions

KviDnsResolverResultresult ()
 

Private Attributes

KviDnsResolverPrivatem_pPrivateData
 

Detailed Description

The KviDnsResolver class.

This class...

Member Enumeration Documentation

Enumerator
IPv4 
IPv6 
Any 
IPv4 
IPv6 
Any 
Enumerator
IPv4 
IPv6 
Any 
IPv4 
IPv6 
Any 
Enumerator
Idle 
Busy 
Failure 
Success 
Idle 
Busy 
Failure 
Success 
Enumerator
Idle 
Busy 
Failure 
Success 
Idle 
Busy 
Failure 
Success 

Constructor & Destructor Documentation

KviDnsResolver::KviDnsResolver ( )
KviDnsResolver::~KviDnsResolver ( )
virtual
KviDnsResolver::KviDnsResolver ( QObject *  pParent = NULL)
virtual KviDnsResolver::~KviDnsResolver ( )
virtual

Destroys the instance of KviDnsResolver and frees all the relevant resources

Member Function Documentation

KviError::Code KviDnsResolver::error ( ) const
KviError::Code KviDnsResolver::error ( )
const QString & KviDnsResolver::errorString ( ) const
QString KviDnsResolver::errorString ( )
bool KviDnsResolver::event ( QEvent *  e)
protectedvirtual
const QString & KviDnsResolver::firstHostname ( )
const QString& KviDnsResolver::firstIpAddress ( )
const QString & KviDnsResolver::firstIpAddress ( )
const QString & KviDnsResolver::hostName ( ) const
const QString& KviDnsResolver::hostName ( )
inline
int KviDnsResolver::hostnameCount ( )
KviPointerList< QString > * KviDnsResolver::hostnameList ( )
int KviDnsResolver::ipAddressCount ( ) const
int KviDnsResolver::ipAddressCount ( )
KviPointerList<QString>* KviDnsResolver::ipAddressList ( )
KviPointerList< QString > * KviDnsResolver::ipAddressList ( )
bool KviDnsResolver::isRunning ( ) const
bool KviDnsResolver::isRunning ( ) const
bool KviDnsResolver::lookup ( const QString &  szQuery,
QueryType  eType 
)

Starts a lookup for the specified DNS query of the specified type. Returns true on success and false on failure.

bool KviDnsResolver::lookup ( const QString &  szQuery,
QueryType  type 
)
void KviDnsResolver::lookupDone ( KviDnsResolver )
signal
void KviDnsResolver::lookupDone ( KviDnsResolver )
signal

Referenced by event(), and slotHostLookupTerminated().

const QString & KviDnsResolver::query ( ) const
const QString & KviDnsResolver::query ( )
void* KviDnsResolver::releaseAuxData ( )
inline
KviDnsResolverResult * KviDnsResolver::result ( )
private
void KviDnsResolver::setAuxData ( void *  pAuxData)
inline
void KviDnsResolver::slotHostLookupTerminated ( const QHostInfo &  oHostInfo)
privateslot
KviDnsResolver::State KviDnsResolver::state ( ) const

Returns the resolver state

References KviDnsResolverPrivate::eState, and m_pPrivateData.

State KviDnsResolver::state ( )
inline

Member Data Documentation

void* KviDnsResolver::m_pAuxData
protected

Referenced by KviDnsResolver(), and ~KviDnsResolver().

KviDnsResolverResult* KviDnsResolver::m_pDnsResult
protected
KviDnsResolverPrivate* KviDnsResolver::m_pPrivateData
private
KviDnsResolverThread* KviDnsResolver::m_pSlaveThread
protected
State KviDnsResolver::m_state
protected

Property Documentation

bool KviDnsResolver::blockingDelete
read

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