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
qohosrawfileengine_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 QOHOSRAWFILEENGINE_P_H
5#define QOHOSRAWFILEENGINE_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/private/qnapi_p.h>
19#include <QtCore/qtconfigmacros.h>
20
21#include <qohosplugincore.h>
22
24
25namespace QOhosRawFile {
26
27void installEngineHandler(QtOhos::JsState &jsState, QNapi::Object qAbility);
28
29}
30
31QT_END_NAMESPACE
32
33#endif // QOHOSRAWFILEENGINE_P_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()
void installEngineHandler(QtOhos::JsState &jsState, QNapi::Object qAbility)
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={})
bool isEmulatorQuirkWorkaroundsEnabled()
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
virtual bool isQAbilityInForeground(QNapi::Object qAbility) const =0
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
virtual void handleQAbilityOnForeground(QNapi::Object qAbility)=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
virtual void setUnusedAutoStartedQAbilityPeer(std::shared_ptr< QAbilityPeer > qAbilityPeer)=0
static bool isQtInternalWantFromThisProcess(QNapi::Object want)
virtual bool isWantFromThisApp(QNapi::Object appQAbility, QNapi::Object want) const =0
virtual void handleStartedUiInstance(JsState &jsState, QNapi::Object qAbility, QNapi::Object windowStage)=0
virtual void handleQAbilityOnBackground(QNapi::Object qAbility)=0
virtual bool hasForegroundQAbility() const =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::optional< QNapi::Object > tryGetForegroundQAbility()=0
virtual std::string getQAbilityInstanceIdOrPendingAutoStartedId(QNapi::Object qAbility) const =0
virtual std::optional< QNapi::Object > optAppLaunchParam()=0
std::optional< std::size_t > threadPreferredStackSize