QDnsTextRecord Class

Die Klasse QDnsTextRecord speichert Informationen über einen DNS TXT-Eintrag. Mehr...

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

Öffentliche Funktionen

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)

Detaillierte Beschreibung

Bei der Durchführung einer Textabfrage werden null oder mehr Datensätze zurückgegeben. Jeder Datensatz wird durch eine QDnsTextRecord-Instanz dargestellt.

Die Bedeutung der Felder ist in RFC 1035 definiert.

Siehe auch QDnsLookup.

Dokumentation der Mitgliedsfunktionen

QDnsTextRecord::QDnsTextRecord()

Konstruiert ein leeres Textsatzobjekt.

QDnsTextRecord::QDnsTextRecord(const QDnsTextRecord &other)

Konstruiert eine Kopie von other.

[noexcept] QDnsTextRecord::~QDnsTextRecord()

Löscht einen Textsatz.

QString QDnsTextRecord::name() const

Gibt den Namen für diesen Textsatz zurück.

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

Tauscht diese Textsatzinstanz mit other aus. Dieser Vorgang ist sehr schnell und schlägt nie fehl.

quint32 QDnsTextRecord::timeToLive() const

Gibt die Dauer in Sekunden zurück, für die dieser Datensatz gültig ist.

QList<QByteArray> QDnsTextRecord::values() const

Gibt die Werte für diesen Textsatz zurück.

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

Weist die Daten des Objekts other diesem Datensatzobjekt zu und gibt einen Verweis darauf zurück.

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