Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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
 \memberswap{host address record instance}
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 53 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.

◆ 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.

◆ operator=() [2/2]

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

Definition at line 58 of file qdnslookup.h.

◆ swap()

void QDnsHostAddressRecord::swap ( QDnsHostAddressRecord & other)
inlinenoexcept

\memberswap{host address record instance}

Definition at line 62 of file qdnslookup.h.

◆ timeToLive()

quint32 QDnsHostAddressRecord::timeToLive ( ) const

Returns the duration in seconds for which this record is valid.

Definition at line 946 of file qdnslookup.cpp.

◆ value()

QHostAddress QDnsHostAddressRecord::value ( ) const

Returns the value for this host address record.

Definition at line 955 of file qdnslookup.cpp.

◆ QDnsLookupRunnable

friend class QDnsLookupRunnable
friend

Definition at line 70 of file qdnslookup.h.


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