Nesta página

QDnsMailExchangeRecord Class

A classe QDnsMailExchangeRecord armazena informações sobre um registro MX do DNS. Mais...

Cabeçalho: #include <QDnsMailExchangeRecord>
CMake: find_package(Qt6 REQUIRED COMPONENTS Network)
target_link_libraries(mytarget PRIVATE Qt6::Network)
qmake: QT += network

Funções públicas

QDnsMailExchangeRecord()
QDnsMailExchangeRecord(const QDnsMailExchangeRecord &other)
~QDnsMailExchangeRecord()
QString exchange() const
QString name() const
quint16 preference() const
void swap(QDnsMailExchangeRecord &other)
quint32 timeToLive() const
QDnsMailExchangeRecord &operator=(const QDnsMailExchangeRecord &other)

Descrição detalhada

Ao realizar uma consulta a um serviço, serão retornados zero ou mais registros. Cada registro é representado por uma instância de QDnsMailExchangeRecord.

O significado dos campos está definido na RFC 1035.

Veja também QDnsLookup.

Documentação das funções de membro

QDnsMailExchangeRecord::QDnsMailExchangeRecord()

Cria um objeto de registro de mail exchange vazio.

QDnsMailExchangeRecord::QDnsMailExchangeRecord(const QDnsMailExchangeRecord &other)

Cria uma cópia de other.

[noexcept] QDnsMailExchangeRecord::~QDnsMailExchangeRecord()

Exclui um registro de servidor de e-mail.

QString QDnsMailExchangeRecord::exchange() const

Retorna o nome de domínio do servidor de e-mail (mail exchange) associado a este registro.

QString QDnsMailExchangeRecord::name() const

Retorna o nome deste registro.

quint16 QDnsMailExchangeRecord::preference() const

Retorna a preferência para este registro.

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

Troca este registro de troca de e-mails com other. Essa operação é muito rápida e nunca falha.

quint32 QDnsMailExchangeRecord::timeToLive() const

Retorna o período, em segundos, durante o qual este registro é válido.

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

Atribui os dados do objeto ` other ` a este objeto de registro e retorna uma referência a ele.

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