diff options
Diffstat (limited to 'sources/pyside6/PySide6/QtBluetooth/typesystem_bluetooth.xml')
-rw-r--r-- | sources/pyside6/PySide6/QtBluetooth/typesystem_bluetooth.xml | 31 |
1 files changed, 29 insertions, 2 deletions
diff --git a/sources/pyside6/PySide6/QtBluetooth/typesystem_bluetooth.xml b/sources/pyside6/PySide6/QtBluetooth/typesystem_bluetooth.xml index ffa513a24..a3687b6b0 100644 --- a/sources/pyside6/PySide6/QtBluetooth/typesystem_bluetooth.xml +++ b/sources/pyside6/PySide6/QtBluetooth/typesystem_bluetooth.xml @@ -3,7 +3,8 @@ // Copyright (C) 2021 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.QtBluetooth"> +<typesystem package="PySide6.QtBluetooth" + namespace-begin="QT_BEGIN_NAMESPACE" namespace-end="QT_END_NAMESPACE"> <load-typesystem name="QtCore/typesystem_core.xml" generate="no"/> <namespace-type name="QBluetooth"> <enum-type name="AttAccessConstraint" flags="AttAccessConstraints"/> @@ -17,7 +18,7 @@ <enum-type name="Pairing"/> </object-type> <object-type name="QBluetoothDeviceDiscoveryAgent"> - <enum-type name="DiscoveryMethod"/> + <enum-type name="DiscoveryMethod" flags="DiscoveryMethods"/> <enum-type name="Error"/> </object-type> <value-type name="QBluetoothDeviceInfo"> @@ -58,6 +59,28 @@ <enum-type name="DescriptorType"/> <enum-type name="ProtocolUuid"/> <enum-type name="ServiceClassUuid"/> + <modify-function signature="toUInt16(bool*)const"> + <modify-argument index="1"> + <remove-argument/> + </modify-argument> + <modify-argument index="return" pyi-type="Tuple[int, bool]"> + <replace-type modified-type="PyTuple"/> + </modify-argument> + <inject-code class="target" position="beginning"> + <insert-template name="fix_bool*"/> + </inject-code> + </modify-function> + <modify-function signature="toUInt32(bool*)const"> + <modify-argument index="1"> + <remove-argument/> + </modify-argument> + <modify-argument index="return" pyi-type="Tuple[int, bool]"> + <replace-type modified-type="PyTuple"/> + </modify-argument> + <inject-code class="target" position="beginning"> + <insert-template name="fix_bool*"/> + </inject-code> + </modify-function> </value-type> <value-type name="QLowEnergyAdvertisingData"> <enum-type name="Discoverability"/> @@ -90,4 +113,8 @@ <value-type name="QLowEnergyServiceData"> <enum-type name="ServiceType"/> </value-type> + + <!-- QtNetwork is pulled in via QtBluetoothDepends. --> + <suppress-warning text="^Scoped enum 'Q(Ocsp)|(Dtls).*' does not have a type entry.*$"/> + </typesystem> |