このページでは

QDnsDomainNameRecord Class

QDnsDomainNameRecord クラスは、ドメイン名レコードに関する情報を格納します。詳細...

ヘッダー: #include <QDnsDomainNameRecord>
CMake: find_package(Qt6 REQUIRED COMPONENTS Network)
target_link_libraries(mytarget PRIVATE Qt6::Network)
qmake: QT += network

パブリック関数

QDnsDomainNameRecord()
QDnsDomainNameRecord(const QDnsDomainNameRecord &other)
~QDnsDomainNameRecord()
QString name() const
void swap(QDnsDomainNameRecord &other)
quint32 timeToLive() const
QString value() const
QDnsDomainNameRecord &operator=(const QDnsDomainNameRecord &other)

詳細な説明

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

QDnsLookupも参照してください 。

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

QDnsDomainNameRecord::QDnsDomainNameRecord()

空のドメイン名レコードオブジェクトを作成します。

QDnsDomainNameRecord::QDnsDomainNameRecord(const QDnsDomainNameRecord &other)

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

[noexcept] QDnsDomainNameRecord::~QDnsDomainNameRecord()

ドメイン名レコードを削除します。

QString QDnsDomainNameRecord::name() const

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

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

このドメイン名レコードのインスタンスをother と入れ替えます。この操作は非常に高速で、失敗することはありません。

quint32 QDnsDomainNameRecord::timeToLive() const

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

QString QDnsDomainNameRecord::value() const

このドメイン名レコードの値を返します。

QDnsDomainNameRecord &QDnsDomainNameRecord::operator=(const QDnsDomainNameRecord &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.