CopperSpice API  1.8.1
QDnsTextRecord Class Reference

The QDnsTextRecord class stores information about a DNS TXT record. More...

Public Methods

 QDnsTextRecord ()
 QDnsTextRecord (const QDnsTextRecord &other)
 ~QDnsTextRecord ()
QString name () const
QDnsTextRecord & operator= (const QDnsTextRecord &other)
QDnsTextRecord & operator= (QDnsTextRecord &&other)
void swap (QDnsTextRecord &other)
quint32 timeToLive () const
QList< QByteArrayvalues () const

Detailed Description

When performing a text lookup, zero or more records will be returned. Each record is represented by a QDnsTextRecord instance.

The meaning of the fields is defined in RFC 1035.

See also

Constructor & Destructor Documentation

QDnsTextRecord::QDnsTextRecord ( )

Constructs an empty text record object.

QDnsTextRecord::QDnsTextRecord ( const QDnsTextRecord &  other)

Constructs a copy of other.

QDnsTextRecord::~QDnsTextRecord ( )

Destroys a text record.

Method Documentation

QString QDnsTextRecord::name ( ) const

Returns the name for this text record.

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

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

QDnsTextRecord & QDnsTextRecord::operator= ( QDnsTextRecord &&  other)

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

void QDnsTextRecord::swap ( QDnsTextRecord &  other)

Swaps this text record instance with other. This methods is very fast and never fails.

quint32 QDnsTextRecord::timeToLive ( ) const

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

QList< QByteArray > QDnsTextRecord::values ( ) const

Returns the values for this text record.