diff options
author | Friedemann Kleint <[email protected]> | 2022-11-25 13:11:56 +0100 |
---|---|---|
committer | Friedemann Kleint <[email protected]> | 2023-02-22 08:33:15 +0100 |
commit | 4a3f337d0154105f924e2e076d8f2cb63b3aca8e (patch) | |
tree | 56bc477467fd0fa4b43de1a10ef98b4d7519195c /sources/pyside6/PySide6/QtNetwork | |
parent | 76b9c085dcc73dc631483609f59140dba1cf87e4 (diff) |
Add configuration options for some Qt classes
Add entries for classes not present in WebAssembly for QtCore.
Task-number: PYSIDE-962
Change-Id: I0b69ce4cfbbb1172893ccd2e87620b1d7ebb3872
Reviewed-by: Cristian Maureira-Fredes <[email protected]>
Reviewed-by: Christian Tismer <[email protected]>
Reviewed-by: Qt CI Bot <[email protected]>
Diffstat (limited to 'sources/pyside6/PySide6/QtNetwork')
-rw-r--r-- | sources/pyside6/PySide6/QtNetwork/typesystem_network.xml | 56 |
1 files changed, 44 insertions, 12 deletions
diff --git a/sources/pyside6/PySide6/QtNetwork/typesystem_network.xml b/sources/pyside6/PySide6/QtNetwork/typesystem_network.xml index 55fddf34f..f70021d8d 100644 --- a/sources/pyside6/PySide6/QtNetwork/typesystem_network.xml +++ b/sources/pyside6/PySide6/QtNetwork/typesystem_network.xml @@ -8,9 +8,15 @@ <rejection class="dtlsopenssl"/> - <enum-type name="QDtlsError"/> - <enum-type name="QOcspCertificateStatus"/> - <enum-type name="QOcspRevocationReason"/> + <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"> <extra-includes> @@ -66,8 +72,11 @@ <object-type name="QDtls"> <enum-type name="HandshakeState"/> + <configuration condition="QT_CONFIG(dtls)"/> + </object-type> + <object-type name="QDtlsClientVerifier"> + <configuration condition="QT_CONFIG(dtls)"/> </object-type> - <object-type name="QDtlsClientVerifier"/> <value-type name="QHstsPolicy"> <enum-type name="PolicyFlag" flags="PolicyFlags"/> @@ -96,7 +105,9 @@ </inject-code> </modify-function> </object-type> - <value-type name="QOcspResponse"/> + <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"> @@ -198,11 +209,13 @@ <value-type name="QNetworkAddressEntry"> <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"/> + <configuration condition="#ifndef QT_NO_NETWORKINTERFACE"/> </value-type> <value-type name="QNetworkProxy"> @@ -249,31 +262,45 @@ <object-type name="QNetworkDiskCache"/> <value-type name="QNetworkCacheMetaData"/> - <object-type name="QSctpServer"/> - <object-type name="QSctpSocket"/> + <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"/> <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"> <enum-type name="Error"/> + <configuration condition="QT_CONFIG(ssl)"/> </value-type> - <value-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"/> @@ -282,11 +309,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"/> + <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> |