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
qohosabilitycontext_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 QOHOSABILITYCONTEXT_P_H
5#define QOHOSABILITYCONTEXT_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/qbytearray.h>
19#include <QtCore/qlist.h>
20#include <QtCore/qstring.h>
21#include <QtCore/qjsonobject.h>
22#include <QtGui/qwindow.h>
23#include <QtOhosAppKit/private/qohosoperationstatus_p.h>
24#include <QtOhosAppKit/private/qohoswant_p.h>
25#include <QtOhosAppKit/private/qohosstartoptions_p.h>
26#include <QtOhosAppKit/private/qtohosappkitglobal_p.h>
27#include <QtOhosAppKit/private/qohossharekit_p.h>
28#include <QtWidgets/qwidget.h>
29#include <functional>
30#include <memory>
31#include <optional>
32
33QT_BEGIN_NAMESPACE
34
35namespace QtOhosAppKit {
36
37class Q_OHOSAPPKIT_EXPORT OpenLinkOptions
38{
39public:
40 virtual ~OpenLinkOptions();
41
42 virtual void setAppLinkingOnly(bool appLinkingOnly) = 0;
43
44protected:
46
47private:
49};
50
52
53class Q_OHOSAPPKIT_EXPORT OnContinueContext
54{
55public:
57
58 virtual void setAgreeResponse(const QByteArray &responseData) = 0;
59 virtual void setRejectResponse() = 0;
60 virtual void setMismatchResponse() = 0;
61
63
64 virtual int sourceApplicationVersionCode() const = 0;
65
66protected:
68
69private:
71};
72
78
113
115
117
118Q_OHOSAPPKIT_EXPORT void startNewAbilityInstance(QWidget *instanceWidget);
119
120Q_OHOSAPPKIT_EXPORT void startAppProcess(const QString &processId, const Want &requestWant, std::shared_ptr<StartOptions> options = nullptr);
121
122Q_OHOSAPPKIT_EXPORT void setAbilityInstanceDestroyEnabled(QWindow *instanceWindow, bool destroyEnabled);
123
125
126}
127
128QT_END_NAMESPACE
129
130#endif // QOHOSABILITYCONTEXT_P_H
std::shared_ptr< OperationStatus > startAbility(const Want &want, std::shared_ptr< StartOptions > options)
Starts an Ability for a given want and options; pass a null options to start without any start option...
void startNewAbilityInstance(QWidget *instanceWidget)
Starts another instance of the UIAbility used by the Qt app with specified widget inside.
void setAbilityInstanceDestroyEnabled(QWindow *instanceWindow, bool destroyEnabled)
Sets whether the Ability related with instanceWindow can be automatically destroyed by the system whe...
std::shared_ptr< OperationStatus > startAbilityByType(const QString &appType, const QJsonObject &wantParameters)
Starts an Ability for a given appType and wantParameters.
void startAppProcess(const QString &processId, const Want &requestWant, std::shared_ptr< StartOptions > options)
Starts application process for a given processId, requestWant and options; pass a null options to sta...
std::optional< QByteArray > tryGetOnContinueData(const Want &want)
Tries to get continuation / migration related data that was provided on the source device.
std::shared_ptr< OpenLinkOptions > createOpenLinkOptions()