5#ifndef QAPPLICATIONSTATIC_H
6#define QAPPLICATIONSTATIC_H
8#include <QtCore/QMutex>
9#include <QtCore/qcoreapplication.h>
10#include <QtCore/qglobalstatic.h>
15#pragma qt_class(QApplicationStatic)
28 Q_CONSTINIT
static inline QBasicMutex
mutex {};
59 "The application static was used without a QCoreApplication instance");
76#define Q_APPLICATION_STATIC(TYPE, NAME, ...)
77 namespace { struct Q_QAS_ ## NAME {
78 typedef TYPE QAS_Type;
79 static void innerFunction(void *pointer)
80 noexcept(noexcept(std::remove_cv_t<QAS_Type>(__VA_ARGS__)))
82 new (pointer) QAS_Type(__VA_ARGS__);
85 static QGlobalStatic<QtGlobalStatic::ApplicationHolder<Q_QAS_ ## NAME>> NAME;
QDnsDomainNameRecordPrivate()
The QDnsDomainNameRecord class stores information about a domain name record.
QDnsHostAddressRecordPrivate()
The QDnsHostAddressRecord class stores information about a host address record.
Q_OBJECT_BINDABLE_PROPERTY(QDnsLookupPrivate, QString, name, &QDnsLookupPrivate::nameChanged)
QDnsLookupRunnable * runnable
void nameserverProtocolChanged()
void nameserverPortChanged()
void setError(QDnsLookup::Error err, QString &&msg)
QList< QDnsMailExchangeRecord > mailExchangeRecords
void makeDnsRcodeError(quint8 rcode)
QList< QDnsServiceRecord > serviceRecords
void makeInvalidReplyError(QString &&msg=QString())
QList< QDnsDomainNameRecord > canonicalNameRecords
QList< QDnsDomainNameRecord > nameServerRecords
QList< QDnsDomainNameRecord > pointerRecords
QList< QDnsHostAddressRecord > hostAddressRecords
void makeResolverSystemError(int code=-1)
QList< QDnsTlsAssociationRecord > tlsAssociationRecords
QList< QDnsTextRecord > textRecords
QDnsLookupRunnable(const QDnsLookupPrivate *d)
void run() override
Implement this pure virtual function in your subclass.
static constexpr qsizetype ReplyBufferSize
bool sendDnsOverTls(QDnsLookupReply *reply, QSpan< unsigned char > query, ReplyBuffer &response)
The QDnsLookup class represents a DNS lookup.
QDnsMailExchangeRecordPrivate()
The QDnsMailExchangeRecord class stores information about a DNS MX record.
QDnsServiceRecordPrivate()
The QDnsServiceRecord class stores information about a DNS SRV record.
QList< QByteArray > values
The QDnsTextRecord class stores information about a DNS TXT record.
QDnsTlsAssociationRecord::CertificateUsage usage
QDnsTlsAssociationRecord::MatchingType matchType
QDnsTlsAssociationRecord::Selector selector
The QDnsTlsAssociationRecord class stores information about a DNS TLSA record.
void swap(QDnsTlsAssociationRecord &other) noexcept
QDnsTlsAssociationRecord(QDnsTlsAssociationRecord &&other) noexcept=default
Q_NETWORK_EXPORT ~QDnsTlsAssociationRecord()
Destroys this TLS Association record object.
QT_REQUIRE_CONFIG(animation)
#define Q_APPLICATION_STATIC(TYPE, NAME,...)
static void qt_qdnsmailexchangerecord_sort(QList< QDnsMailExchangeRecord > &records)
static void qt_qdnsservicerecord_sort(QList< QDnsServiceRecord > &records)
static bool qt_qdnsmailexchangerecord_less_than(const QDnsMailExchangeRecord &r1, const QDnsMailExchangeRecord &r2)
static bool qt_qdnsservicerecord_less_than(const QDnsServiceRecord &r1, const QDnsServiceRecord &r2)
static QDnsLookupRunnable::EncodedLabel encodeLabel(const QString &label)
QT_REQUIRE_CONFIG(dnslookup)
constexpr quint16 DnsPort
constexpr quint16 DnsOverTlsPort
QDebug operator<<(QDebug &, QDnsLookupRunnable *)
#define qCWarning(category,...)
#define Q_STATIC_LOGGING_CATEGORY(name,...)
ApplicationHolder()=default
typename QAS::QAS_Type Type
static constexpr bool MutexLockIsNoexcept
static constexpr bool ConstructionIsNoexcept