![]()  | 
  
    Qt 6.x
    
   The Qt SDK 
   | 
 
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.   | |
| QDnsMailExchangeRecord & | operator= (QDnsMailExchangeRecord &&other) noexcept | 
| QDnsMailExchangeRecord & | operator= (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 | 
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}.
Definition at line 70 of file qdnslookup.h.
| QDnsMailExchangeRecord::QDnsMailExchangeRecord | ( | ) | 
Constructs an empty mail exchange record object.
Definition at line 772 of file qdnslookup.cpp.
| QDnsMailExchangeRecord::QDnsMailExchangeRecord | ( | const QDnsMailExchangeRecord & | other | ) | 
Constructs a copy of other.
Definition at line 781 of file qdnslookup.cpp.
| QDnsMailExchangeRecord::~QDnsMailExchangeRecord | ( | ) | 
Destroys a mail exchange record.
Definition at line 790 of file qdnslookup.cpp.
| 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.
| QString QDnsMailExchangeRecord::name | ( | ) | const | 
Returns the name for this record.
Definition at line 807 of file qdnslookup.cpp.
References QDnsRecordPrivate::name.
| 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:
      
  | 
  inlinenoexcept | 
Definition at line 75 of file qdnslookup.h.
References other(), and swap().
 Here is the call graph for this function:| quint16 QDnsMailExchangeRecord::preference | ( | ) | const | 
Returns the preference for this record.
Definition at line 816 of file qdnslookup.cpp.
References QDnsMailExchangeRecordPrivate::preference.
      
  | 
  inlinenoexcept | 
Swaps this mail exchange record with other.
This function is very fast and never fails.
Definition at line 79 of file qdnslookup.h.
 Here is the call graph for this function:| 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.
      
  | 
  friend | 
Definition at line 88 of file qdnslookup.h.