qt5base-lts/tests/auto/corelib
Volker Hilsheimer 367092d7e0 Return specific types for frequently used Java objects
This allows us to specialize JNI type signature templates for e.g. the
context object, which in Java signatures is "android/content/Context".

Introduce a Q_DECLARE_JNI_TYPE macro that takes care of the plumbing.
The types declared this way live in the QtJniTypes namespace, and
transparently convert from and to jobject. Since jobject is a typedef
to _jobject* we cannot create a subclass. Use a "Object" superclass
that we can provide a QJniObject constructor for so that we don't
require the QJniObject declaration to be able to use the macro.

The APIs in the QNativeInterface namespace doesn't provide source or
binary compatibility guarantees, so we can change the return types.

Change-Id: I4cf9fa734ec9a5550b6fddeb14ef0ffd72663f29
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
2022-05-17 00:34:06 +02:00
..
animation Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
global Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
io Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
itemmodels Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
kernel Return specific types for frequently used Java objects 2022-05-17 00:34:06 +02:00
mimetypes Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
platform Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
plugin Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
serialization Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
text Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
thread Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
time Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
tools Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
CMakeLists.txt Add tests for QAndroidApplication's sdkVersion and activity 2021-05-13 01:41:36 +03:00