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
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
 Swaps this domain-name 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.
 
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 26 of file qdnslookup.h.

Constructor & Destructor Documentation

◆ QDnsDomainNameRecord() [1/2]

QDnsDomainNameRecord::QDnsDomainNameRecord ( )

Constructs an empty domain name record object.

Definition at line 600 of file qdnslookup.cpp.

◆ QDnsDomainNameRecord() [2/2]

QDnsDomainNameRecord::QDnsDomainNameRecord ( const QDnsDomainNameRecord & other)

Constructs a copy of other.

Definition at line 609 of file qdnslookup.cpp.

◆ ~QDnsDomainNameRecord()

QDnsDomainNameRecord::~QDnsDomainNameRecord ( )

Destroys a domain name record.

Definition at line 618 of file qdnslookup.cpp.

Member Function Documentation

◆ name()

QString QDnsDomainNameRecord::name ( ) const

Returns the name for this record.

Definition at line 626 of file qdnslookup.cpp.

References QDnsRecordPrivate::name.

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

References other().

+ Here is the call graph for this function:

◆ operator=() [2/2]

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

Definition at line 31 of file qdnslookup.h.

References other(), and swap().

+ Here is the call graph for this function:

◆ swap()

void QDnsDomainNameRecord::swap ( QDnsDomainNameRecord & other)
inlinenoexcept

Swaps this domain-name record instance with other.

This function is very fast and never fails.

Definition at line 35 of file qdnslookup.h.

References d, and other().

+ Here is the call graph for this function:

◆ timeToLive()

quint32 QDnsDomainNameRecord::timeToLive ( ) const

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

Definition at line 635 of file qdnslookup.cpp.

References QDnsRecordPrivate::timeToLive.

◆ value()

QString QDnsDomainNameRecord::value ( ) const

Returns the value for this domain name record.

Definition at line 644 of file qdnslookup.cpp.

References QDnsDomainNameRecordPrivate::value.

Friends And Related Symbol Documentation

◆ QDnsLookupRunnable

friend class QDnsLookupRunnable
friend

Definition at line 43 of file qdnslookup.h.


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