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 オブジェクトのデータをこのレコードオブジェクトに代入し、その参照を返す。

© 2025 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.