QDnsDomainNameRecord Class
QDnsDomainNameRecord 类用于存储有关域名记录的信息。更多内容...
| 头文件: | #include <QDnsDomainNameRecord> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Network) target_link_libraries(mytarget PRIVATE Qt6::Network) |
| qmake: | QT += network |
- 所有成员的列表,包括继承的成员
- QDnsDomainNameRecord 属于“网络编程 API”和“隐式共享类”的一部分。
公共函数
| QDnsDomainNameRecord() | |
| QDnsDomainNameRecord(const QDnsDomainNameRecord &other) | |
| ~QDnsDomainNameRecord() | |
| QString | name() const |
| void | swap(QDnsDomainNameRecord &other) |
| quint32 | timeToLive() const |
| QString | value() const |
| QDnsDomainNameRecord & | operator=(const QDnsDomainNameRecord &other) |
另请参阅 QDnsLookup 。
成员函数文档
QDnsDomainNameRecord::QDnsDomainNameRecord()
创建一个空的域名记录对象。
QDnsDomainNameRecord::QDnsDomainNameRecord(const QDnsDomainNameRecord &other)
创建other 的副本。
[noexcept] QDnsDomainNameRecord::~QDnsDomainNameRecord()
删除一个域名记录。
QString QDnsDomainNameRecord::name() const
返回该记录的名称。
[noexcept] void QDnsDomainNameRecord::swap(QDnsDomainNameRecord &other)
将此域名记录实例与other 互换。此操作非常快速,且绝不会失败。
quint32 QDnsDomainNameRecord::timeToLive() const
返回该记录的有效时长(以秒为单位)。
QString QDnsDomainNameRecord::value() const
返回此域名记录的值。
QDnsDomainNameRecord &QDnsDomainNameRecord::operator=(const QDnsDomainNameRecord &other)
将other 对象的数据赋值给此记录对象,并返回对其的引用。
© 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.