QDnsTextRecord Class

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

Header: #include <QDnsTextRecord>
qmake: QT += network

Public Functions

QDnsTextRecord(const QDnsTextRecord &other)
QDnsTextRecord()
QDnsTextRecord &operator=(const QDnsTextRecord &other)
~QDnsTextRecord()
QString name() const
void swap(QDnsTextRecord &other)
quint32 timeToLive() const
QList<QByteArray> values() 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 QDnsLookup.

Member Function Documentation

QDnsTextRecord::QDnsTextRecord(const QDnsTextRecord &other)

Constructs a copy of other.

QDnsTextRecord::QDnsTextRecord()

Constructs an empty text record object.

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

Assigns the data of the other object to this record object, and returns a reference to it.

QDnsTextRecord::~QDnsTextRecord()

Destroys a text record.

QString QDnsTextRecord::name() const

Returns the name for this text record.

void QDnsTextRecord::swap(QDnsTextRecord &other)

Swaps this text record instance with other. This function 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.

© 2020 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.