Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QDnsTextRecord Class Reference

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

#include <qdnslookup.h>

Collaboration diagram for QDnsTextRecord:

Public Member Functions

 QDnsTextRecord ()
 Constructs an empty text record object.
 QDnsTextRecord (const QDnsTextRecord &other)
 Constructs a copy of other.
QDnsTextRecordoperator= (QDnsTextRecord &&other) noexcept
QDnsTextRecordoperator= (const QDnsTextRecord &other)
 Assigns the data of the other object to this record object, and returns a reference to it.
 ~QDnsTextRecord ()
 Destroys a text record.
void swap (QDnsTextRecord &other) noexcept
 \memberswap{text record instance}
QString name () const
 Returns the name for this text record.
quint32 timeToLive () const
 Returns the duration in seconds for which this record is valid.
QList< QByteArrayvalues () const
 Returns the values for this text record.

Friends

class QDnsLookupRunnable

Detailed Description

The QDnsTextRecord class stores information about a DNS TXT record.

\inmodule QtNetwork

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 \l{http://www.rfc-editor.org/rfc/rfc1035.txt}{RFC 1035}.

See also
QDnsLookup

Definition at line 123 of file qdnslookup.h.

Constructor & Destructor Documentation

◆ QDnsTextRecord() [1/2]

QDnsTextRecord::QDnsTextRecord ( )

Constructs an empty text record object.

Definition at line 1210 of file qdnslookup.cpp.

◆ QDnsTextRecord() [2/2]

QDnsTextRecord::QDnsTextRecord ( const QDnsTextRecord & other)

Constructs a copy of other.

Definition at line 1219 of file qdnslookup.cpp.

◆ ~QDnsTextRecord()

QDnsTextRecord::~QDnsTextRecord ( )

Destroys a text record.

Definition at line 1228 of file qdnslookup.cpp.

Member Function Documentation

◆ name()

QString QDnsTextRecord::name ( ) const

Returns the name for this text record.

Definition at line 1236 of file qdnslookup.cpp.

◆ operator=() [1/2]

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

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

Definition at line 1264 of file qdnslookup.cpp.

◆ operator=() [2/2]

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

Definition at line 128 of file qdnslookup.h.

◆ swap()

void QDnsTextRecord::swap ( QDnsTextRecord & other)
inlinenoexcept

\memberswap{text record instance}

Definition at line 132 of file qdnslookup.h.

◆ timeToLive()

quint32 QDnsTextRecord::timeToLive ( ) const

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

Definition at line 1245 of file qdnslookup.cpp.

◆ values()

QList< QByteArray > QDnsTextRecord::values ( ) const

Returns the values for this text record.

Definition at line 1254 of file qdnslookup.cpp.

◆ QDnsLookupRunnable

friend class QDnsLookupRunnable
friend

Definition at line 140 of file qdnslookup.h.


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