Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
 Swaps this text record instance with other.
 
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 118 of file qdnslookup.h.

Constructor & Destructor Documentation

◆ QDnsTextRecord() [1/2]

QDnsTextRecord::QDnsTextRecord ( )

Constructs an empty text record object.

Definition at line 989 of file qdnslookup.cpp.

◆ QDnsTextRecord() [2/2]

QDnsTextRecord::QDnsTextRecord ( const QDnsTextRecord & other)

Constructs a copy of other.

Definition at line 998 of file qdnslookup.cpp.

◆ ~QDnsTextRecord()

QDnsTextRecord::~QDnsTextRecord ( )

Destroys a text record.

Definition at line 1007 of file qdnslookup.cpp.

Member Function Documentation

◆ name()

QString QDnsTextRecord::name ( ) const

Returns the name for this text record.

Definition at line 1015 of file qdnslookup.cpp.

References QDnsRecordPrivate::name.

◆ 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 1043 of file qdnslookup.cpp.

References other().

+ Here is the call graph for this function:

◆ operator=() [2/2]

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

Definition at line 123 of file qdnslookup.h.

References other(), and swap().

+ Here is the call graph for this function:

◆ swap()

void QDnsTextRecord::swap ( QDnsTextRecord & other)
inlinenoexcept

Swaps this text record instance with other.

This function is very fast and never fails.

Definition at line 127 of file qdnslookup.h.

References d, and other().

+ Here is the call graph for this function:

◆ timeToLive()

quint32 QDnsTextRecord::timeToLive ( ) const

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

Definition at line 1024 of file qdnslookup.cpp.

References QDnsRecordPrivate::timeToLive.

◆ values()

QList< QByteArray > QDnsTextRecord::values ( ) const

Returns the values for this text record.

Definition at line 1033 of file qdnslookup.cpp.

References QDnsTextRecordPrivate::values.

Friends And Related Symbol Documentation

◆ QDnsLookupRunnable

friend class QDnsLookupRunnable
friend

Definition at line 135 of file qdnslookup.h.


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