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