18#include <QtCore/qglobal.h>
152template<
typename Enum>
159 static constexpr const char *
fullTypeName =
"@ohos.app.ability.AbilityConstant.ContinueState";
170 static constexpr const char *
fullTypeName =
"@ohos.app.ability.AbilityConstant.OnContinueResult";
182 static constexpr const char *
fullTypeName =
"@ohos.app.ability.ConfigurationConstant.ColorMode";
194 static constexpr const char *
fullTypeName =
"@kit.ShareKit.systemShare.SelectionMode";
205 static constexpr const char *
fullTypeName =
"@kit.ShareKit.systemShare.ShareAbilityType";
219 static constexpr const char *
fullTypeName =
"@kit.ShareKit.systemShare.SharePreviewMode";
230 static constexpr const char *
fullTypeName =
"@ohos.app.ability.AbilityConstant.WindowMode";
242 static constexpr const char *
fullTypeName =
"@ohos.app.ability.AbilityConstant.LaunchReason";
261 static constexpr const char *
fullTypeName =
"@ohos.app.ability.contextConstant.ProcessMode";
273 static constexpr const char *
fullTypeName =
"@ohos.app.ability.contextConstant.StartupVisibility";
284 static constexpr const char *
fullTypeName =
"@ohos.bundle.bundleManager.SupportWindowMode";
296 static constexpr const char *
fullTypeName =
"@ohos.window.AnimationType";
Combined button and popup list for selecting options.
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
@ ATTACH_TO_STATUS_BAR_ITEM
std::optional< Want > want
static constexpr std::array< std::pair< Enum, const char * >, 3 > enumeratorsNames
static constexpr const char * fullTypeName
enums::ohos::app::ability::contextConstant::ProcessMode Enum
enums::ohos::app::ability::contextConstant::StartupVisibility Enum
static constexpr const char * fullTypeName
static constexpr std::array< std::pair< Enum, const char * >, 2 > enumeratorsNames