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
qohosappcontext_p.h
Go to the documentation of this file.
1
// Copyright (C) 2026 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
QOHOSAPPCONTEXT_P_H
5
#
define
QOHOSAPPCONTEXT_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
<
QtHarmonyExtras
/
private
/
qohosappbundleinfo_p
.
h
>
19
#
include
<
QtHarmonyExtras
/
private
/
qohoswant_p
.
h
>
20
#
include
<
QtHarmonyExtras
/
private
/
qtharmonyextrasglobal_p
.
h
>
21
22
#
include
<
QtCore
/
qobject
.
h
>
23
#
include
<
QtCore
/
qstring
.
h
>
24
#
include
<
QtCore
/
qstringlist
.
h
>
25
26
#
include
<
functional
>
27
#
include
<
memory
>
28
#
include
<
optional
>
29
30
QT_BEGIN_NAMESPACE
31
32
namespace
QtHarmonyExtras
{
33
34
class
Q_HARMONYEXTRAS_EXPORT
AppContext
:
public
QObject
35
{
36
Q_OBJECT
37
38
public
:
39
static
AppContext
*
instance
();
40
41
static
bool
isNoUiChildMode
();
42
43
static
void
startNoUiChildProcess
(
const
QString
&
libraryName
,
const
QStringList
&
args
);
44
45
static
std
::
shared_ptr
<
WantInfo
>
appLaunchWantInfo
();
46
47
virtual
bool
hasSerialPortAccessRight
(
const
QString
&
portName
)
const
= 0;
48
virtual
void
requestSerialPortAccessRightIfNeeded
(
49
const
QString
&
portName
,
QObject
*
context
,
50
std
::
function
<
void
(
std
::
shared_ptr
<
QObject
>)>
callback
) = 0;
51
52
virtual
std
::
shared_ptr
<
BundleInfo
>
bundleInfo
()
const
= 0;
53
54
Q_NORETURN
virtual
void
restartApp
(
const
std
::
optional
<
Want
> &
want
) = 0;
55
56
virtual
double
fontSizeScale
()
const
= 0;
57
58
Q_SIGNALS
:
59
void
fontSizeScaleChanged
(
double
fontSizeScale
);
60
61
protected
:
62
AppContext
();
63
~
AppContext
()
override
;
64
65
Q_DISABLE_COPY
(
AppContext
)
66
};
67
68
}
69
70
QT_END_NAMESPACE
71
72
#
endif
QtHarmonyExtras::AppContext
\inmodule QtHarmonyExtras
Definition
qohosappcontext_p.h:35
QtHarmonyExtras
Definition
qohosabilitycontext.cpp:36
std
[33]
Definition
src_corelib_tools_qhash.cpp:421
qtbase
src
plugins
platforms
ohos
extras
qohosappcontext_p.h
Generated on
for Qt by
1.16.1