QDnsTextRecord Class

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

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

パブリック関数

QDnsTextRecord()
QDnsTextRecord(const QDnsTextRecord &other)
~QDnsTextRecord()
QString name() const
void swap(QDnsTextRecord &other)
quint32 timeToLive() const
QList<QByteArray> values() const
QDnsTextRecord &operator=(const QDnsTextRecord &other)

詳細説明

テキスト検索を実行すると、0 個以上のレコードが返されます。各レコードは QDnsTextRecord インスタンスで表されます。

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

QDnsLookupも参照してください

メンバ関数ドキュメント

QDnsTextRecord::QDnsTextRecord()

空のテキスト・レコード・オブジェクトを構築します。

QDnsTextRecord::QDnsTextRecord(const QDnsTextRecord &other)

other のコピーを作成する。

[noexcept] QDnsTextRecord::~QDnsTextRecord()

テキストレコードを破棄する。

QString QDnsTextRecord::name() const

このテキストレコードの名前を返します。

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

このテキストレコードのインスタンスをother と交換する。この操作は非常に高速で、失敗することはない。

quint32 QDnsTextRecord::timeToLive() const

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

QList<QByteArray> QDnsTextRecord::values() const

このテキストレコードの値を返します。

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