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.cpp
Go to the documentation of this file.
1
// Copyright (C) 2025 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
#
include
"qohosappcontext_p.h"
5
#
include
<
QtCore
/
qglobalstatic
.
h
>
6
#
include
<
utility
>
7
8
QT_BEGIN_NAMESPACE
9
10
namespace
QOhosAppContext
11
{
12
using
AppContextType
=
QMap
<
Type
,
QString
>;
13
Q_GLOBAL_STATIC(AppContextType, s_appContext)
14
15
void
init
(QMap<Type, QString> appcontext)
16
{
17
*s_appContext = std::move(appcontext);
18
}
19
20
QString
getProperty
(
Type
prop)
21
{
22
return
s_appContext->value(prop);
23
}
24
25
QMap
<
Type
,
QString
>
getAllProperties
()
26
{
27
return
*s_appContext;
28
}
29
}
30
31
QT_END_NAMESPACE
QOhosAppContext
Definition
qohosappcontext.cpp:11
QOhosAppContext::getAllProperties
QMap< Type, QString > getAllProperties()
Definition
qohosappcontext.cpp:25
QOhosAppContext::Type
Type
Definition
qohosappcontext_p.h:23
QOhosAppContext::init
void init(QMap< Type, QString > appcontext)
Definition
qohosappcontext.cpp:15
QOhosAppContext::getProperty
QString getProperty(Type prop)
Definition
qohosappcontext.cpp:20
qtbase
src
corelib
platform
ohos
qohosappcontext.cpp
Generated on
for Qt by
1.16.1