In questa pagina

QDnsTextRecord Class

La classe QDnsTextRecord memorizza le informazioni relative a un record TXT DNS. Per saperne di più...

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

Funzioni pubbliche

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)

Descrizione dettagliata

Quando si esegue una ricerca di testo, verranno restituiti zero o più record. Ogni record è rappresentato da un'istanza di QDnsTextRecord.

Il significato dei campi è definito nella RFC 1035.

Vedi anche QDnsLookup.

Documentazione delle funzioni membro

QDnsTextRecord::QDnsTextRecord()

Crea un oggetto record di testo vuoto.

QDnsTextRecord::QDnsTextRecord(const QDnsTextRecord &other)

Crea una copia di other.

[noexcept] QDnsTextRecord::~QDnsTextRecord()

Elimina un record di testo.

QString QDnsTextRecord::name() const

Restituisce il nome di questo record di testo.

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

Sostituisce questa istanza di record di testo con other. Questa operazione è molto veloce e non fallisce mai.

quint32 QDnsTextRecord::timeToLive() const

Restituisce la durata, espressa in secondi, per la quale questo record è valido.

QList<QByteArray> QDnsTextRecord::values() const

Restituisce i valori relativi a questo record di testo.

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

Assegna i dati dell'oggetto ` other ` a questo oggetto record e restituisce un riferimento ad esso.

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