QDnsMailExchangeRecord 類

The QDnsMailExchangeRecord class stores information about a DNS MX record. 更多...

頭: #include <QDnsMailExchangeRecord>
qmake: QT += network

公共函數

QDnsMailExchangeRecord ()
QDnsMailExchangeRecord (const QDnsMailExchangeRecord & other )
~QDnsMailExchangeRecord ()
QString exchange () const
QString name () const
quint16 preference () const
void swap (QDnsMailExchangeRecord & other )
quint32 timeToLive () const
QDnsMailExchangeRecord & operator= (QDnsMailExchangeRecord && other )
QDnsMailExchangeRecord & operator= (const QDnsMailExchangeRecord & other )

詳細描述

The QDnsMailExchangeRecord class stores information about a DNS MX record.

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

字段含義的定義在 RFC 1035 .

另請參閱 QDnsLookup .

成員函數文檔編製

QDnsMailExchangeRecord:: QDnsMailExchangeRecord ()

構造空郵件交換記錄對象。

QDnsMailExchangeRecord:: QDnsMailExchangeRecord (const QDnsMailExchangeRecord & other )

構造副本為 other .

QDnsMailExchangeRecord:: ~QDnsMailExchangeRecord ()

銷毀郵件交換記錄。

QString QDnsMailExchangeRecord:: exchange () const

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

QString QDnsMailExchangeRecord:: name () const

返迴此記錄的名稱。

quint16 QDnsMailExchangeRecord:: preference () const

Returns the preference for this record.

void QDnsMailExchangeRecord:: swap ( QDnsMailExchangeRecord & other )

Swaps this mail exchange record with other 。此函數非常快且從不失敗。

quint32 QDnsMailExchangeRecord:: timeToLive () const

返迴此記錄有效的持續時間 (以秒為單位)。

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

移動賦值運算符。

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

賦值數據源於 other 對象到此記錄對象,並返迴它的引用。