219 Q_PROPERTY(Error error READ error NOTIFY finished)
220 Q_PROPERTY(
bool authenticData READ isAuthenticData NOTIFY finished)
221 Q_PROPERTY(QString errorString READ errorString NOTIFY finished)
222 Q_PROPERTY(QString name READ name WRITE setName NOTIFY nameChanged BINDABLE bindableName)
223 Q_PROPERTY(Type type READ type WRITE setType NOTIFY typeChanged BINDABLE bindableType)
224 Q_PROPERTY(QHostAddress nameserver READ nameserver WRITE setNameserver NOTIFY nameserverChanged
225 BINDABLE bindableNameserver)
226 Q_PROPERTY(quint16 nameserverPort READ nameserverPort WRITE setNameserverPort
227 NOTIFY nameserverPortChanged BINDABLE bindableNameserverPort)
228 Q_PROPERTY(Protocol nameserverProtocol READ nameserverProtocol WRITE setNameserverProtocol
229 NOTIFY nameserverProtocolChanged BINDABLE bindableNameserverProtocol)
236 OperationCancelledError,
261 enum Protocol : quint8 {
267 explicit QDnsLookup(QObject *parent =
nullptr);
268 QDnsLookup(Type type,
const QString &name, QObject *parent =
nullptr);
269 QDnsLookup(Type type,
const QString &name,
const QHostAddress &nameserver, QObject *parent =
nullptr);
270 QDnsLookup(Type type,
const QString &name,
const QHostAddress &nameserver, quint16 port,
271 QObject *parent =
nullptr);
272 QDnsLookup(Type type,
const QString &name, Protocol protocol,
const QHostAddress &nameserver,
273 quint16 port = 0, QObject *parent =
nullptr);
276 bool isAuthenticData()
const;
278 QString errorString()
const;
279 bool isFinished()
const;
281 QString name()
const;
282 void setName(
const QString &name);
283 QBindable<QString> bindableName();
286 void setType(QDnsLookup::Type);
287 QBindable<Type> bindableType();
289 QHostAddress nameserver()
const;
290 void setNameserver(
const QHostAddress &nameserver);
291 QBindable<QHostAddress> bindableNameserver();
292 quint16 nameserverPort()
const;
293 void setNameserverPort(quint16 port);
294 QBindable<quint16> bindableNameserverPort();
295 Protocol nameserverProtocol()
const;
296 void setNameserverProtocol(Protocol protocol);
297 QBindable<Protocol> bindableNameserverProtocol();
298 void setNameserver(Protocol protocol,
const QHostAddress &nameserver, quint16 port = 0);
299 QT_NETWORK_INLINE_SINCE(6, 8)
300 void setNameserver(
const QHostAddress &nameserver, quint16 port);
302 QList<QDnsDomainNameRecord> canonicalNameRecords()
const;
303 QList<QDnsHostAddressRecord> hostAddressRecords()
const;
304 QList<QDnsMailExchangeRecord> mailExchangeRecords()
const;
305 QList<QDnsDomainNameRecord> nameServerRecords()
const;
306 QList<QDnsDomainNameRecord> pointerRecords()
const;
307 QList<QDnsServiceRecord> serviceRecords()
const;
308 QList<QDnsTextRecord> textRecords()
const;
309 QList<QDnsTlsAssociationRecord> tlsAssociationRecords()
const;
312 void setSslConfiguration(
const QSslConfiguration &sslConfiguration);
313 QSslConfiguration sslConfiguration()
const;
316 static bool isProtocolSupported(Protocol protocol);
317 Q_DECL_CONST_FUNCTION
static quint16 defaultPortForProtocol(Protocol protocol)
noexcept;
325 void nameChanged(
const QString &name);
326 void typeChanged(QDnsLookup::Type type);
327 void nameserverChanged(
const QHostAddress &nameserver);
328 void nameserverPortChanged(quint16 port);
329 void nameserverProtocolChanged(QDnsLookup::Protocol protocol);
332 Q_DECLARE_PRIVATE(QDnsLookup)
The QDnsDomainNameRecord class stores information about a domain name record.
The QDnsTextRecord class stores information about a DNS TXT record.