diff options
Diffstat (limited to 'sources/pyside6/PySide6/QtBluetooth')
-rw-r--r-- | sources/pyside6/PySide6/QtBluetooth/CMakeLists.txt | 56 | ||||
-rw-r--r-- | sources/pyside6/PySide6/QtBluetooth/typesystem_bluetooth.xml | 120 |
2 files changed, 176 insertions, 0 deletions
diff --git a/sources/pyside6/PySide6/QtBluetooth/CMakeLists.txt b/sources/pyside6/PySide6/QtBluetooth/CMakeLists.txt new file mode 100644 index 000000000..e063a4546 --- /dev/null +++ b/sources/pyside6/PySide6/QtBluetooth/CMakeLists.txt @@ -0,0 +1,56 @@ +# Copyright (C) 2023 The Qt Company Ltd. +# SPDX-License-Identifier: BSD-3-Clause + +project(QtBluetooth) + +set(QtBluetooth_OPTIONAL_SRC ) +set(QtBluetooth_DROPPED_ENTRIES ) + +set(QtBluetooth_SRC + ${QtBluetooth_GEN_DIR}/qbluetooth_wrapper.cpp + ${QtBluetooth_GEN_DIR}/qbluetoothaddress_wrapper.cpp + ${QtBluetooth_GEN_DIR}/qbluetoothdevicediscoveryagent_wrapper.cpp + ${QtBluetooth_GEN_DIR}/qbluetoothdeviceinfo_wrapper.cpp + ${QtBluetooth_GEN_DIR}/qbluetoothhostinfo_wrapper.cpp + ${QtBluetooth_GEN_DIR}/qbluetoothlocaldevice_wrapper.cpp + ${QtBluetooth_GEN_DIR}/qbluetoothserver_wrapper.cpp + ${QtBluetooth_GEN_DIR}/qbluetoothservicediscoveryagent_wrapper.cpp + ${QtBluetooth_GEN_DIR}/qbluetoothserviceinfo_wrapper.cpp + ${QtBluetooth_GEN_DIR}/qbluetoothserviceinfo_alternative_wrapper.cpp + ${QtBluetooth_GEN_DIR}/qbluetoothserviceinfo_sequence_wrapper.cpp + ${QtBluetooth_GEN_DIR}/qbluetoothsocket_wrapper.cpp + ${QtBluetooth_GEN_DIR}/qbluetoothuuid_wrapper.cpp + ${QtBluetooth_GEN_DIR}/qlowenergyadvertisingdata_wrapper.cpp + ${QtBluetooth_GEN_DIR}/qlowenergyadvertisingparameters_wrapper.cpp + ${QtBluetooth_GEN_DIR}/qlowenergyadvertisingparameters_addressinfo_wrapper.cpp + ${QtBluetooth_GEN_DIR}/qlowenergycharacteristic_wrapper.cpp + ${QtBluetooth_GEN_DIR}/qlowenergycharacteristicdata_wrapper.cpp + ${QtBluetooth_GEN_DIR}/qlowenergyconnectionparameters_wrapper.cpp + ${QtBluetooth_GEN_DIR}/qlowenergycontroller_wrapper.cpp + ${QtBluetooth_GEN_DIR}/qlowenergydescriptor_wrapper.cpp + ${QtBluetooth_GEN_DIR}/qlowenergydescriptordata_wrapper.cpp + ${QtBluetooth_GEN_DIR}/qlowenergyservice_wrapper.cpp + ${QtBluetooth_GEN_DIR}/qlowenergyservicedata_wrapper.cpp +# module is always needed + ${QtBluetooth_GEN_DIR}/qtbluetooth_module_wrapper.cpp +) + +set(QtBluetooth_include_dirs ${QtBluetooth_SOURCE_DIR} + ${QtBluetooth_BINARY_DIR} + ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS} + ${Qt${QT_MAJOR_VERSION}Bluetooth_INCLUDE_DIRS} + ${libpyside_SOURCE_DIR} + ${QtCore_GEN_DIR}) + +set(QtBluetooth_libraries pyside6 + ${Qt${QT_MAJOR_VERSION}Bluetooth_LIBRARIES}) + +set(QtBluetooth_deps QtCore) + +create_pyside_module(NAME QtBluetooth + INCLUDE_DIRS QtBluetooth_include_dirs + LIBRARIES QtBluetooth_libraries + DEPS QtBluetooth_deps + TYPESYSTEM_PATH QtBluetooth_SOURCE_DIR + SOURCES QtBluetooth_SRC + DROPPED_ENTRIES QtBluetooth_DROPPED_ENTRIES) diff --git a/sources/pyside6/PySide6/QtBluetooth/typesystem_bluetooth.xml b/sources/pyside6/PySide6/QtBluetooth/typesystem_bluetooth.xml new file mode 100644 index 000000000..a3687b6b0 --- /dev/null +++ b/sources/pyside6/PySide6/QtBluetooth/typesystem_bluetooth.xml @@ -0,0 +1,120 @@ +<?xml version="1.0" encoding="UTF-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" + 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"/> + <enum-type name="Security" flags="SecurityFlags"/> + </namespace-type> + <value-type name="QBluetoothAddress"/> + <value-type name="QBluetoothHostInfo"/> + <object-type name="QBluetoothLocalDevice"> + <enum-type name="Error"/> + <enum-type name="HostMode"/> + <enum-type name="Pairing"/> + </object-type> + <object-type name="QBluetoothDeviceDiscoveryAgent"> + <enum-type name="DiscoveryMethod" flags="DiscoveryMethods"/> + <enum-type name="Error"/> + </object-type> + <value-type name="QBluetoothDeviceInfo"> + <enum-type name="CoreConfiguration" flags="CoreConfigurations"/> + <enum-type name="Field" flags="Fields"/> + <enum-type name="MajorDeviceClass"/> + <enum-type name="MinorAudioVideoClass"/> + <enum-type name="MinorComputerClass"/> + <enum-type name="MinorHealthClass"/> + <enum-type name="MinorImagingClass"/> + <enum-type name="MinorMiscellaneousClass"/> + <enum-type name="MinorNetworkClass"/> + <enum-type name="MinorPeripheralClass"/> + <enum-type name="MinorPhoneClass"/> + <enum-type name="MinorToyClass"/> + <enum-type name="MinorWearableClass"/> + <enum-type name="ServiceClass" flags="ServiceClasses"/> + </value-type> + <object-type name="QBluetoothServiceDiscoveryAgent"> + <enum-type name="DiscoveryMode"/> + <enum-type name="Error"/> + </object-type> + <object-type name="QBluetoothServer"> + <enum-type name="Error"/> + </object-type> + <value-type name="QBluetoothServiceInfo"> + <enum-type name="AttributeId"/> + <enum-type name="Protocol"/> + <value-type name="Alternative"/> + <value-type name="Sequence"/> + </value-type> + <object-type name="QBluetoothSocket"> + <enum-type name="SocketError"/> + <enum-type name="SocketState"/> + </object-type> + <value-type name="QBluetoothUuid"> + <enum-type name="CharacteristicType"/> + <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"/> + </value-type> + <value-type name="QLowEnergyAdvertisingParameters"> + <value-type name="AddressInfo"/> + <enum-type name="FilterPolicy"/> + <enum-type name="Mode"/> + </value-type> + <value-type name="QLowEnergyCharacteristic"> + <enum-type name="PropertyType" flags="PropertyTypes"/> + </value-type> + <value-type name="QLowEnergyCharacteristicData"/> + <value-type name="QLowEnergyConnectionParameters"/> + <object-type name="QLowEnergyController"> + <enum-type name="ControllerState"/> + <enum-type name="Error"/> + <enum-type name="RemoteAddressType"/> + <enum-type name="Role"/> + </object-type> + <value-type name="QLowEnergyDescriptor"/> + <value-type name="QLowEnergyDescriptorData"/> + <object-type name="QLowEnergyService"> + <enum-type name="DiscoveryMode"/> + <enum-type name="ServiceError"/> + <enum-type name="ServiceState"/> + <enum-type name="ServiceType" flags="ServiceTypes"/> + <enum-type name="WriteMode"/> + </object-type> + <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> |