4#ifndef QOHOSABILITYCONTEXT_P_H
5#define QOHOSABILITYCONTEXT_P_H
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>
120Q_OHOSAPPKIT_EXPORT
void startAppProcess(
const QString &processId,
const Want &requestWant, std::shared_ptr<StartOptions> options =
nullptr);
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()
@ WINDOW_MODE_SPLIT_PRIMARY
@ WINDOW_MODE_SPLIT_SECONDARY
@ NEW_PROCESS_ATTACH_TO_PARENT
@ NEW_PROCESS_ATTACH_TO_STATUS_BAR_ITEM
std::optional< Want > want