En esta página

QDnsTextRecord Class

La clase QDnsTextRecord almacena información sobre un registro DNS TXT. Más...

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

Funciones Públicas

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)

Descripción detallada

Cuando se realiza una búsqueda de texto, se devuelven cero o más registros. Cada registro está representado por una instancia de QDnsTextRecord.

El significado de los campos se define en RFC 1035.

Véase también QDnsLookup.

Documentación de las funciones miembro

QDnsTextRecord::QDnsTextRecord()

Construye un objeto de registro de texto vacío.

QDnsTextRecord::QDnsTextRecord(const QDnsTextRecord &other)

Construye una copia de other.

[noexcept] QDnsTextRecord::~QDnsTextRecord()

Destruye un registro de texto.

QString QDnsTextRecord::name() const

Devuelve el nombre de este registro de texto.

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

Intercambia esta instancia de registro de texto con other. Esta operación es muy rápida y nunca falla.

quint32 QDnsTextRecord::timeToLive() const

Devuelve la duración en segundos para la que este registro es válido.

QList<QByteArray> QDnsTextRecord::values() const

Devuelve los valores de este registro de texto.

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

Asigna los datos del objeto other a este objeto de registro y devuelve una referencia al mismo.

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