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>.
|
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 52 of file qdnslookup.h.
QDnsHostAddressRecord::QDnsHostAddressRecord | ( | ) |
Constructs an empty host address record object.
Definition at line 911 of file qdnslookup.cpp.
QDnsHostAddressRecord::QDnsHostAddressRecord | ( | const QDnsHostAddressRecord & | other | ) |
Constructs a copy of other.
Definition at line 920 of file qdnslookup.cpp.
QDnsHostAddressRecord::~QDnsHostAddressRecord | ( | ) |
Destroys a host address record.
Definition at line 929 of file qdnslookup.cpp.
QString QDnsHostAddressRecord::name | ( | ) | const |
Returns the name for this record.
Definition at line 937 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 965 of file qdnslookup.cpp.
References other().
|
inlinenoexcept |
Definition at line 57 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 61 of file qdnslookup.h.
quint32 QDnsHostAddressRecord::timeToLive | ( | ) | const |
Returns the duration in seconds for which this record is valid.
Definition at line 946 of file qdnslookup.cpp.
References QDnsRecordPrivate::timeToLive.
QHostAddress QDnsHostAddressRecord::value | ( | ) | const |
Returns the value for this host address record.
Definition at line 955 of file qdnslookup.cpp.
References QDnsHostAddressRecordPrivate::value.
|
friend |
Definition at line 69 of file qdnslookup.h.