diff options
Diffstat (limited to 'sources/pyside6/PySide6/QtSensors')
-rw-r--r-- | sources/pyside6/PySide6/QtSensors/CMakeLists.txt | 94 | ||||
-rw-r--r-- | sources/pyside6/PySide6/QtSensors/typesystem_sensors.xml | 87 |
2 files changed, 181 insertions, 0 deletions
diff --git a/sources/pyside6/PySide6/QtSensors/CMakeLists.txt b/sources/pyside6/PySide6/QtSensors/CMakeLists.txt new file mode 100644 index 000000000..0152d2884 --- /dev/null +++ b/sources/pyside6/PySide6/QtSensors/CMakeLists.txt @@ -0,0 +1,94 @@ +# Copyright (C) 2023 The Qt Company Ltd. +# SPDX-License-Identifier: BSD-3-Clause + +project(QtSensors) + +set(QtSensors_OPTIONAL_SRC ) +set(QtSensors_DROPPED_ENTRIES ) + +set(QtSensors_SRC +# overrides QObject::metaObject() by private method +# ${QtSensors_GEN_DIR}/qsensorgesture_wrapper.cpp +# ${QtSensors_GEN_DIR}/qsensorgesturemanager_wrapper.cpp +# ${QtSensors_GEN_DIR}/qsensorgestureplugininterface_wrapper.cpp +# ${QtSensors_GEN_DIR}/qsensorgesturerecognizer_wrapper.cpp + ${QtSensors_GEN_DIR}/qaccelerometer_wrapper.cpp + ${QtSensors_GEN_DIR}/qaccelerometerfilter_wrapper.cpp + ${QtSensors_GEN_DIR}/qaccelerometerreading_wrapper.cpp + ${QtSensors_GEN_DIR}/qambientlightfilter_wrapper.cpp + ${QtSensors_GEN_DIR}/qambientlightreading_wrapper.cpp + ${QtSensors_GEN_DIR}/qambientlightsensor_wrapper.cpp + ${QtSensors_GEN_DIR}/qambienttemperaturefilter_wrapper.cpp + ${QtSensors_GEN_DIR}/qambienttemperaturereading_wrapper.cpp + ${QtSensors_GEN_DIR}/qambienttemperaturesensor_wrapper.cpp + ${QtSensors_GEN_DIR}/qcompass_wrapper.cpp + ${QtSensors_GEN_DIR}/qcompassfilter_wrapper.cpp + ${QtSensors_GEN_DIR}/qcompassreading_wrapper.cpp + ${QtSensors_GEN_DIR}/qgyroscope_wrapper.cpp + ${QtSensors_GEN_DIR}/qgyroscopefilter_wrapper.cpp + ${QtSensors_GEN_DIR}/qgyroscopereading_wrapper.cpp + ${QtSensors_GEN_DIR}/qhumidityfilter_wrapper.cpp + ${QtSensors_GEN_DIR}/qhumidityreading_wrapper.cpp + ${QtSensors_GEN_DIR}/qhumiditysensor_wrapper.cpp + ${QtSensors_GEN_DIR}/qirproximityfilter_wrapper.cpp + ${QtSensors_GEN_DIR}/qirproximityreading_wrapper.cpp + ${QtSensors_GEN_DIR}/qirproximitysensor_wrapper.cpp + ${QtSensors_GEN_DIR}/qlidfilter_wrapper.cpp + ${QtSensors_GEN_DIR}/qlidreading_wrapper.cpp + ${QtSensors_GEN_DIR}/qlidsensor_wrapper.cpp + ${QtSensors_GEN_DIR}/qlightfilter_wrapper.cpp + ${QtSensors_GEN_DIR}/qlightreading_wrapper.cpp + ${QtSensors_GEN_DIR}/qlightsensor_wrapper.cpp + ${QtSensors_GEN_DIR}/qmagnetometer_wrapper.cpp + ${QtSensors_GEN_DIR}/qmagnetometerfilter_wrapper.cpp + ${QtSensors_GEN_DIR}/qmagnetometerreading_wrapper.cpp + ${QtSensors_GEN_DIR}/qorientationfilter_wrapper.cpp + ${QtSensors_GEN_DIR}/qorientationreading_wrapper.cpp + ${QtSensors_GEN_DIR}/qorientationsensor_wrapper.cpp + ${QtSensors_GEN_DIR}/qpressurefilter_wrapper.cpp + ${QtSensors_GEN_DIR}/qpressurereading_wrapper.cpp + ${QtSensors_GEN_DIR}/qpressuresensor_wrapper.cpp + ${QtSensors_GEN_DIR}/qproximityfilter_wrapper.cpp + ${QtSensors_GEN_DIR}/qproximityreading_wrapper.cpp + ${QtSensors_GEN_DIR}/qproximitysensor_wrapper.cpp + ${QtSensors_GEN_DIR}/qrotationfilter_wrapper.cpp + ${QtSensors_GEN_DIR}/qrotationreading_wrapper.cpp + ${QtSensors_GEN_DIR}/qrotationsensor_wrapper.cpp + ${QtSensors_GEN_DIR}/qsensor_wrapper.cpp + ${QtSensors_GEN_DIR}/qsensorfilter_wrapper.cpp + ${QtSensors_GEN_DIR}/qsensorreading_wrapper.cpp + ${QtSensors_GEN_DIR}/qoutputrange_wrapper.cpp + ${QtSensors_GEN_DIR}/qsensorbackend_wrapper.cpp + ${QtSensors_GEN_DIR}/qsensorbackendfactory_wrapper.cpp + ${QtSensors_GEN_DIR}/qsensormanager_wrapper.cpp + ${QtSensors_GEN_DIR}/qsensorchangesinterface_wrapper.cpp + ${QtSensors_GEN_DIR}/qsensorplugininterface_wrapper.cpp + ${QtSensors_GEN_DIR}/qtapfilter_wrapper.cpp + ${QtSensors_GEN_DIR}/qtapreading_wrapper.cpp + ${QtSensors_GEN_DIR}/qtapsensor_wrapper.cpp + ${QtSensors_GEN_DIR}/qtiltfilter_wrapper.cpp + ${QtSensors_GEN_DIR}/qtiltreading_wrapper.cpp + ${QtSensors_GEN_DIR}/qtiltsensor_wrapper.cpp +# module is always needed + ${QtSensors_GEN_DIR}/qtsensors_module_wrapper.cpp +) + +set(QtSensors_include_dirs ${QtSensors_SOURCE_DIR} + ${QtSensors_BINARY_DIR} + ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS} + ${Qt${QT_MAJOR_VERSION}Sensors_INCLUDE_DIRS} + ${libpyside_SOURCE_DIR} + ${QtCore_GEN_DIR}) + +set(QtSensors_libraries pyside6 + ${Qt${QT_MAJOR_VERSION}Sensors_LIBRARIES}) + +set(QtSensors_deps QtCore) + +create_pyside_module(NAME QtSensors + INCLUDE_DIRS QtSensors_include_dirs + LIBRARIES QtSensors_libraries + DEPS QtSensors_deps + TYPESYSTEM_PATH QtSensors_SOURCE_DIR + SOURCES QtSensors_SRC + DROPPED_ENTRIES QtSensors_DROPPED_ENTRIES) diff --git a/sources/pyside6/PySide6/QtSensors/typesystem_sensors.xml b/sources/pyside6/PySide6/QtSensors/typesystem_sensors.xml new file mode 100644 index 000000000..4efd08277 --- /dev/null +++ b/sources/pyside6/PySide6/QtSensors/typesystem_sensors.xml @@ -0,0 +1,87 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +// Copyright (C) 2018 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.QtSensors" + namespace-begin="QT_BEGIN_NAMESPACE" namespace-end="QT_END_NAMESPACE"> + <load-typesystem name="QtCore/typesystem_core.xml" generate="no"/> +<!-- overrides QObject::metaObject() by private method + <object-type name="QSensorGesture"/> +--> +<!-- Disabled by + 5991224e6713eef4a456c408fcf797662fa2a66c in qt/qtsensors : + https://codereview.qt-project.org/c/qt/qtsensors/+/364924 + <object-type name="QSensorGestureManager"/> + <object-type name="QSensorGesturePluginInterface"/> + <object-type name="QSensorGestureRecognizer"/> +--> + <object-type name="QAccelerometer"> + <enum-type name="AccelerationMode"/> + </object-type> + <object-type name="QAccelerometerFilter"/> + <object-type name="QAccelerometerReading"/> + <object-type name="QAmbientLightFilter"/> + <object-type name="QAmbientLightReading"> + <enum-type name="LightLevel"/> + </object-type> + <object-type name="QAmbientLightSensor"/> + <object-type name="QAmbientTemperatureFilter"/> + <object-type name="QAmbientTemperatureReading"/> + <object-type name="QAmbientTemperatureSensor"/> + <object-type name="QCompass"/> + <object-type name="QCompassFilter"/> + <object-type name="QCompassReading"/> + <object-type name="QGyroscope"/> + <object-type name="QGyroscopeFilter"/> + <object-type name="QGyroscopeReading"/> + <object-type name="QHumidityFilter"/> + <object-type name="QHumidityReading"/> + <object-type name="QHumiditySensor"/> + <object-type name="QIRProximityFilter"/> + <object-type name="QIRProximityReading"/> + <object-type name="QIRProximitySensor"/> + <object-type name="QLidFilter"/> + <object-type name="QLidReading"/> + <object-type name="QLidSensor"/> + <object-type name="QLightFilter"/> + <object-type name="QLightReading"/> + <object-type name="QLightSensor"/> + <object-type name="QMagnetometer"/> + <object-type name="QMagnetometerFilter"/> + <object-type name="QMagnetometerReading"/> + <object-type name="QOrientationFilter"/> + <object-type name="QOrientationReading"> + <enum-type name="Orientation"/> + </object-type> + <object-type name="QOrientationSensor"/> + <object-type name="QPressureFilter"/> + <object-type name="QPressureReading"/> + <object-type name="QPressureSensor"/> + <object-type name="QProximityFilter"/> + <object-type name="QProximityReading"/> + <object-type name="QProximitySensor"/> + <object-type name="QRotationFilter"/> + <object-type name="QRotationReading"/> + <object-type name="QRotationSensor"/> + <object-type name="QSensor"> + <enum-type name="Feature"/> + <enum-type name="AxesOrientationMode"/> + </object-type> + <object-type name="QSensorFilter"/> + <object-type name="QSensorReading"/> + <value-type name="qoutputrange"/> + <object-type name="QSensorBackend"/> + <object-type name="QSensorBackendFactory"/> + <object-type name="QSensorManager"/> + <object-type name="QSensorChangesInterface"/> + <object-type name="QSensorPluginInterface"/> + <object-type name="QTapFilter"/> + <object-type name="QTapReading"> + <enum-type name="TapDirection"/> + </object-type> + <object-type name="QTapSensor"/> + <object-type name="QTiltFilter"/> + <object-type name="QTiltReading"/> + <object-type name="QTiltSensor"/> +</typesystem> |