En esta página

QDnsTextRecord Class

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

Encabezado: #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

Al realizar una búsqueda de texto, se devolverán cero o más registros. Cada registro está representado por una instancia de QDnsTextRecord.

El significado de los campos se define en el RFC 1035.

Véase también QDnsLookup.

Documentación de las funciones de miembro

QDnsTextRecord::QDnsTextRecord()

Crea un objeto de registro de texto vacío.

QDnsTextRecord::QDnsTextRecord(const QDnsTextRecord &other)

Crea una copia de other.

[noexcept] QDnsTextRecord::~QDnsTextRecord()

Elimina un registro de texto.

QString QDnsTextRecord::name() const

Devuelve el nombre de este registro de texto.

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

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

quint32 QDnsTextRecord::timeToLive() const

Devuelve la duración, en segundos, durante la cual 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.