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
qharmonyappjscontext.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 QHARMONYAPPJSCONTEXT_H
5#define QHARMONYAPPJSCONTEXT_H
6
7#include <QtCore/qharmonyjscontext.h>
8
9#if defined(Q_QDOC) || defined(Q_OS_HARMONY)
10
11QT_BEGIN_NAMESPACE
12
13class Q_CORE_EXPORT QHarmonyAppJsContext : public QHarmonyJsContext
14{
15public:
16 static QHarmonyAppJsContext &fromEnv(napi_env env);
17 static QHarmonyAppJsContext &fromJsContext(QHarmonyJsContext &jsContext);
18
19 napi_value defaultAbility();
20
21private:
22 QHarmonyAppJsContext();
23 ~QHarmonyAppJsContext();
24};
25
26QT_END_NAMESPACE
27
28#endif // Q_QDOC || Q_OS_HARMONY
29
30#endif // QHARMONYAPPJSCONTEXT_H