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

The QDnsMailExchangeRecord class stores information about a DNS MX record. More...

#include <qdnslookup.h>

+ Collaboration diagram for QDnsMailExchangeRecord:

Public Member Functions

 QDnsMailExchangeRecord ()
 Constructs an empty mail exchange record object.
 
 QDnsMailExchangeRecord (const QDnsMailExchangeRecord &other)
 Constructs a copy of other.
 
QDnsMailExchangeRecordoperator= (QDnsMailExchangeRecord &&other) noexcept
 
QDnsMailExchangeRecordoperator= (const QDnsMailExchangeRecord &other)
 Assigns the data of the other object to this record object, and returns a reference to it.
 
 ~QDnsMailExchangeRecord ()
 Destroys a mail exchange record.
 
void swap (QDnsMailExchangeRecord &other) noexcept
 Swaps this mail exchange record with other.
 
QString exchange () const
 Returns the domain name of the mail exchange for this record.
 
QString name () const
 Returns the name for this record.
 
quint16 preference () const
 Returns the preference for this record.
 
quint32 timeToLive () const
 Returns the duration in seconds for which this record is valid.
 

Friends

class QDnsLookupRunnable
 

Detailed Description

The QDnsMailExchangeRecord class stores information about a DNS MX record.

\inmodule QtNetwork

When performing a lookup on a service, zero or more records will be returned. Each record is represented by a QDnsMailExchangeRecord instance.

The meaning of the fields is defined in \l{http://www.rfc-editor.org/rfc/rfc1035.txt}{RFC 1035}.

See also
QDnsLookup

Definition at line 70 of file qdnslookup.h.

Constructor & Destructor Documentation

◆ QDnsMailExchangeRecord() [1/2]

QDnsMailExchangeRecord::QDnsMailExchangeRecord ( )

Constructs an empty mail exchange record object.

Definition at line 772 of file qdnslookup.cpp.

◆ QDnsMailExchangeRecord() [2/2]

QDnsMailExchangeRecord::QDnsMailExchangeRecord ( const QDnsMailExchangeRecord & other)

Constructs a copy of other.

Definition at line 781 of file qdnslookup.cpp.

◆ ~QDnsMailExchangeRecord()

QDnsMailExchangeRecord::~QDnsMailExchangeRecord ( )

Destroys a mail exchange record.

Definition at line 790 of file qdnslookup.cpp.

Member Function Documentation

◆ exchange()

QString QDnsMailExchangeRecord::exchange ( ) const

Returns the domain name of the mail exchange for this record.

Definition at line 798 of file qdnslookup.cpp.

References QDnsMailExchangeRecordPrivate::exchange.

◆ name()

QString QDnsMailExchangeRecord::name ( ) const

Returns the name for this record.

Definition at line 807 of file qdnslookup.cpp.

References QDnsRecordPrivate::name.

◆ operator=() [1/2]

QDnsMailExchangeRecord & QDnsMailExchangeRecord::operator= ( const QDnsMailExchangeRecord & other)

Assigns the data of the other object to this record object, and returns a reference to it.

Definition at line 835 of file qdnslookup.cpp.

References other().

+ Here is the call graph for this function:

◆ operator=() [2/2]

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

Definition at line 75 of file qdnslookup.h.

References other(), and swap().

+ Here is the call graph for this function:

◆ preference()

quint16 QDnsMailExchangeRecord::preference ( ) const

Returns the preference for this record.

Definition at line 816 of file qdnslookup.cpp.

References QDnsMailExchangeRecordPrivate::preference.

◆ swap()

void QDnsMailExchangeRecord::swap ( QDnsMailExchangeRecord & other)
inlinenoexcept

Swaps this mail exchange record with other.

This function is very fast and never fails.

Definition at line 79 of file qdnslookup.h.

References d, and other().

+ Here is the call graph for this function:

◆ timeToLive()

quint32 QDnsMailExchangeRecord::timeToLive ( ) const

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

Definition at line 825 of file qdnslookup.cpp.

References QDnsRecordPrivate::timeToLive.

Friends And Related Symbol Documentation

◆ QDnsLookupRunnable

friend class QDnsLookupRunnable
friend

Definition at line 88 of file qdnslookup.h.


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