Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qandroidquickviewembedding_p.h
Go to the documentation of this file.
1// Copyright (C) 2023 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QANDROIDQUICKVIEWEMBEDDING_P_H
5#define QANDROIDQUICKVIEWEMBEDDING_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtQuick/private/qandroidviewsignalmanager_p.h>
19
20#include <QtCore/qjnienvironment.h>
21#include <QtCore/qjnitypes.h>
22#include <QtQuick/qquickview.h>
23
24QT_BEGIN_NAMESPACE
25
27{
28 bool registerNatives(QJniEnvironment& env);
29 void createQuickView(JNIEnv *env, jobject nativeWindow, jstring qmlUri, jint width, jint height,
30 jlong parentWindowReference, jlong viewReference,
31 const QJniArray<jstring> &qmlImportPaths);
32 Q_DECLARE_JNI_NATIVE_METHOD_IN_CURRENT_SCOPE(createQuickView)
33 void setRootObjectProperty(JNIEnv *env, jobject, jlong parentWindowReference,
34 jstring propertyName, jobject value);
35 Q_DECLARE_JNI_NATIVE_METHOD_IN_CURRENT_SCOPE(setRootObjectProperty)
38 Q_DECLARE_JNI_NATIVE_METHOD_IN_CURRENT_SCOPE(getRootObjectProperty)
39 bool addRootObjectSignalListener(JNIEnv *env, jobject, jlong windowReference,
40 jstring signalName, QJniArray<jclass> argTypes,
41 jobject listener, jint id);
42 Q_DECLARE_JNI_NATIVE_METHOD_IN_CURRENT_SCOPE(addRootObjectSignalListener)
43 bool removeRootObjectSignalListener(JNIEnv *env, jobject, jlong parentWindowReference,
44 jint signalListenerId);
45 Q_DECLARE_JNI_NATIVE_METHOD_IN_CURRENT_SCOPE(removeRootObjectSignalListener)
46 void invokeMethod(JNIEnv *, jobject, jlong viewReference, QtJniTypes::String methodName,
47 QJniArray<jobject> params);
48 Q_DECLARE_JNI_NATIVE_METHOD_IN_CURRENT_SCOPE(invokeMethod)
49
51 {
54
55 public:
56 explicit QAndroidQuickView(QWindow *parent)
58 {
59 }
60 inline QAndroidViewSignalManager *signalManager() const { return m_signalManager.get(); };
61 };
62};
63
64QT_END_NAMESPACE
65
66#endif // QANDROIDQUICKVIEWEMBEDDING_P_H
void setRootObjectProperty(JNIEnv *env, jobject object, jlong windowReference, jstring propertyName, jobject value)
bool addRootObjectSignalListener(JNIEnv *env, jobject, jlong windowReference, jstring signalName, QJniArray< jclass > argTypes, jobject listener, jint id)
bool removeRootObjectSignalListener(JNIEnv *, jobject, jlong windowReference, jint signalListenerId)
void invokeMethod(JNIEnv *, jobject, jlong viewReference, QtJniTypes::String methodName, QJniArray< jobject > jniParams)
void createQuickView(JNIEnv *, jobject nativeWindow, jstring qmlUri, jint width, jint height, jlong parentWindowReference, jlong viewReference, const QJniArray< jstring > &qmlImportPaths)
bool registerNatives(QJniEnvironment &env)