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
qohosjsonconversions_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
QOHOSJSONCONVERSIONS_P_H
5
#
define
QOHOSJSONCONVERSIONS_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
/
private
/
qnapi_p
.
h
>
19
#
include
<
QtCore
/
qjsonobject
.
h
>
20
21
QT_BEGIN_NAMESPACE
22
23
namespace
QtOhos
{
24
25
// follows JSON.stringify(): property values without a JSON counterpart are skipped in objects and become null in arrays
26
Q_CORE_EXPORT QJsonObject
mapNapiObjectToJsonObject
(
const
QNapi
::
Object
&
napiObject
);
27
28
// null and undefined QJsonValue both become JS null
29
Q_CORE_EXPORT
QNapi
::
Object
mapJsonObjectToNapiObject
(
napi_env
env
,
const
QJsonObject
&
jsonObject
);
30
31
}
32
33
QT_END_NAMESPACE
34
35
#
endif
// QOHOSJSONCONVERSIONS_P_H
QtOhos
Definition
qcore_ohos.cpp:57
QtOhos::mapNapiObjectToJsonObject
QJsonObject mapNapiObjectToJsonObject(const QNapi::Object &napiObject)
Definition
qohosjsonconversions.cpp:84
QtOhos::mapJsonObjectToNapiObject
QNapi::Object mapJsonObjectToNapiObject(napi_env env, const QJsonObject &jsonObject)
Definition
qohosjsonconversions.cpp:97
std
[33]
Definition
src_corelib_tools_qhash.cpp:421
qtbase
src
corelib
platform
ohos
qohosjsonconversions_p.h
Generated on
for Qt by
1.16.1