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
QtAndroidServiceConnection.java
Go to the documentation of this file.
1
// Copyright (C) 2017 BogDan Vatra <bogdan@kde.org>
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4
package
org.qtproject.qt.android.extras;
5
6
import
android.content.ComponentName;
7
import
android.content.ServiceConnection;
8
import
android.os.IBinder;
9
10
import
org.qtproject.qt.android.UsedFromNativeCode;
11
12
class
QtAndroidServiceConnection
implements
ServiceConnection
13
{
14
@UsedFromNativeCode
15
QtAndroidServiceConnection(
long
id
)
16
{
17
m_id =
id
;
18
}
19
20
void
setId(
long
id
)
21
{
22
synchronized
(
this
)
23
{
24
m_id =
id
;
25
}
26
}
27
28
@
Override
29
public
void
onServiceConnected(ComponentName
name
, IBinder service)
30
{
31
synchronized
(
this
) {
32
QtNative.onServiceConnected(m_id,
name
.flattenToString(), service);
33
}
34
}
35
36
@
Override
37
public
void
onServiceDisconnected(ComponentName
name
)
38
{
39
synchronized
(
this
) {
40
QtNative.onServiceDisconnected(m_id,
name
.flattenToString());
41
}
42
}
43
44
private
long
m_id;
45
}
QtMocConstants::Override
@ Override
Definition
qtmocconstants.h:43
id
GLenum GLuint id
Definition
qopengldebug.cpp:1029
name
EGLImageKHR EGLint * name
Definition
drmeglserverbufferintegration.h:35
qtbase
src
android
jar
src
org
qtproject
qt
android
extras
QtAndroidServiceConnection.java
Generated on
for Qt by
1.18.0