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
qohosplatformdialoghelper.h
Go to the documentation of this file.
1// Copyright (C) 2025 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 QOHOSPLATFORMDIALOGHELPER_H
5#define QOHOSPLATFORMDIALOGHELPER_H
6
7#include <qpa/qplatformdialoghelper.h>
8#include <qpa/qplatformtheme.h>
9
11
16
18
19QT_END_NAMESPACE
20
21#endif // QOHOSPLATFORMDIALOGHELPER_H
static QOhosEventDispatcherStopper * instance()
QStringList fallbacksForFamily(const QString &family, QFont::Style style, QFont::StyleHint styleHint, QFontDatabasePrivate::ExtendedScript script) const override
Returns a list of alternative fonts for the specified family and style and script using the styleHint...
QFont defaultFont() const override
Returns the default system font.
void populateFontDatabase() override
This function is called once at startup by Qt's internal font database.
static QOhosPlatformIntegration * instance()
static QXComponentId createForNativeNodeMainWindow(const std::string &qAbilityInstanceId)
JsState & jsState() const
virtual QNapi::Promise handleCloseRequestFromSystem(QOhosJsState &jsState, const std::string &logContextStr, CloseAbilityRequestSource requestSource, std::function< QNapi::Value(QOhosJsState &, CloseAbilityRequestResolution)> promiseValueFactory)=0
virtual void handleOnContinueRequestFromSystem(JsState &jsState, QNapi::Object wantParamsObj, QOhosConsumer< JsState &, QOhosAbilityOnContinueResult > resultConsumer)=0
static std::shared_ptr< QUiAbilityPeer > tryCastFromQAbilityPeerOrNull(std::shared_ptr< QAbilityPeer > qAbilityPeer)
bool isCurrentDeviceSupported()
void init(QMap< Type, QVariant > devinfo)
std::optional< RecognizedDeviceType > tryGetRecognizedDeviceType()
QPlatformDialogHelper * createHelper(QPlatformTheme::DialogType type)
Combined button and popup list for selecting options.
std::shared_ptr< void > makeWatchdog()
bool acquireAndCleanPendingAutoStartedInstanceWindowFlag()
std::string const char * mapBoolToTrueFalseStr(bool value)
bool blockEventLoopsWhenSuspended()
QOhosConsumer< std::function< void()> > makeSingleThreadExecutor(const SingleThreadExecutorConfig &config={})
void updateApplicationState(int state)
QNapi::Object readChildProcessSetupData(Napi::Env env)
bool isOhosNoUiChildMode()
void initJsThreadState(napi_env env, std::map< std::string, QNapi::Reference< QNapi::Function > > &&jsModulesFactories, std::shared_ptr< AppFunctions > appFunctions, QtRunMode qtRunMode)
QOhosPermissionsHelper * getQOhosPermissionsHelperImpl()
bool isGlBackingStoreDefaultEnabled()
void quitApplicationFromJsThread()
bool isVsyncOnSoftwareBackingStoreEnabled()
bool isNativeNodeApiMouseEventsEnabled()
QtOhosQpa::enums::ohos::app::ability::AbilityConstant::OnContinueResult QOhosAbilityOnContinueResult
bool isNativeNodeApiKeyEventsEnabled()
bool isDebugUseBasicStyleAndThemeEnabled()
bool isDebugDrawQtRasterBackingStoreFlushedRegionEnabled()
void sendChildProcessSetupData(int childPid, QJsonObject setupData)
static bool s_hotStartEnabled
static bool s_autoStartedAbilityInstanceWaitingForQtWindow
QT_END_NAMESPACE static EXTERN_C_START napi_value Init(napi_env env, napi_value exports)
std::function< void()> s_qtAppThreadIdleStateWaitFunc
static std::string s_appSharedLibName
static QList< QByteArray > s_applicationParams
static std::unique_ptr< std::vector< std::string > > s_appArgs
static int s_appExitCode
static std::string s_appSharedLibsDirPath
static std::string s_exitCodeFilePath
QOhosConsumer< std::vector< std::string > > s_qtAppThreadMainFuncLauncher
QPlatformFileDialogHelper * makeQOhosPlatformFileDialogHelper()
virtual void startNewInstance(QNapi::Object baseQAbility, QObjectThreadSafeRef qwindow, QNapi::Object optStartOptions, std::function< void(JsState &, std::shared_ptr< QAbilityPeer >)> startupNotifyFunc)=0
virtual std::optional< std::string > tryGetQAbilityInstanceIdFromWant(QNapi::Object appQAbility, QNapi::Object want) const =0
virtual std::shared_ptr< QAbilityPeer > tryGetQAbilityPeerByQWindow(QObjectThreadSafeRef qwindow)=0
virtual std::shared_ptr< QAbilityPeer > defaultQAbilityPeer()=0
virtual std::optional< std::string > pendingAutoStartedInstanceId() const =0
virtual void visitEachQAbilityPeer(const std::function< void(std::shared_ptr< QAbilityPeer >)> &visitor)=0
static QAbilityInstancesManager & instance(QOhosJsState &jsState)
virtual std::shared_ptr< QAbilityPeer > tryGetQAbilityPeerByInstanceId(const std::string &instanceId)=0
static QAbilityInfo readAbilityInfo(const QNapi::Object &ability)
virtual void registerPendingAutoStartedInstance(std::function< void(JsState &, std::shared_ptr< QAbilityPeer >)> startupNotifyFunc)=0
virtual QNapi::Object appLaunchWant()=0
static bool isQtInternalWantFromThisProcess(QNapi::Object want)
static void setLaunchParamOnAbilityObject(JsState &jsState, QNapi::Object ability, QNapi::Object launchParam)
virtual bool isWantFromThisApp(QNapi::Object appQAbility, QNapi::Object want) const =0
virtual void handleStartedUiInstance(JsState &jsState, QNapi::Object qAbility, QNapi::Object windowStage)=0
virtual std::shared_ptr< QUiAbilityPeerBackend > getAbilityPeerBackend(std::shared_ptr< QUiAbilityPeer > uiAbilityPeer)=0
virtual std::shared_ptr< QAbilityPeer > tryGetQAbilityPeerByInstance(QNapi::Object qAbility)=0
virtual void removeMatchingQAbilityPeer(QNapi::Object qAbility)=0
virtual std::string getQAbilityInstanceIdOrPendingAutoStartedId(QNapi::Object qAbility) const =0
virtual std::optional< QNapi::Object > optAppLaunchParam()=0
std::optional< std::size_t > threadPreferredStackSize