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
QDnsHostAddressRecord Class Reference

The QDnsHostAddressRecord class stores information about a host address record. More...

#include <qdnslookup.h>

+ Collaboration diagram for QDnsHostAddressRecord:

Public Member Functions

 QDnsHostAddressRecord ()
 Constructs an empty host address record object.
 
 QDnsHostAddressRecord (const QDnsHostAddressRecord &other)
 Constructs a copy of other.
 
QDnsHostAddressRecordoperator= (QDnsHostAddressRecord &&other) noexcept
 
QDnsHostAddressRecordoperator= (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
 

Detailed Description

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.

See also
QDnsLookup

Definition at line 52 of file qdnslookup.h.

Constructor & Destructor Documentation

◆ QDnsHostAddressRecord() [1/2]

QDnsHostAddressRecord::QDnsHostAddressRecord ( )

Constructs an empty host address record object.

Definition at line 911 of file qdnslookup.cpp.

◆ QDnsHostAddressRecord() [2/2]

QDnsHostAddressRecord::QDnsHostAddressRecord ( const QDnsHostAddressRecord & other)

Constructs a copy of other.

Definition at line 920 of file qdnslookup.cpp.

◆ ~QDnsHostAddressRecord()

QDnsHostAddressRecord::~QDnsHostAddressRecord ( )

Destroys a host address record.

Definition at line 929 of file qdnslookup.cpp.

Member Function Documentation

◆ name()

QString QDnsHostAddressRecord::name ( ) const

Returns the name for this record.

Definition at line 937 of file qdnslookup.cpp.

References QDnsRecordPrivate::name.

◆ operator=() [1/2]

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().

+ Here is the call graph for this function:

◆ operator=() [2/2]

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

Definition at line 57 of file qdnslookup.h.

References other(), and swap().

+ Here is the call graph for this function:

◆ swap()

void QDnsHostAddressRecord::swap ( QDnsHostAddressRecord & other)
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.

References d, and other().

+ Here is the call graph for this function:

◆ timeToLive()

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.

◆ value()

QHostAddress QDnsHostAddressRecord::value ( ) const

Returns the value for this host address record.

Definition at line 955 of file qdnslookup.cpp.

References QDnsHostAddressRecordPrivate::value.

Friends And Related Symbol Documentation

◆ QDnsLookupRunnable

friend class QDnsLookupRunnable
friend

Definition at line 69 of file qdnslookup.h.


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