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
30QT_BEGIN_NAMESPACE
31
32namespace QtHarmonyExtras {
33
34class Q_HARMONYEXTRAS_EXPORT AppContext : public QObject
35{
37
38public:
39 static AppContext *instance();
40
41 static bool isNoUiChildMode();
42
43 static void startNoUiChildProcess(const QString &libraryName, const QStringList &args);
44
46
47 virtual bool hasSerialPortAccessRight(const QString &portName) const = 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
60
61protected:
64
66};
67
68}
69
70QT_END_NAMESPACE
71
72#endif
\inmodule QtHarmonyExtras