1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310
|
// qdnslookup.sip generated by MetaSIP
//
// This file is part of the QtNetwork Python extension module.
//
// Copyright (c) 2025 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of PyQt6.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QDnsDomainNameRecord
{
%TypeHeaderCode
#include <qdnslookup.h>
%End
public:
QDnsDomainNameRecord();
QDnsDomainNameRecord(const QDnsDomainNameRecord &other);
~QDnsDomainNameRecord();
void swap(QDnsDomainNameRecord &other /Constrained/);
QString name() const;
quint32 timeToLive() const;
QString value() const;
};
class QDnsHostAddressRecord
{
%TypeHeaderCode
#include <qdnslookup.h>
%End
public:
QDnsHostAddressRecord();
QDnsHostAddressRecord(const QDnsHostAddressRecord &other);
~QDnsHostAddressRecord();
void swap(QDnsHostAddressRecord &other /Constrained/);
QString name() const;
quint32 timeToLive() const;
QHostAddress value() const;
};
class QDnsMailExchangeRecord
{
%TypeHeaderCode
#include <qdnslookup.h>
%End
public:
QDnsMailExchangeRecord();
QDnsMailExchangeRecord(const QDnsMailExchangeRecord &other);
~QDnsMailExchangeRecord();
void swap(QDnsMailExchangeRecord &other /Constrained/);
QString exchange() const;
QString name() const;
quint16 preference() const;
quint32 timeToLive() const;
};
class QDnsServiceRecord
{
%TypeHeaderCode
#include <qdnslookup.h>
%End
public:
QDnsServiceRecord();
QDnsServiceRecord(const QDnsServiceRecord &other);
~QDnsServiceRecord();
void swap(QDnsServiceRecord &other /Constrained/);
QString name() const;
quint16 port() const;
quint16 priority() const;
QString target() const;
quint32 timeToLive() const;
quint16 weight() const;
};
class QDnsTextRecord
{
%TypeHeaderCode
#include <qdnslookup.h>
%End
public:
QDnsTextRecord();
QDnsTextRecord(const QDnsTextRecord &other);
~QDnsTextRecord();
void swap(QDnsTextRecord &other /Constrained/);
QString name() const;
quint32 timeToLive() const;
QList<QByteArray> values() const;
};
%If (Qt_6_8_0 -)
class QDnsTlsAssociationRecord
{
%TypeHeaderCode
#include <qdnslookup.h>
%End
public:
enum class CertificateUsage : quint8
{
CertificateAuthorityConstrait,
ServiceCertificateConstraint,
TrustAnchorAssertion,
DomainIssuedCertificate,
PrivateUse,
PKIX_TA,
PKIX_EE,
DANE_TA,
DANE_EE,
PrivCert,
};
enum class Selector : quint8
{
FullCertificate,
SubjectPublicKeyInfo,
PrivateUse,
Cert,
SPKI,
PrivSel,
};
enum class MatchingType : quint8
{
Exact,
Sha256,
Sha512,
PrivateUse,
PrivMatch,
};
QDnsTlsAssociationRecord();
QDnsTlsAssociationRecord(const QDnsTlsAssociationRecord &other);
~QDnsTlsAssociationRecord();
void swap(QDnsTlsAssociationRecord &other /Constrained/);
QString name() const;
quint32 timeToLive() const;
QDnsTlsAssociationRecord::CertificateUsage usage() const;
QDnsTlsAssociationRecord::Selector selector() const;
QDnsTlsAssociationRecord::MatchingType matchType() const;
QByteArray value() const;
};
%End
class QDnsLookup : public QObject
{
%TypeHeaderCode
#include <qdnslookup.h>
%End
public:
enum Error
{
NoError,
ResolverError,
OperationCancelledError,
InvalidRequestError,
InvalidReplyError,
ServerFailureError,
ServerRefusedError,
NotFoundError,
%If (Qt_6_6_0 -)
TimeoutError,
%End
};
%If (Qt_6_8_0 -)
enum Protocol : quint8
{
Standard,
DnsOverTls,
};
%End
enum Type
{
A,
AAAA,
ANY,
CNAME,
MX,
NS,
PTR,
SRV,
TXT,
%If (Qt_6_8_0 -)
TLSA,
%End
};
explicit QDnsLookup(QObject *parent /TransferThis/ = 0);
QDnsLookup(QDnsLookup::Type type, const QString &name, QObject *parent /TransferThis/ = 0);
QDnsLookup(QDnsLookup::Type type, const QString &name, const QHostAddress &nameserver, QObject *parent /TransferThis/ = 0);
%If (Qt_6_6_0 -)
QDnsLookup(QDnsLookup::Type type, const QString &name, const QHostAddress &nameserver, quint16 port, QObject *parent /TransferThis/ = 0);
%End
%If (Qt_6_8_0 -)
QDnsLookup(QDnsLookup::Type type, const QString &name, QDnsLookup::Protocol protocol, const QHostAddress &nameserver, quint16 port = 0, QObject *parent /TransferThis/ = 0);
%End
virtual ~QDnsLookup();
QDnsLookup::Error error() const;
QString errorString() const;
bool isFinished() const;
QString name() const;
void setName(const QString &name);
QDnsLookup::Type type() const;
void setType(QDnsLookup::Type);
QList<QDnsDomainNameRecord> canonicalNameRecords() const;
QList<QDnsHostAddressRecord> hostAddressRecords() const;
QList<QDnsMailExchangeRecord> mailExchangeRecords() const;
QList<QDnsDomainNameRecord> nameServerRecords() const;
QList<QDnsDomainNameRecord> pointerRecords() const;
QList<QDnsServiceRecord> serviceRecords() const;
QList<QDnsTextRecord> textRecords() const;
public slots:
void abort() /ReleaseGIL/;
void lookup() /ReleaseGIL/;
signals:
void finished();
void nameChanged(const QString &name);
%If (Qt_6_8_0 -)
void typeChanged(QDnsLookup::Type type);
%End
%If (- Qt_6_8_0)
void typeChanged(QDnsLookup::Type type /ScopesStripped=1/);
%End
public:
QHostAddress nameserver() const;
void setNameserver(const QHostAddress &nameserver);
%If (Qt_6_6_0 -)
void setNameserver(const QHostAddress &nameserver, quint16 port);
%End
%If (Qt_6_8_0 -)
void setNameserver(QDnsLookup::Protocol protocol, const QHostAddress &nameserver, quint16 port = 0);
%End
signals:
void nameserverChanged(const QHostAddress &nameserver);
public:
%If (Qt_6_6_0 -)
quint16 nameserverPort() const;
%End
%If (Qt_6_6_0 -)
void setNameserverPort(quint16 port);
%End
signals:
%If (Qt_6_6_0 -)
void nameserverPortChanged(quint16 port);
%End
public:
%If (Qt_6_8_0 -)
bool isAuthenticData() const;
%End
%If (Qt_6_8_0 -)
QDnsLookup::Protocol nameserverProtocol() const;
%End
%If (Qt_6_8_0 -)
void setNameserverProtocol(QDnsLookup::Protocol protocol);
%End
%If (Qt_6_8_0 -)
QList<QDnsTlsAssociationRecord> tlsAssociationRecords() const;
%End
%If (Qt_6_8_0 -)
%If (PyQt_SSL)
void setSslConfiguration(const QSslConfiguration &sslConfiguration);
%End
%End
%If (Qt_6_8_0 -)
%If (PyQt_SSL)
QSslConfiguration sslConfiguration() const;
%End
%End
%If (Qt_6_8_0 -)
static bool isProtocolSupported(QDnsLookup::Protocol protocol);
%End
%If (Qt_6_8_0 -)
static quint16 defaultPortForProtocol(QDnsLookup::Protocol protocol);
%End
signals:
%If (Qt_6_8_0 -)
void nameserverProtocolChanged(QDnsLookup::Protocol protocol);
%End
};
|