![]() |
Qt 6.x
The Qt SDK
|
The QDnsTextRecord class stores information about a DNS TXT record. More...
#include <qdnslookup.h>
Public Member Functions | |
QDnsTextRecord () | |
Constructs an empty text record object. | |
QDnsTextRecord (const QDnsTextRecord &other) | |
Constructs a copy of other. | |
QDnsTextRecord & | operator= (QDnsTextRecord &&other) noexcept |
QDnsTextRecord & | operator= (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< QByteArray > | values () const |
Returns the values for this text record. | |
Friends | |
class | QDnsLookupRunnable |
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}.
Definition at line 118 of file qdnslookup.h.
QDnsTextRecord::QDnsTextRecord | ( | ) |
Constructs an empty text record object.
Definition at line 989 of file qdnslookup.cpp.
QDnsTextRecord::QDnsTextRecord | ( | const QDnsTextRecord & | other | ) |
Constructs a copy of other.
Definition at line 998 of file qdnslookup.cpp.
QDnsTextRecord::~QDnsTextRecord | ( | ) |
Destroys a text record.
Definition at line 1007 of file qdnslookup.cpp.
QString QDnsTextRecord::name | ( | ) | const |
Returns the name for this text record.
Definition at line 1015 of file qdnslookup.cpp.
References QDnsRecordPrivate::name.
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().
|
inlinenoexcept |
Definition at line 123 of file qdnslookup.h.
References other(), and swap().
|
inlinenoexcept |
Swaps this text record instance with other.
This function is very fast and never fails.
Definition at line 127 of file qdnslookup.h.
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.
QList< QByteArray > QDnsTextRecord::values | ( | ) | const |
Returns the values for this text record.
Definition at line 1033 of file qdnslookup.cpp.
References QDnsTextRecordPrivate::values.
|
friend |
Definition at line 135 of file qdnslookup.h.