![]() |
Qt 6.x
The Qt SDK
|
The QDnsDomainNameRecord class stores information about a domain name record. More...
#include <qdnslookup.h>
Collaboration diagram for QDnsDomainNameRecord:Public Member Functions | |
| QDnsDomainNameRecord () | |
| Constructs an empty domain name record object. | |
| QDnsDomainNameRecord (const QDnsDomainNameRecord &other) | |
| Constructs a copy of other. | |
| QDnsDomainNameRecord & | operator= (QDnsDomainNameRecord &&other) noexcept |
| QDnsDomainNameRecord & | operator= (const QDnsDomainNameRecord &other) |
| Assigns the data of the other object to this record object, and returns a reference to it. | |
| ~QDnsDomainNameRecord () | |
| Destroys a domain name record. | |
| void | swap (QDnsDomainNameRecord &other) noexcept |
| Swaps this domain-name record instance with other. | |
| QString | name () const |
| Returns the name for this record. | |
| quint32 | timeToLive () const |
| Returns the duration in seconds for which this record is valid. | |
| QString | value () const |
| Returns the value for this domain name record. | |
Friends | |
| class | QDnsLookupRunnable |
The QDnsDomainNameRecord class stores information about a domain name record.
\inmodule QtNetwork
When performing a name server lookup, zero or more records will be returned. Each record is represented by a QDnsDomainNameRecord instance.
Definition at line 26 of file qdnslookup.h.
| QDnsDomainNameRecord::QDnsDomainNameRecord | ( | ) |
Constructs an empty domain name record object.
Definition at line 600 of file qdnslookup.cpp.
| QDnsDomainNameRecord::QDnsDomainNameRecord | ( | const QDnsDomainNameRecord & | other | ) |
Constructs a copy of other.
Definition at line 609 of file qdnslookup.cpp.
| QDnsDomainNameRecord::~QDnsDomainNameRecord | ( | ) |
Destroys a domain name record.
Definition at line 618 of file qdnslookup.cpp.
| QString QDnsDomainNameRecord::name | ( | ) | const |
Returns the name for this record.
Definition at line 626 of file qdnslookup.cpp.
References QDnsRecordPrivate::name.
| QDnsDomainNameRecord & QDnsDomainNameRecord::operator= | ( | const QDnsDomainNameRecord & | other | ) |
Assigns the data of the other object to this record object, and returns a reference to it.
Definition at line 654 of file qdnslookup.cpp.
References other().
Here is the call graph for this function:
|
inlinenoexcept |
Definition at line 31 of file qdnslookup.h.
References other(), and swap().
Here is the call graph for this function:
|
inlinenoexcept |
Swaps this domain-name record instance with other.
This function is very fast and never fails.
Definition at line 35 of file qdnslookup.h.
Here is the call graph for this function:| quint32 QDnsDomainNameRecord::timeToLive | ( | ) | const |
Returns the duration in seconds for which this record is valid.
Definition at line 635 of file qdnslookup.cpp.
References QDnsRecordPrivate::timeToLive.
| QString QDnsDomainNameRecord::value | ( | ) | const |
Returns the value for this domain name record.
Definition at line 644 of file qdnslookup.cpp.
References QDnsDomainNameRecordPrivate::value.
|
friend |
Definition at line 43 of file qdnslookup.h.