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

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.
QDnsDomainNameRecordoperator= (QDnsDomainNameRecord &&other) noexcept
QDnsDomainNameRecordoperator= (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
 \memberswap{domain-name 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.
QString value () const
 Returns the value for this domain name record.

Friends

class QDnsLookupRunnable

Detailed Description

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.

See also
QDnsLookup

Definition at line 31 of file qdnslookup.h.

Constructor & Destructor Documentation

◆ QDnsDomainNameRecord() [1/2]

QDnsDomainNameRecord::QDnsDomainNameRecord ( )

Constructs an empty domain name record object.

Definition at line 827 of file qdnslookup.cpp.

◆ QDnsDomainNameRecord() [2/2]

QDnsDomainNameRecord::QDnsDomainNameRecord ( const QDnsDomainNameRecord & other)

Constructs a copy of other.

Definition at line 836 of file qdnslookup.cpp.

◆ ~QDnsDomainNameRecord()

QDnsDomainNameRecord::~QDnsDomainNameRecord ( )

Destroys a domain name record.

Definition at line 845 of file qdnslookup.cpp.

Member Function Documentation

◆ name()

QString QDnsDomainNameRecord::name ( ) const

Returns the name for this record.

Definition at line 853 of file qdnslookup.cpp.

◆ operator=() [1/2]

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 881 of file qdnslookup.cpp.

◆ operator=() [2/2]

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

Definition at line 36 of file qdnslookup.h.

◆ swap()

void QDnsDomainNameRecord::swap ( QDnsDomainNameRecord & other)
inlinenoexcept

\memberswap{domain-name record instance}

Definition at line 40 of file qdnslookup.h.

◆ timeToLive()

quint32 QDnsDomainNameRecord::timeToLive ( ) const

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

Definition at line 862 of file qdnslookup.cpp.

◆ value()

QString QDnsDomainNameRecord::value ( ) const

Returns the value for this domain name record.

Definition at line 871 of file qdnslookup.cpp.

◆ QDnsLookupRunnable

friend class QDnsLookupRunnable
friend

Definition at line 48 of file qdnslookup.h.


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