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 <QtHarmonyExtras/private/qohosoperationstatus_p.h>
19#include <QtHarmonyExtras/private/qohossharekit_p.h>
20#include <QtHarmonyExtras/private/qohosstartoptions_p.h>
21#include <QtHarmonyExtras/private/qohoswant_p.h>
22#include <QtHarmonyExtras/private/qtharmonyextrasglobal_p.h>
23
24#include <QtGui/qwindow.h>
25#include <QtWidgets/qwidget.h>
26
27#include <QtCore/qbytearray.h>
28#include <QtCore/qjsonobject.h>
29#include <QtCore/qlist.h>
30#include <QtCore/qstring.h>
31
32#include <functional>
33#include <memory>
34#include <optional>
35
36QT_BEGIN_NAMESPACE
37
38namespace QtHarmonyExtras {
39
40class Q_HARMONYEXTRAS_EXPORT OpenLinkOptions
41{
42public:
43 virtual ~OpenLinkOptions();
44
45 virtual void setAppLinkingOnly(bool appLinkingOnly) = 0;
46
47protected:
49
50private:
52};
53
55
56class Q_HARMONYEXTRAS_EXPORT OnContinueContext
57{
58public:
60
61 virtual void sendAgreeResponse(const QByteArray &responseData) = 0;
62 virtual void sendRejectResponse() = 0;
63 virtual void sendMismatchResponse() = 0;
64
66
67 virtual int sourceApplicationVersionCode() const = 0;
68
69protected:
71
72private:
74};
75
81
117
119
121
122Q_HARMONYEXTRAS_EXPORT void startNewAbilityInstance(QWidget *instanceWidget);
123
124Q_HARMONYEXTRAS_EXPORT void startAppProcess(const QString &processId, const Want &requestWant, std::shared_ptr<StartOptions> options = nullptr);
125
126Q_HARMONYEXTRAS_EXPORT void setAbilityInstanceDestroyEnabled(QWindow *instanceWindow, bool destroyEnabled);
127
129
130}
131
132QT_END_NAMESPACE
133
134#endif // QOHOSABILITYCONTEXT_P_H
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::shared_ptr< OpenLinkOptions > createOpenLinkOptions()
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.
std::optional< QByteArray > tryGetOnContinueData(const Want &want)
Tries to get continuation / migration related data that was provided on the source device.
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...