Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qandroidmodelindexproxy_p.h
Go to the documentation of this file.
1
// Copyright (C) 2024 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
// Qt-Security score:significant reason:default
4
5
#
ifndef
QANDROIDMODELINDEXPROXY_P_H
6
#
define
QANDROIDMODELINDEXPROXY_P_H
7
8
#
include
<
QtCore
/
private
/
qandroidtypes_p
.
h
>
9
10
#
include
<
QtCore
/
qabstractitemmodel
.
h
>
11
#
include
<
QtCore
/
qjniobject
.
h
>
12
#
include
<
QtCore
/
qjnienvironment
.
h
>
13
#
include
<
QtCore
/
qjnitypes
.
h
>
14
15
//
16
// W A R N I N G
17
// -------------
18
//
19
// This file is not part of the Qt API. It exists purely as an
20
// implementation detail. This header file may change from version to
21
// version without notice, or even be removed.
22
//
23
// We mean it.
24
//
25
26
QT_BEGIN_NAMESPACE
27
28
using
namespace
QtJniTypes;
29
30
class
QAndroidItemModelProxy;
31
32
class
Q_CORE_EXPORT
QAndroidModelIndexProxy
33
{
34
public
:
35
static
JQtModelIndex jInstance(QModelIndex modelIndex);
36
static
QModelIndex qInstance(JQtModelIndex jModelIndex);
37
38
static
jobject data(JNIEnv *env, jobject object,
int
role);
39
Q_DECLARE_JNI_NATIVE_METHOD_IN_CURRENT_SCOPE(data)
40
41
static
jlong internalId(JNIEnv *env, jobject object);
42
Q_DECLARE_JNI_NATIVE_METHOD_IN_CURRENT_SCOPE(internalId)
43
44
static
jboolean isValid(JNIEnv *env, jobject object);
45
Q_DECLARE_JNI_NATIVE_METHOD_IN_CURRENT_SCOPE(isValid)
46
47
static
JQtModelIndex parent(JNIEnv *env, jobject object);
48
Q_DECLARE_JNI_NATIVE_METHOD_IN_CURRENT_SCOPE(parent)
49
50
static
bool
registerNatives(QJniEnvironment &env);
51
};
52
53
QT_END_NAMESPACE
54
55
#
endif
// QANDROIDMODELINDEXPROXY_P_H
QAndroidModelIndexProxy
Definition
qandroidmodelindexproxy_p.h:33
qtbase
src
corelib
platform
android
qandroidmodelindexproxy_p.h
Generated on
for Qt by
1.18.0