CopperSpice API  1.7.2
QDnsDomainNameRecord Class Reference

The QDnsDomainNameRecord class stores information about a domain name record. More...

Public Methods

 QDnsDomainNameRecord ()
 
 QDnsDomainNameRecord (const QDnsDomainNameRecord &other)
 
 ~QDnsDomainNameRecord ()
 
QString name () const
 
QDnsDomainNameRecord & operator= (const QDnsDomainNameRecord &other)
 
QDnsDomainNameRecord & operator= (QDnsDomainNameRecord &&other)
 
void swap (QDnsDomainNameRecord &other)
 
quint32 timeToLive () const
 
QString value () const
 

Detailed Description

When performing a name server lookup, zero or more records will be returned. Each record is represented by a QDnsDomainNameRecord instance.

See also
QDnsLookup

Constructor & Destructor Documentation

QDnsDomainNameRecord::QDnsDomainNameRecord ( )

Constructs an empty domain name record object.

QDnsDomainNameRecord::QDnsDomainNameRecord ( const QDnsDomainNameRecord &  other)

Constructs a copy of other.

QDnsDomainNameRecord::~QDnsDomainNameRecord ( )

Destroys a domain name record.

Method Documentation

QString QDnsDomainNameRecord::name ( ) const

Returns the name for this record.

QDnsDomainNameRecord & QDnsDomainNameRecord::operator= ( const QDnsDomainNameRecord &  other)

Copy assigns from other and returns a reference to this object.

QDnsDomainNameRecord & QDnsDomainNameRecord::operator= ( QDnsDomainNameRecord &&  other)
inline

Move assigns from other and returns a reference to this object.

void QDnsDomainNameRecord::swap ( QDnsDomainNameRecord &  other)
inline

Swaps this domain name record instance with other. This method is very fast and never fails.

quint32 QDnsDomainNameRecord::timeToLive ( ) const

Returns the duration in seconds for which this record is valid.

QString QDnsDomainNameRecord::value ( ) const

Returns the value for this domain name record.