diff options
Diffstat (limited to 'sources/pyside6/PySide6/QtNetwork/typesystem_network.xml')
-rw-r--r-- | sources/pyside6/PySide6/QtNetwork/typesystem_network.xml | 318 |
1 files changed, 241 insertions, 77 deletions
diff --git a/sources/pyside6/PySide6/QtNetwork/typesystem_network.xml b/sources/pyside6/PySide6/QtNetwork/typesystem_network.xml index ea0cef7fa..4dc7c9b0a 100644 --- a/sources/pyside6/PySide6/QtNetwork/typesystem_network.xml +++ b/sources/pyside6/PySide6/QtNetwork/typesystem_network.xml @@ -1,75 +1,47 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of Qt for Python. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only --> -<typesystem package="PySide6.QtNetwork"> +<typesystem package="PySide6.QtNetwork" + namespace-begin="QT_BEGIN_NAMESPACE" namespace-end="QT_END_NAMESPACE"> <load-typesystem name="QtCore/typesystem_core.xml" generate="no"/> - <rejection class="dtlsopenssl"/> + <rejection class="QTlsPrivate"/> - <enum-type name="QDtlsError" since="5.12"/> - <enum-type name="QOcspCertificateStatus" since="5.13"/> - <enum-type name="QOcspRevocationReason" since="5.13"/> + <enum-type name="QDtlsError"> + <configuration condition="QT_CONFIG(ssl)"/> + </enum-type> + <enum-type name="QOcspCertificateStatus"> + <configuration condition="QT_CONFIG(ssl)"/> + </enum-type> + <enum-type name="QOcspRevocationReason"> + <configuration condition="QT_CONFIG(ssl)"/> + </enum-type> - <namespace-type name="QPasswordDigestor" since="5.12"> + <namespace-type name="QPasswordDigestor"> <extra-includes> <include file-name="qpassworddigestor.h" location="global"/> </extra-includes> </namespace-type> <namespace-type name="QSsl"> - <enum-type name="AlertLevel" since="6.0"/> - <enum-type name="AlertType" since="6.0"/> + <enum-type name="AlertLevel"/> + <enum-type name="AlertType"/> <enum-type name="AlternativeNameEntryType"/> <enum-type name="EncodingFormat"/> + <enum-type name="ImplementedClass" since="6.1"/> <enum-type name="KeyAlgorithm"/> <enum-type name="KeyType"/> <enum-type name="SslOption" flags="SslOptions"/> <enum-type name="SslProtocol"/> + <enum-type name="SupportedFeature" since="6.1"/> <extra-includes> <include file-name="qssl.h" location="global"/> </extra-includes> </namespace-type> <rejection class="QIPv6Address" field-name="c"/> - <rejection class="dtlsopenssl"/> <object-type name="QAbstractSocket"> <enum-type name="BindFlag" flags="BindMode"/> @@ -84,6 +56,8 @@ <modify-function signature="disconnectFromHost()" allow-thread="yes"/> <modify-function signature="waitForConnected(int)" allow-thread="yes"/> <modify-function signature="waitForDisconnected(int)" allow-thread="yes"/> + <modify-function signature="waitForBytesWritten(int)" allow-thread="yes"/> + <modify-function signature="waitForReadyRead(int)" allow-thread="yes"/> </object-type> <value-type name="QDnsDomainNameRecord"/> @@ -96,17 +70,30 @@ <value-type name="QDnsServiceRecord"/> <value-type name="QDnsTextRecord"/> - <object-type name="QDtls" since="5.12"> + <object-type name="QDtls"> <enum-type name="HandshakeState"/> + <configuration condition="QT_CONFIG(dtls)"/> + </object-type> + <object-type name="QDtlsClientVerifier"> + <configuration condition="QT_CONFIG(dtls)"/> + <value-type name="GeneratorParameters"> + <configuration condition="QT_CONFIG(dtls)"/> + </value-type> </object-type> - <value-type name="QHstsPolicy" since="5.9"> + <value-type name="QHstsPolicy"> <enum-type name="PolicyFlag" flags="PolicyFlags"/> </value-type> + <value-type name="QHttp1Configuration"/> + <value-type name="QHttpHeaders" since="6.7"> + <enum-type name="WellKnownHeader"/> + </value-type> <object-type name="QHttpMultiPart"> <enum-type name="ContentType"/> </object-type> - <value-type name="QHttpPart" since="5.9"/> + <value-type name="QHttpPart"/> + <value-type name="QHttp2Configuration"/> + <object-type name="QTcpServer"> <modify-function signature="waitForNewConnection(int,bool*)" allow-thread="yes"> <!-- FIXME removing default expression means user will always have to pass a value, but he wouldn't have to --> @@ -117,15 +104,17 @@ <remove-default-expression/> <remove-argument/> </modify-argument> - <modify-argument index="return"> - <replace-type modified-type="(retval, timeOut)"/> + <modify-argument index="return" pyi-type="Tuple[bool, bool]"> + <replace-type modified-type="(retval, timedOut)"/> </modify-argument> <inject-code class="target" position="beginning"> <insert-template name="fix_args,bool*"/> </inject-code> </modify-function> </object-type> - <value-type name="QOcspResponse" since="5.13"/> + <value-type name="QOcspResponse"> + <configuration condition="QT_CONFIG(ssl)"/> + </value-type> <object-type name="QTcpSocket"/> <object-type name="QUdpSocket"> <modify-function signature="readDatagram(char*,qint64,QHostAddress*,quint16*)" allow-thread="yes"> @@ -140,7 +129,7 @@ <remove-default-expression/> <remove-argument/> </modify-argument> - <modify-argument index="return"> + <modify-argument index="return" pyi-type="Tuple[PySide6.QtCore.QByteArray, PySide6.QtNetwork.QHostAddress, int]"> <replace-type modified-type="(data, address, port)"/> </modify-argument> <inject-code class="target" position="beginning" file="../glue/qtnetwork.cpp" snippet="qudpsocket-readdatagram"/> @@ -165,14 +154,15 @@ <inject-code class="target" position="beginning"> <insert-template name="fix_args,bool*"/> </inject-code> - <modify-argument index="return"> - <replace-type modified-type="(retval, timeOut)"/> + <modify-argument index="return" pyi-type="Tuple[bool, bool]"> + <replace-type modified-type="(retval, timedOut)"/> </modify-argument> </modify-function> </object-type> <object-type name="QLocalSocket"> <enum-type name="LocalSocketError"/> + <enum-type name="SocketOption" flags="SocketOptions"/> <enum-type name="LocalSocketState"/> </object-type> <object-type name="QNetworkAccessManager"> @@ -189,20 +179,30 @@ <modify-function signature="put(const QNetworkRequest &,QIODevice*)" allow-thread="yes"/> <modify-function signature="put(const QNetworkRequest &,const QByteArray &)" allow-thread="yes"/> <modify-function signature="sendCustomRequest(const QNetworkRequest &,const QByteArray &,QIODevice*)" allow-thread="yes" since="4.7"/> + <modify-function signature="setCache(QAbstractNetworkCache*)"> + <modify-argument index="1"> + <define-ownership class="target" owner="c++"/> + </modify-argument> + </modify-function> <modify-function signature="setCookieJar(QNetworkCookieJar*)"> <modify-argument index="1"> <define-ownership class="target" owner="c++"/> </modify-argument> </modify-function> </object-type> + <object-type name="QNetworkInformation"> + <enum-type name="Reachability"/> + <enum-type name="Feature" flags="Features"/> + <enum-type name="TransportMedium" since="6.3"/> + </object-type> <object-type name="QNetworkCookieJar"/> - <value-type name="QNetworkDatagram" since="5.8"/> + <value-type name="QNetworkDatagram"/> <object-type name="QNetworkReply"> <enum-type name="NetworkError"/> </object-type> - <value-type name="QHostAddress" hash-function="qHash"> - <enum-type name="ConversionModeFlag" flags="ConversionMode" since="5.8"/> + <value-type name="QHostAddress"> + <enum-type name="ConversionModeFlag" flags="ConversionMode"/> <enum-type name="SpecialAddress"/> <!-- ### QHostAddress(QIPv6Address) does this --> <modify-function signature="QHostAddress(const quint8*)" remove="all"/> @@ -211,17 +211,25 @@ </value-type> <value-type name="QHostInfo"> + <inject-code class="native" position="beginning" file="../glue/qtnetwork.cpp" + snippet="qhostinfo-lookuphost-functor"/> <enum-type name="HostInfoError"/> - <modify-function signature="lookupHost(QString,QObject*,const char*)" access="private"/> + <add-function signature="lookupHost(const QString &,PyCallable)"> + <inject-code class="target" position="beginning" + file="../glue/qtnetwork.cpp" + snippet="qhostinfo-lookuphost-callable"/> + </add-function> </value-type> <value-type name="QNetworkAddressEntry"> - <enum-type name="DnsEligibilityStatus" since="5.11"/> + <enum-type name="DnsEligibilityStatus"/> + <configuration condition="#ifndef QT_NO_NETWORKINTERFACE"/> </value-type> <value-type name="QNetworkInterface"> <enum-type name="InterfaceFlag" flags="InterfaceFlags"/> - <enum-type name="InterfaceType" since="5.11"/> + <enum-type name="InterfaceType"/> + <configuration condition="#ifndef QT_NO_NETWORKINTERFACE"/> </value-type> <value-type name="QNetworkProxy"> @@ -249,51 +257,200 @@ <value-type name="QAuthenticator"/> <value-type name="QNetworkCookie"> <enum-type name="RawForm"/> + <enum-type name="SameSite" since="6.1"/> <extra-includes> <include file-name="QDateTime" location="global"/> </extra-includes> </value-type> <value-type name="QNetworkRequest"> <enum-type name="Attribute"/> - <enum-type name="LoadControl" since="4.7"/> - <enum-type name="Priority" since="4.7"/> + <enum-type name="LoadControl"/> + <enum-type name="Priority"/> <enum-type name="CacheLoadControl"/> <enum-type name="KnownHeaders"/> - <enum-type name="RedirectPolicy" since="5.9"/> - <enum-type name="TransferTimeoutConstant" since="5.15"/> + <enum-type name="RedirectPolicy"/> + <enum-type name="TransferTimeoutConstant"/> </value-type> - + <value-type name="QNetworkRequestFactory" since="6.7"/> <object-type name="QAbstractNetworkCache"/> <object-type name="QNetworkDiskCache"/> <value-type name="QNetworkCacheMetaData"/> - <object-type name="QSctpServer"/> - <object-type name="QSctpSocket"/> + <object-type name="QRestAccessManager" since="6.7"> + <inject-code class="native" position="beginning" file="../glue/qtnetwork.cpp" + snippet="qrestaccessmanager-functor"/> + + <add-function signature="deleteResource(QNetworkRequest@request@,QObject*@context@,PyCallable*@slot@)" + return-type="QNetworkReply*"> + <inject-code class="target" position="beginning" file="../glue/qtnetwork.cpp" + snippet="qrestaccessmanager-callback"/> + </add-function> + + <add-function signature="get(QNetworkRequest@request@,QObject*@context@,PyCallable*@slot@)" + return-type="QNetworkReply*"> + <inject-code class="target" position="beginning" file="../glue/qtnetwork.cpp" + snippet="qrestaccessmanager-callback"/> + </add-function> + <add-function signature="get(QNetworkRequest@request@,QByteArray@data@,QObject*@context@,PyCallable*@slot@)" + return-type="QNetworkReply*"> + <inject-code class="target" position="beginning" file="../glue/qtnetwork.cpp" + snippet="qrestaccessmanager-data-callback"/> + </add-function> + <add-function signature="get(QNetworkRequest@request@,QIODevice*@data@,QObject*@context@,PyCallable*@slot@)" + return-type="QNetworkReply*"> + <inject-code class="target" position="beginning" file="../glue/qtnetwork.cpp" + snippet="qrestaccessmanager-data-callback"/> + </add-function> + <add-function signature="get(QNetworkRequest@request@,QJsonDocument@data@,QObject*@context@,PyCallable*@slot@)" + return-type="QNetworkReply*"> + <inject-code class="target" position="beginning" file="../glue/qtnetwork.cpp" + snippet="qrestaccessmanager-data-callback"/> + </add-function> + + <add-function signature="head(QNetworkRequest@request@,QObject*@context@,PyCallable*@slot@)" + return-type="QNetworkReply*"> + <inject-code class="target" position="beginning" file="../glue/qtnetwork.cpp" + snippet="qrestaccessmanager-callback"/> + </add-function> + + <add-function signature="patch(QNetworkRequest@request@,QByteArray@data@,QObject*@context@,PyCallable*@slot@)" + return-type="QNetworkReply*"> + <inject-code class="target" position="beginning" file="../glue/qtnetwork.cpp" + snippet="qrestaccessmanager-data-callback"/> + </add-function> + <add-function signature="patch(QNetworkRequest@request@,QIODevice*@data@,QObject*@context@,PyCallable*@slot@)" + return-type="QNetworkReply*"> + <inject-code class="target" position="beginning" file="../glue/qtnetwork.cpp" + snippet="qrestaccessmanager-data-callback"/> + </add-function> + <add-function signature="patch(QNetworkRequest@request@,QJsonDocument@data@,QObject*@context@,PyCallable*@slot@)" + return-type="QNetworkReply*"> + <inject-code class="target" position="beginning" file="../glue/qtnetwork.cpp" + snippet="qrestaccessmanager-data-callback"/> + </add-function> + <add-function signature="patch(QNetworkRequest@request@,QVariantMap@data@,QObject*@context@,PyCallable*@slot@)" + return-type="QNetworkReply*"> + <inject-code class="target" position="beginning" file="../glue/qtnetwork.cpp" + snippet="qrestaccessmanager-data-callback"/> + </add-function> + + <add-function signature="post(QNetworkRequest@request@,QByteArray@data@,QObject*@context@,PyCallable*@slot@)" + return-type="QNetworkReply*"> + <inject-code class="target" position="beginning" file="../glue/qtnetwork.cpp" + snippet="qrestaccessmanager-data-callback"/> + </add-function> + <add-function signature="post(QNetworkRequest@request@,QHttpMultiPart*@data@,QObject*@context@,PyCallable*@slot@)" + return-type="QNetworkReply*"> + <inject-code class="target" position="beginning" file="../glue/qtnetwork.cpp" + snippet="qrestaccessmanager-data-callback"/> + </add-function> + <add-function signature="post(QNetworkRequest@request@,QIODevice*@data@,QObject*@context@,PyCallable*@slot@)" + return-type="QNetworkReply*"> + <inject-code class="target" position="beginning" file="../glue/qtnetwork.cpp" + snippet="qrestaccessmanager-data-callback"/> + </add-function> + <add-function signature="post(QNetworkRequest@request@,QJsonDocument@data@,QObject*@context@,PyCallable*@slot@)" + return-type="QNetworkReply*"> + <inject-code class="target" position="beginning" file="../glue/qtnetwork.cpp" + snippet="qrestaccessmanager-data-callback"/> + </add-function> + <add-function signature="post(QNetworkRequest@request@,QVariantMap@data@,QObject*@context@,PyCallable*@slot@)" + return-type="QNetworkReply*"> + <inject-code class="target" position="beginning" file="../glue/qtnetwork.cpp" + snippet="qrestaccessmanager-data-callback"/> + </add-function> + + <add-function signature="put(QNetworkRequest@request@,QByteArray@data@,QObject*@context@,PyCallable*@slot@)" + return-type="QNetworkReply*"> + <inject-code class="target" position="beginning" file="../glue/qtnetwork.cpp" + snippet="qrestaccessmanager-data-callback"/> + </add-function> + <add-function signature="put(QNetworkRequest@request@,QHttpMultiPart*@data@,QObject*@context@,PyCallable*@slot@)" + return-type="QNetworkReply*"> + <inject-code class="target" position="beginning" file="../glue/qtnetwork.cpp" + snippet="qrestaccessmanager-data-callback"/> + </add-function> + <add-function signature="put(QNetworkRequest@request@,QIODevice*@data@,QObject*@context@,PyCallable*@slot@)" + return-type="QNetworkReply*"> + <inject-code class="target" position="beginning" file="../glue/qtnetwork.cpp" + snippet="qrestaccessmanager-data-callback"/> + </add-function> + <add-function signature="put(QNetworkRequest@request@,QJsonDocument@data@,QObject*@context@,PyCallable*@slot@)" + return-type="QNetworkReply*"> + <inject-code class="target" position="beginning" file="../glue/qtnetwork.cpp" + snippet="qrestaccessmanager-data-callback"/> + </add-function> + <add-function signature="put(QNetworkRequest@request@,QVariantMap@data@,QObject*@context@,PyCallable*@slot@)" + return-type="QNetworkReply*"> + <inject-code class="target" position="beginning" file="../glue/qtnetwork.cpp" + snippet="qrestaccessmanager-data-callback"/> + </add-function> + + <add-function signature="sendCustomRequest(QNetworkRequest@request@,QByteArray@method@,QByteArray@data@,QObject*@context@,PyCallable*@slot@)" + return-type="QNetworkReply*"> + <inject-code class="target" position="beginning" file="../glue/qtnetwork.cpp" + snippet="qrestaccessmanager-method-data-callback"/> + </add-function> + <add-function signature="sendCustomRequest(QNetworkRequest@request@,QByteArray@method@,QHttpMultiPart*@data@,QObject*@context@,PyCallable*@slot@)" + return-type="QNetworkReply*"> + <inject-code class="target" position="beginning" file="../glue/qtnetwork.cpp" + snippet="qrestaccessmanager-method-data-callback"/> + </add-function> + <add-function signature="sendCustomRequest(QNetworkRequest@request@,QByteArray@method@,QIODevice*@data@,QObject*@context@,PyCallable*@slot@)" + return-type="QNetworkReply*"> + <inject-code class="target" position="beginning" file="../glue/qtnetwork.cpp" + snippet="qrestaccessmanager-method-data-callback"/> + </add-function> + </object-type> + + <object-type name="QRestReply" since="6.7"> + <add-function signature="readJson()" return-type="PyObject"> + <modify-argument index="return" + pyi-type="Tuple[Optional[PySide6.QtCore.QJsonDocument],PySide6.QtCore.QJsonParseError]"/> + <inject-code class="target" position="beginning" file="../glue/qtnetwork.cpp" + snippet="qrestreply-readjson"/> + </add-function> + </object-type> + + <object-type name="QSctpServer"> + <configuration condition="QT_CONFIG(sctp)"/> + </object-type> + <object-type name="QSctpSocket"> + <configuration condition="QT_CONFIG(sctp)"/> + </object-type> <!-- The following entries may be present in the system or not. Keep this section organized. --> <value-type name="QSslCertificate"> - <enum-type name="PatternSyntax" since="5.15"/> + <enum-type name="PatternSyntax"/> <enum-type name="SubjectInfo"/> + <configuration condition="QT_CONFIG(ssl)"/> </value-type> - <value-type name="QSslCertificateExtension"/> + <value-type name="QSslCertificateExtension"> + <configuration condition="QT_CONFIG(ssl)"/> + </value-type> - <value-type name="QSslCipher"/> + <value-type name="QSslCipher"> + <configuration condition="QT_CONFIG(ssl)"/> + </value-type> <value-type name="QSslConfiguration"> <enum-type name="NextProtocolNegotiationStatus"/> + <configuration condition="QT_CONFIG(ssl)"/> </value-type> - <value-type name="QSslDiffieHellmanParameters" since="5.8"> + <value-type name="QSslDiffieHellmanParameters"> <enum-type name="Error"/> + <configuration condition="QT_CONFIG(ssl)"/> </value-type> - <!-- Problems with operator==(QSslEllipticCurve,QSslEllipticCurve) - <object-type name="QSslEllipticCurve"/> - --> + <value-type name="QSslEllipticCurve"> + <configuration condition="QT_CONFIG(ssl)"/> + </value-type> <value-type name="QSslError"> <enum-type name="SslError"/> + <configuration condition="QT_CONFIG(ssl)"/> </value-type> <value-type name="QSslKey"/> @@ -302,9 +459,16 @@ <enum-type name="PeerVerifyMode"/> <modify-function signature="connectToHostEncrypted(const QString&,quint16,QFlags<QIODeviceBase::OpenModeFlag>,QAbstractSocket::NetworkLayerProtocol)" allow-thread="yes"/> <modify-function signature="waitForEncrypted(int)" allow-thread="yes"/> + <configuration condition="QT_CONFIG(ssl)"/> </object-type> - <value-type name="QSslPreSharedKeyAuthenticator"/> + <value-type name="QSslPreSharedKeyAuthenticator"> + <configuration condition="QT_CONFIG(ssl)"/> + </value-type> + + <object-type name="QSslServer" since="6.4"> + <configuration condition="QT_CONFIG(ssl)"/> + </object-type> <!-- The above entries may be present in the system or not. Keep this section organized. --> </typesystem> |