このページでは

QDnsMailExchangeRecord Class

QDnsMailExchangeRecord クラスは、DNS MX レコードに関する情報を格納します。詳細...

ヘッダー: #include <QDnsMailExchangeRecord>
CMake: find_package(Qt6 REQUIRED COMPONENTS Network)
target_link_libraries(mytarget PRIVATE Qt6::Network)
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=(const QDnsMailExchangeRecord &other)

詳細な説明

サービスの検索を実行すると、0 個以上のレコードが返されます。各レコードは、QDnsMailExchangeRecord インスタンスによって表されます。

各フィールドの意味は、RFC 1035 で定義されています。

QDnsLookupも参照してください 。

メンバ関数のドキュメント

QDnsMailExchangeRecord::QDnsMailExchangeRecord()

空のメール交換レコードオブジェクトを作成します。

QDnsMailExchangeRecord::QDnsMailExchangeRecord(const QDnsMailExchangeRecord &other)

other のコピーを作成します。

[noexcept] QDnsMailExchangeRecord::~QDnsMailExchangeRecord()

メール交換レコードを削除します。

QString QDnsMailExchangeRecord::exchange() const

このレコードのメールエクスチェンジのドメイン名を返します。

QString QDnsMailExchangeRecord::name() const

このレコードの名前を返します。

quint16 QDnsMailExchangeRecord::preference() const

このレコードの設定を返します。

[noexcept] void QDnsMailExchangeRecord::swap(QDnsMailExchangeRecord &other)

このメールのやり取りの記録を、other と入れ替えます。この操作は非常に高速で、失敗することはありません。

quint32 QDnsMailExchangeRecord::timeToLive() const

このレコードが有効である期間を秒単位で返します。

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

other オブジェクトのデータをこのレコードオブジェクトに代入し、その参照を返します。

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.