aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml
diff options
context:
space:
mode:
authorShyamnath Premnadh <Shyamnath.Premnadh@qt.io>2023-05-22 16:32:24 +0200
committerShyamnath Premnadh <Shyamnath.Premnadh@qt.io>2023-09-08 19:17:25 +0200
commitb6abfbedef444ab15f5340c5edfef7acfa06dc7f (patch)
tree373d5c3a0d090a611f701b9101307688aedef88b /sources/pyside6/PySide6/QtCore/typesystem_core_common.xml
parente297c61af676ed0eb0c150237c8d204c2177c55b (diff)
PySide: Add checkPermission()
- QPermission is an opaque wrapper around typed Permissions. The conversion from specific typed Permission to QPermission for usage within API functions like checkPermission(QPermission) involved implicit conversion from the typed Permission to QPermission through a templated constructor. Therefore, Shiboken needs to handle each of the conversions explicitly. - Only relevant for platforms like Android, where QT_FEATURE_permissions is turned ON. Pick-to: 6.5 Task-number: PYSIDE-1612 Change-Id: I097bf6f24a7ac79e9a62455dab9f3c8bdf6b8246 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/pyside6/PySide6/QtCore/typesystem_core_common.xml')
-rw-r--r--sources/pyside6/PySide6/QtCore/typesystem_core_common.xml8
1 files changed, 8 insertions, 0 deletions
diff --git a/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml b/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml
index 07a03b3e3..c943fffd6 100644
--- a/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml
+++ b/sources/pyside6/PySide6/QtCore/typesystem_core_common.xml
@@ -2624,6 +2624,14 @@
<modify-argument index="2" pyi-type="str"/>
<modify-argument index="3" pyi-type="Optional[str]"/>
</modify-function>
+ <?if !no_QPermission?>
+ <declare-function signature="checkPermission(const QBluetoothPermission &amp; @permission@)" return-type="Qt::PermissionStatus" since="6.5" />
+ <declare-function signature="checkPermission(const QCalendarPermission &amp; @permission@)" return-type="Qt::PermissionStatus" since="6.5" />
+ <declare-function signature="checkPermission(const QCameraPermission &amp; @permission@)" return-type="Qt::PermissionStatus" since="6.5" />
+ <declare-function signature="checkPermission(const QContactsPermission &amp; @permission@)" return-type="Qt::PermissionStatus" since="6.5" />
+ <declare-function signature="checkPermission(const QLocationPermission &amp; @permission@)" return-type="Qt::PermissionStatus" since="6.5" />
+ <declare-function signature="checkPermission(const QMicrophonePermission &amp; @permission@)" return-type="Qt::PermissionStatus" since="6.5" />
+ <?endif?>
</object-type>
<object-type name="QSettings">
<enum-type name="Format"/>