![]() |
Qt 6.x
The Qt SDK
|
The QDnsHostAddressRecord class stores information about a host address record. More...
#include <qdnslookup.h>
Public Member Functions | |
QDnsHostAddressRecord () | |
Constructs an empty host address record object. | |
QDnsHostAddressRecord (const QDnsHostAddressRecord &other) | |
Constructs a copy of other. | |
QDnsHostAddressRecord & | operator= (QDnsHostAddressRecord &&other) noexcept |
QDnsHostAddressRecord & | operator= (const QDnsHostAddressRecord &other) |
Assigns the data of the other object to this record object, and returns a reference to it. | |
~QDnsHostAddressRecord () | |
Destroys a host address record. | |
void | swap (QDnsHostAddressRecord &other) noexcept |
Swaps this host address 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. | |
QHostAddress | value () const |
Returns the value for this host address record. | |
Friends | |
class | QDnsLookupRunnable |
The QDnsHostAddressRecord class stores information about a host address record.
\inmodule QtNetwork
When performing an address lookup, zero or more records will be returned. Each record is represented by a QDnsHostAddressRecord instance.
Definition at line 48 of file qdnslookup.h.
QDnsHostAddressRecord::QDnsHostAddressRecord | ( | ) |
Constructs an empty host address record object.
Definition at line 685 of file qdnslookup.cpp.
QDnsHostAddressRecord::QDnsHostAddressRecord | ( | const QDnsHostAddressRecord & | other | ) |
Constructs a copy of other.
Definition at line 694 of file qdnslookup.cpp.
QDnsHostAddressRecord::~QDnsHostAddressRecord | ( | ) |
Destroys a host address record.
Definition at line 703 of file qdnslookup.cpp.
QString QDnsHostAddressRecord::name | ( | ) | const |
Returns the name for this record.
Definition at line 711 of file qdnslookup.cpp.
References QDnsRecordPrivate::name.
QDnsHostAddressRecord & QDnsHostAddressRecord::operator= | ( | const QDnsHostAddressRecord & | other | ) |
Assigns the data of the other object to this record object, and returns a reference to it.
Definition at line 739 of file qdnslookup.cpp.
References other().
|
inlinenoexcept |
Definition at line 53 of file qdnslookup.h.
References other(), and swap().
|
inlinenoexcept |
Swaps this host address record instance with other.
This function is very fast and never fails.
Definition at line 57 of file qdnslookup.h.
quint32 QDnsHostAddressRecord::timeToLive | ( | ) | const |
Returns the duration in seconds for which this record is valid.
Definition at line 720 of file qdnslookup.cpp.
References QDnsRecordPrivate::timeToLive.
QHostAddress QDnsHostAddressRecord::value | ( | ) | const |
Returns the value for this host address record.
Definition at line 729 of file qdnslookup.cpp.
References QDnsHostAddressRecordPrivate::value.
|
friend |
Definition at line 65 of file qdnslookup.h.