Sur cette page

QDnsMailExchangeRecord Class

La classe QDnsMailExchangeRecord stocke les informations relatives à un enregistrement DNS MX. Plus d'informations...

En-tête : #include <QDnsMailExchangeRecord>
CMake : find_package(Qt6 REQUIRED COMPONENTS Network)
target_link_libraries(mytarget PRIVATE Qt6::Network)
qmake : QT += network

Fonctions publiques

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)

Description détaillée

Lorsqu'on effectue une recherche sur un service, zéro ou plusieurs enregistrements sont renvoyés. Chaque enregistrement est représenté par une instance de QDnsMailExchangeRecord.

La signification des champs est définie dans la RFC 1035.

Voir également QDnsLookup.

Documentation des fonctions membres

QDnsMailExchangeRecord::QDnsMailExchangeRecord()

Construit un objet d'enregistrement d'échange de courrier vide.

QDnsMailExchangeRecord::QDnsMailExchangeRecord(const QDnsMailExchangeRecord &other)

Construit une copie de other.

[noexcept] QDnsMailExchangeRecord::~QDnsMailExchangeRecord()

Détruit un enregistrement d'échange de courrier.

QString QDnsMailExchangeRecord::exchange() const

Renvoie le nom de domaine de l'échange de courrier pour cet enregistrement.

QString QDnsMailExchangeRecord::name() const

Renvoie le nom de cet enregistrement.

quint16 QDnsMailExchangeRecord::preference() const

Renvoie la préférence pour cet enregistrement.

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

Échange cet enregistrement d'échange de courrier avec other. Cette opération est très rapide et n'échoue jamais.

quint32 QDnsMailExchangeRecord::timeToLive() const

Renvoie la durée en secondes pour laquelle cet enregistrement est valide.

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

Affecte les données de l'objet other à cet objet record et renvoie une référence à cet objet.

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