Auf dieser Seite

QDnsDomainNameRecord Class

Die Klasse „QDnsDomainNameRecord“ speichert Informationen zu einem Domainnamen-Eintrag. Mehr...

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

Öffentliche Funktionen

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

Ausführliche Beschreibung

Bei der Durchführung einer Nameserver-Abfrage werden null oder mehr Einträge zurückgegeben. Jeder Eintrag wird durch eine QDnsDomainNameRecord-Instanz dargestellt.

Siehe auch „ QDnsLookup “.

Dokumentation zu den Mitgliedsfunktionen

QDnsDomainNameRecord::QDnsDomainNameRecord()

Erstellt ein leeres Objekt für einen Domainnamen-Eintrag.

QDnsDomainNameRecord::QDnsDomainNameRecord(const QDnsDomainNameRecord &other)

Erstellt eine Kopie von „ other “.

[noexcept] QDnsDomainNameRecord::~QDnsDomainNameRecord()

Löscht einen Domainnamen-Eintrag.

QString QDnsDomainNameRecord::name() const

Gibt den Namen dieses Datensatzes zurück.

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

Ersetzt diese Instanz des Domainnamen-Eintrags durch other. Dieser Vorgang ist sehr schnell und schlägt niemals fehl.

quint32 QDnsDomainNameRecord::timeToLive() const

Gibt die Gültigkeitsdauer dieses Datensatzes in Sekunden zurück.

QString QDnsDomainNameRecord::value() const

Gibt den Wert für diesen Domainnamen-Eintrag zurück.

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

Weist diesem Datensatzobjekt die Daten des Objekts „ other “ zu und gibt eine Referenz darauf zurück.

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