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
QtOhos Namespace Reference

Classes

class  AppFunctions
class  BigEventLoggingEvent
class  BigEventLoggingEventBuilder
class  CallbackInfo
struct  EvaluateSequentially
class  InternalWindowId
class  JsCallBatch
class  JsCallBatchTrace
class  JsScopeDataOwner
class  JsState
class  JsWindowsTracker
struct  OhosEnumMeta
struct  OhosEnumMeta< QtOhosBluetooth::enums::ohos::bluetooth::access::BluetoothState >
struct  OhosEnumMeta< QtOhosBluetooth::enums::ohos::bluetooth::connection::BluetoothTransport >
struct  OhosEnumMeta< QtOhosBluetooth::enums::ohos::bluetooth::connection::BondState >
struct  OhosEnumMeta< QtOhosBluetooth::enums::ohos::bluetooth::connection::ScanMode >
struct  OhosEnumMeta< QtOhosBluetooth::enums::ohos::bluetooth::connection::UnbondCause >
struct  OhosEnumMeta< QtOhosBluetooth::enums::ohos::bluetooth::socket::SppType >
struct  OhosEnumMeta< QtOhosHarmonyExtras::enums::kit::ShareKit::systemShare::SelectionMode >
struct  OhosEnumMeta< QtOhosHarmonyExtras::enums::kit::ShareKit::systemShare::ShareAbilityType >
struct  OhosEnumMeta< QtOhosHarmonyExtras::enums::kit::ShareKit::systemShare::SharePreviewMode >
struct  OhosEnumMeta< QtOhosHarmonyExtras::enums::ohos::app::ability::AbilityConstant::ContinueState >
struct  OhosEnumMeta< QtOhosHarmonyExtras::enums::ohos::app::ability::AbilityConstant::LaunchReason >
struct  OhosEnumMeta< QtOhosHarmonyExtras::enums::ohos::app::ability::AbilityConstant::OnContinueResult >
struct  OhosEnumMeta< QtOhosHarmonyExtras::enums::ohos::app::ability::AbilityConstant::WindowMode >
struct  OhosEnumMeta< QtOhosHarmonyExtras::enums::ohos::app::ability::ConfigurationConstant::ColorMode >
struct  OhosEnumMeta< QtOhosHarmonyExtras::enums::ohos::app::ability::contextConstant::ProcessMode >
struct  OhosEnumMeta< QtOhosHarmonyExtras::enums::ohos::app::ability::contextConstant::StartupVisibility >
struct  OhosEnumMeta< QtOhosHarmonyExtras::enums::ohos::bundle::bundleManager::SupportWindowMode >
struct  OhosEnumMeta< QtOhosHarmonyExtras::enums::ohos::window::AnimationType >
struct  OhosEnumMeta< QtOhosNetworkInformation::enums::ohos::net::connection::NetBearType >
struct  OhosEnumMeta< QtOhosNetworkInformation::enums::ohos::net::connection::NetCap >
struct  OhosEnumMeta< QtOhosPositioning::enums::ohos::geoLocationManager::LocationError >
struct  OhosEnumMeta< QtOhosPositioning::enums::ohos::geoLocationManager::SatelliteConstellationCategory >
struct  OhosEnumMeta< QtOhosPositioning::enums::ohos::geoLocationManager::UserActivityScenario >
struct  OhosEnumMeta< QtOhosQpa::enums::kit::ShareKit::systemShare::SelectionMode >
struct  OhosEnumMeta< QtOhosQpa::enums::kit::ShareKit::systemShare::ShareAbilityType >
struct  OhosEnumMeta< QtOhosQpa::enums::kit::ShareKit::systemShare::SharePreviewMode >
struct  OhosEnumMeta< QtOhosQpa::enums::ohos::abilityAccessCtrl::PermissionStatus >
struct  OhosEnumMeta< QtOhosQpa::enums::ohos::app::ability::AbilityConstant::ContinueState >
struct  OhosEnumMeta< QtOhosQpa::enums::ohos::app::ability::AbilityConstant::LaunchReason >
struct  OhosEnumMeta< QtOhosQpa::enums::ohos::app::ability::AbilityConstant::OnContinueResult >
struct  OhosEnumMeta< QtOhosQpa::enums::ohos::app::ability::AbilityConstant::WindowMode >
struct  OhosEnumMeta< QtOhosQpa::enums::ohos::app::ability::ConfigurationConstant::ColorMode >
struct  OhosEnumMeta< QtOhosQpa::enums::ohos::app::ability::contextConstant::ProcessMode >
struct  OhosEnumMeta< QtOhosQpa::enums::ohos::app::ability::contextConstant::StartupVisibility >
struct  OhosEnumMeta< QtOhosQpa::enums::ohos::app::ability::wantConstant::Flags >
struct  OhosEnumMeta< QtOhosQpa::enums::ohos::bundle::bundleManager::SupportWindowMode >
struct  OhosEnumMeta< QtOhosQpa::enums::ohos::display::DisplaySourceMode >
struct  OhosEnumMeta< QtOhosQpa::enums::ohos::display::Orientation >
struct  OhosEnumMeta< QtOhosQpa::enums::ohos::file::picker::DocumentSelectMode >
struct  OhosEnumMeta< QtOhosQpa::enums::ohos::graphics::text::SystemFontType >
struct  OhosEnumMeta< QtOhosQpa::enums::ohos::inputMethod::Direction >
struct  OhosEnumMeta< QtOhosQpa::enums::ohos::inputMethod::EnterKeyType >
struct  OhosEnumMeta< QtOhosQpa::enums::ohos::inputMethod::RequestKeyboardReason >
struct  OhosEnumMeta< QtOhosQpa::enums::ohos::inputMethod::TextInputType >
struct  OhosEnumMeta< QtOhosQpa::enums::ohos::multimodalInput::pointer::PointerStyle >
struct  OhosEnumMeta< QtOhosQpa::enums::ohos::notificationManager::ContentType >
struct  OhosEnumMeta< QtOhosQpa::enums::ohos::window::AnimationType >
struct  OhosEnumMeta< QtOhosQpa::enums::ohos::window::AvoidAreaType >
struct  OhosEnumMeta< QtOhosQpa::enums::ohos::window::MaximizePresentation >
struct  OhosEnumMeta< QtOhosQpa::enums::ohos::window::ModalityType >
struct  OhosEnumMeta< QtOhosQpa::enums::ohos::window::RectChangeReason >
struct  OhosEnumMeta< QtOhosQpa::enums::ohos::window::WindowEventType >
struct  OhosEnumMeta< QtOhosQpa::enums::ohos::window::WindowStatusType >
struct  QAbilityInfo
struct  QAbilityInstancesManager
class  QAbilityPeer
class  QObjectThreadSafeRef
class  QOhosMtBlockingCallsGateway
class  QOhosQpaFunctions
class  QThreadSafeRef
class  QtState
class  QUiAbilityPeer
class  QUiAbilityPeerBackend
struct  SingleThreadExecutorConfig
class  TypedId
struct  WindowIdStruct

Typedefs

template<typename ... Ts>
using Conjuction
using QOhosAbilityOnContinueResult = QtOhosQpa::enums::ohos::app::ability::AbilityConstant::OnContinueResult

Enumerations

enum class  QtRunMode { Normal , NoUiChildProcess }

Functions

void initQtThreadState ()
QtState & getQtState ()
void invokeInQtThread (std::function< void()> &&task)
void logJsCallbackError (const QOhosCallbackInfo &cbInfo, const char *errorMessagePrefix)
QOhosJsErrorInfo tryExtractErrorInfoFromJsError (QNapi::Value jsErrorOrEmpty)
std::function< void(const QOhosCallbackInfo &)> makeErrorLoggingJsCallback (std::string callContext)
template<typename T>
QThreadSafeRef< T > makeQThreadSafeRef (T *objobj)
template<typename T>
std::shared_ptr< T > makeProxyWithJsThreadDeleter (std::shared_ptr< T > &&baseSharedPtr)
template<typename T>
std::shared_ptr< T > makeProxyWithAsyncJsThreadDeleter (std::shared_ptr< T > &&baseSharedPtr)
QJsonObject mapNapiObjectToJsonObject (const QNapi::Object &napiObject)
QNapi::Object mapJsonObjectToNapiObject (napi_env env, const QJsonObject &jsonObject)
template<typename T>
QNapi::Promise adaptAsyncCallResultToJsPromise (QOhosJsState &jsState, std::function< QNapi::Value(QOhosJsState &, T)> promiseValueFactory, const QOhosConsumer< QOhosJsState &, QOhosConsumer< QOhosJsState &, T > > &asyncCallFunc)
Q_REQUIRED_RESULT std::shared_ptr< void > startDelayedJsThreadTask (QOhosJsState &jsState, std::function< void(QOhosJsState &)> task, std::chrono::milliseconds delay)
int setJsTimeout (QOhosJsState &jsState, std::function< void(const QOhosCallbackInfo &)> timeoutFunc, std::chrono::milliseconds delay)
void clearJsTimeout (QOhosJsState &jsState, int timerId)
QNapi::Promise makeResolvedPromise (QNapi::Value valueForResolve)
QNapi::Promise makeResolvedPromise (Napi::Env env)
template<typename T>
std::optional< T > getOptionalProperty (const QNapi::Object &objectobject, const std::string &propName)
std::optional< std::uint32_t > tryGetCodeFromJsBusinessError (const Napi::Error &error)
void rethrowUnlessJsBusinessErrorIsOneOf (const Napi::Error &error, const std::vector< std::uint32_t > &suppressedErrorCodes, const char *callerContextName)
bool runIgnoringJsBusinessError (QOhosJsState &, const std::vector< std::uint32_t > &suppressedErrorCodes, const char *callerContextName, const std::function< void()> &action)
template<typename ConfigValue>
QOhosSupplier< ConfigValue > makeOhosConfigValueDataSource (std::function< ConfigValue(QOhosJsState &)> initValueSupplier, std::function< ConfigValue(QOhosJsState &, const QNapi::Object &)> valueFetcher, QOhosConsumer< ConfigValue > valueChangedHandler)
template<typename ForwardIt, typename Predicate>
ForwardIt removeMatchingWithLookahead (ForwardIt firstIt, ForwardIt lastIt, Predicate &&predicate)
template<typename UnaryFunc, typename... TupleElements, std::size_t... TupleIndices>
void tupleForEach (const std::tuple< TupleElements... > &tuple, UnaryFunc funcfunc, std::index_sequence< TupleIndices... >)
template<typename UnaryFunc, typename... TupleElements>
void tupleForEach (const std::tuple< TupleElements... > &tuple, UnaryFunc funcfunc)
template<typename T>
QOhosConsumer< T > makeCompressingAsyncConsumer (QOhosConsumer< T > baseConsumer, QOhosConsumer< std::function< void()> > asyncExecutor)
template<typename ... Ts, typename BaseConsumer>
std::enable_if_t< std::is_assignable< QOhosConsumer< Ts... >, BaseConsumer >::value, std::function< bool(Ts...)> > makeCallOnceConsumerWrapper (BaseConsumer &&baseConsumer)
template<typename T>
QOhosSupplier< T > makeMemoizingSupplier (QOhosSupplier< T > baseSupplier)
std::optional< double > tryParseStringAsFiniteDouble (const std::string &inputString)
std::string printfToString (const char *formatformat,...) Q_ATTRIBUTE_FORMAT_PRINTF(1
std::string const char * mapBoolToTrueFalseStr (bool valuevalue)
std::optional< QNapi::Object > tryMapOptMainWindowToQAbility (QOhosJsState &jsState, std::optional< QtOhos::QObjectThreadSafeRef > optInstanceMainWindowRef)
template<typename T>
constexpr T makeCopyByValue (T valuevalue)
bool isOhosNoUiChildMode ()
bool isGlBackingStoreDefaultEnabled ()
bool isDebugDrawQtRasterBackingStoreFlushedRegionEnabled ()
bool isDebugUseBasicStyleAndThemeEnabled ()
bool isNativeNodeApiKeyEventsEnabled ()
bool isNativeNodeApiMouseEventsEnabled ()
bool isVsyncOnSoftwareBackingStoreEnabled ()
bool isEmulatorQuirkWorkaroundsEnabled ()
bool acquireAndCleanPendingAutoStartedInstanceWindowFlag ()
void quitApplicationFromJsThread ()
void updateApplicationState (int state)
bool blockEventLoopsWhenSuspended ()
std::vector< std::string > predefinedJsModuleNames ()
void initJsThreadState (napi_env env, std::map< std::string, QNapi::Reference< QNapi::Function > > &&jsModulesFactories, std::shared_ptr< AppFunctions > appFunctions, QtRunMode qtRunMode)
bool isJsThread ()
void dispatchNewWant (QNapi::Object qAbility, QNapi::Object want, QNapi::Object launchParam)
void callUiAbilityDelegates (const char *methodName, const std::vector< QNapi::Value > &args)
std::optional< QNapi::Value > tryCallFirstUiAbilityDelegate (const char *methodName, const std::vector< QNapi::Value > &args, QNapi::Value resultOnThrow)
Q_REQUIRED_RESULT bool tryInvokeInQtThreadAndTryWaitForContinue (std::function< void(std::function< void()>)> &&task, std::chrono::nanoseconds timeouttimeout)
std::shared_ptr< BigEventLoggingEventBuilder > makeBigEventLoggingEventBuilder (const std::string &eventName, ::EventType eventType, std::chrono::time_point< std::chrono::system_clock > eventTime)
QOhosConsumer< std::function< void()> > makeSingleThreadExecutor (const SingleThreadExecutorConfig &configconfig={})
QOhosPermissionsHelper * getQOhosPermissionsHelperImpl ()
QNapi::Object readChildProcessSetupData (Napi::Env env)
void sendChildProcessSetupData (int childPid, QJsonObject setupData)
template<typename T>
std::shared_ptr< T > moveToSharedPtr (T &&objobj)
template<typename Signature>
std::shared_ptr< std::function< Signature > > takeFunctionToSharedPtr (std::function< Signature > &funcfunc)
template<typename T>
std::shared_ptr< T > makeSharedPtrWithAttachedExtraData (std::shared_ptr< T > baseSharedPtr, std::shared_ptr< void > extraData)
template<typename T>
std::weak_ptr< T > makeWeakPtr (const std::shared_ptr< T > &objobj)
std::shared_ptr< void > makeDestroyNotifier (std::function< void()> callOnDestroy)

Typedef Documentation

◆ Conjuction

template<typename ... Ts>
using QtOhos::Conjuction
Initial value:
std::integral_constant<
bool, std::make_tuple(bool(Ts::value)...) == std::make_tuple(((void) Ts::value, true)...)>

Definition at line 53 of file qohosutils.h.

◆ QOhosAbilityOnContinueResult

Enumeration Type Documentation

◆ QtRunMode

enum class QtOhos::QtRunMode
strong
Enumerator
Normal 
NoUiChildProcess 

Definition at line 73 of file qohosplugincore.h.

Function Documentation

◆ acquireAndCleanPendingAutoStartedInstanceWindowFlag()

bool QtOhos::acquireAndCleanPendingAutoStartedInstanceWindowFlag ( )

Definition at line 1852 of file qohosjsmain.cpp.

◆ adaptAsyncCallResultToJsPromise()

template<typename T>
QNapi::Promise QtOhos::adaptAsyncCallResultToJsPromise ( QOhosJsState & jsState,
std::function< QNapi::Value(QOhosJsState &, T)> promiseValueFactory,
const QOhosConsumer< QOhosJsState &, QOhosConsumer< QOhosJsState &, T > > & asyncCallFunc )

Definition at line 66 of file qohosjsutils.h.

◆ blockEventLoopsWhenSuspended()

bool QtOhos::blockEventLoopsWhenSuspended ( )

Definition at line 1810 of file qohosjsmain.cpp.

Referenced by QOhosEventDispatcher::~QOhosEventDispatcher().

Here is the caller graph for this function:

◆ callUiAbilityDelegates()

void QtOhos::callUiAbilityDelegates ( const char * methodName,
const std::vector< QNapi::Value > & args )

Definition at line 1279 of file qohosplugincore.cpp.

◆ clearJsTimeout()

void QtOhos::clearJsTimeout ( QOhosJsState & jsState,
int timerId )

Definition at line 67 of file qohosjsutils.cpp.

◆ dispatchNewWant()

void QtOhos::dispatchNewWant ( QNapi::Object qAbility,
QNapi::Object want,
QNapi::Object launchParam )

Definition at line 1274 of file qohosplugincore.cpp.

◆ getOptionalProperty()

template<typename T>
std::optional< T > QtOhos::getOptionalProperty ( const QNapi::Object & object,
const std::string & propName )

Definition at line 83 of file qohosjsutils.h.

◆ getQOhosPermissionsHelperImpl()

QOhosPermissionsHelper * QtOhos::getQOhosPermissionsHelperImpl ( )

Definition at line 224 of file qohospermissionshelperimpl.cpp.

◆ getQtState()

QtState & QtOhos::getQtState ( )

Definition at line 265 of file qcore_ohos.cpp.

◆ initJsThreadState()

void QtOhos::initJsThreadState ( napi_env env,
std::map< std::string, QNapi::Reference< QNapi::Function > > && jsModulesFactories,
std::shared_ptr< AppFunctions > appFunctions,
QtRunMode qtRunMode )

Definition at line 1258 of file qohosplugincore.cpp.

◆ initQtThreadState()

void QtOhos::initQtThreadState ( )

Definition at line 260 of file qcore_ohos.cpp.

◆ invokeInQtThread()

void QtOhos::invokeInQtThread ( std::function< void()> && task)

Definition at line 270 of file qcore_ohos.cpp.

◆ isDebugDrawQtRasterBackingStoreFlushedRegionEnabled()

bool QtOhos::isDebugDrawQtRasterBackingStoreFlushedRegionEnabled ( )

Definition at line 1827 of file qohosjsmain.cpp.

◆ isDebugUseBasicStyleAndThemeEnabled()

bool QtOhos::isDebugUseBasicStyleAndThemeEnabled ( )

Definition at line 1832 of file qohosjsmain.cpp.

◆ isEmulatorQuirkWorkaroundsEnabled()

bool QtOhos::isEmulatorQuirkWorkaroundsEnabled ( )

Definition at line 1847 of file qohosjsmain.cpp.

Referenced by QOhosWindowProxy::setWindowTitleButtonVisible().

Here is the caller graph for this function:

◆ isGlBackingStoreDefaultEnabled()

bool QtOhos::isGlBackingStoreDefaultEnabled ( )

Definition at line 1822 of file qohosjsmain.cpp.

◆ isJsThread()

bool QtOhos::isJsThread ( )

Definition at line 1269 of file qohosplugincore.cpp.

Referenced by QtOhos::JsScopeDataOwner< JsScopeData >::~JsScopeDataOwner().

Here is the caller graph for this function:

◆ isNativeNodeApiKeyEventsEnabled()

bool QtOhos::isNativeNodeApiKeyEventsEnabled ( )

Definition at line 1837 of file qohosjsmain.cpp.

◆ isNativeNodeApiMouseEventsEnabled()

bool QtOhos::isNativeNodeApiMouseEventsEnabled ( )

Definition at line 1842 of file qohosjsmain.cpp.

◆ isOhosNoUiChildMode()

bool QtOhos::isOhosNoUiChildMode ( )

Definition at line 1764 of file qohosjsmain.cpp.

References NoUiChildProcess.

Referenced by QOhosPlatformIntegration::QOhosPlatformIntegration(), QOhosPlatformIntegration::hasCapability(), and QT_BEGIN_NAMESPACE::setOhosConfigColorMode().

Here is the caller graph for this function:

◆ isVsyncOnSoftwareBackingStoreEnabled()

bool QtOhos::isVsyncOnSoftwareBackingStoreEnabled ( )

Definition at line 1769 of file qohosjsmain.cpp.

◆ logJsCallbackError()

void QtOhos::logJsCallbackError ( const QOhosCallbackInfo & cbInfo,
const char * errorMessagePrefix )

Definition at line 279 of file qcore_ohos.cpp.

Referenced by makeErrorLoggingJsCallback().

Here is the caller graph for this function:

◆ makeBigEventLoggingEventBuilder()

std::shared_ptr< BigEventLoggingEventBuilder > QtOhos::makeBigEventLoggingEventBuilder ( const std::string & eventName,
::EventType eventType,
std::chrono::time_point< std::chrono::system_clock > eventTime )

Definition at line 196 of file qohosbigdataeventlogging.cpp.

◆ makeCallOnceConsumerWrapper()

template<typename ... Ts, typename BaseConsumer>
std::enable_if_t< std::is_assignable< QOhosConsumer< Ts... >, BaseConsumer >::value, std::function< bool(Ts...)> > QtOhos::makeCallOnceConsumerWrapper ( BaseConsumer && baseConsumer)

Definition at line 216 of file qohosutils.h.

◆ makeCompressingAsyncConsumer()

template<typename T>
QOhosConsumer< T > QtOhos::makeCompressingAsyncConsumer ( QOhosConsumer< T > baseConsumer,
QOhosConsumer< std::function< void()> > asyncExecutor )

Definition at line 182 of file qohosutils.h.

◆ makeCopyByValue()

template<typename T>
T QtOhos::makeCopyByValue ( T value)
constexpr

Definition at line 134 of file qohosutils.h.

◆ makeDestroyNotifier()

std::shared_ptr< void > QtOhos::makeDestroyNotifier ( std::function< void()> callOnDestroy)
inline

Definition at line 344 of file qohoscommon_p.h.

◆ makeErrorLoggingJsCallback()

std::function< void(const QOhosCallbackInfo &)> QtOhos::makeErrorLoggingJsCallback ( std::string callContext)

Definition at line 359 of file qcore_ohos.cpp.

References logJsCallbackError().

Here is the call graph for this function:

◆ makeMemoizingSupplier()

template<typename T>
QOhosSupplier< T > QtOhos::makeMemoizingSupplier ( QOhosSupplier< T > baseSupplier)

Definition at line 229 of file qohosutils.h.

◆ makeOhosConfigValueDataSource()

template<typename ConfigValue>
QOhosSupplier< ConfigValue > QtOhos::makeOhosConfigValueDataSource ( std::function< ConfigValue(QOhosJsState &)> initValueSupplier,
std::function< ConfigValue(QOhosJsState &, const QNapi::Object &)> valueFetcher,
QOhosConsumer< ConfigValue > valueChangedHandler )

Definition at line 92 of file qohosjsutils.h.

◆ makeProxyWithAsyncJsThreadDeleter()

template<typename T>
std::shared_ptr< T > QtOhos::makeProxyWithAsyncJsThreadDeleter ( std::shared_ptr< T > && baseSharedPtr)

Definition at line 394 of file qcore_ohos_p.h.

References QOhosJsThreadGateway::invoke().

Here is the call graph for this function:

◆ makeProxyWithJsThreadDeleter()

template<typename T>
std::shared_ptr< T > QtOhos::makeProxyWithJsThreadDeleter ( std::shared_ptr< T > && baseSharedPtr)

Definition at line 379 of file qcore_ohos_p.h.

References QOhosJsThreadGateway::runAndWait().

Here is the call graph for this function:

◆ makeQThreadSafeRef()

template<typename T>
QThreadSafeRef< T > QtOhos::makeQThreadSafeRef ( T * obj)

Definition at line 328 of file qcore_ohos_p.h.

◆ makeResolvedPromise() [1/2]

QNapi::Promise QtOhos::makeResolvedPromise ( Napi::Env env)

Definition at line 79 of file qohosjsutils.cpp.

◆ makeResolvedPromise() [2/2]

QNapi::Promise QtOhos::makeResolvedPromise ( QNapi::Value valueForResolve)

Definition at line 72 of file qohosjsutils.cpp.

◆ makeSharedPtrWithAttachedExtraData()

template<typename T>
std::shared_ptr< T > QtOhos::makeSharedPtrWithAttachedExtraData ( std::shared_ptr< T > baseSharedPtr,
std::shared_ptr< void > extraData )

Definition at line 326 of file qohoscommon_p.h.

◆ makeSingleThreadExecutor()

QOhosConsumer< std::function< void()> > QtOhos::makeSingleThreadExecutor ( const SingleThreadExecutorConfig & config = {})

Definition at line 148 of file qohossinglethreadexecutor.cpp.

◆ makeWeakPtr()

template<typename T>
std::weak_ptr< T > QtOhos::makeWeakPtr ( const std::shared_ptr< T > & obj)

Definition at line 339 of file qohoscommon_p.h.

◆ mapBoolToTrueFalseStr()

const char * QtOhos::mapBoolToTrueFalseStr ( bool value)

Definition at line 55 of file qohosutils.cpp.

Referenced by QOhosWindowProxy::enableDrag(), QOhosWindowProxy::setWindowKeepScreenOn(), and QT_BEGIN_NAMESPACE::tryMakeDefaultUdmfRecordFactoryFromQMimeDataOrNull().

Here is the caller graph for this function:

◆ mapJsonObjectToNapiObject()

QNapi::Object QtOhos::mapJsonObjectToNapiObject ( napi_env env,
const QJsonObject & jsonObject )

Definition at line 111 of file qohosjsonconversions.cpp.

◆ mapNapiObjectToJsonObject()

QJsonObject QtOhos::mapNapiObjectToJsonObject ( const QNapi::Object & napiObject)

Definition at line 106 of file qohosjsonconversions.cpp.

◆ moveToSharedPtr()

template<typename T>
std::shared_ptr< T > QtOhos::moveToSharedPtr ( T && obj)

Definition at line 314 of file qohoscommon_p.h.

◆ predefinedJsModuleNames()

std::vector< std::string > QtOhos::predefinedJsModuleNames ( )

Definition at line 1253 of file qohosplugincore.cpp.

◆ printfToString()

std::string QtOhos::printfToString ( const char * format,
... )

Definition at line 28 of file qohosutils.cpp.

◆ quitApplicationFromJsThread()

void QtOhos::quitApplicationFromJsThread ( )

Definition at line 1774 of file qohosjsmain.cpp.

◆ readChildProcessSetupData()

QNapi::Object QtOhos::readChildProcessSetupData ( Napi::Env env)

Definition at line 207 of file qohosnouichildprocess.cpp.

◆ removeMatchingWithLookahead()

template<typename ForwardIt, typename Predicate>
ForwardIt QtOhos::removeMatchingWithLookahead ( ForwardIt firstIt,
ForwardIt lastIt,
Predicate && predicate )

Definition at line 92 of file qohosutils.h.

◆ rethrowUnlessJsBusinessErrorIsOneOf()

void QtOhos::rethrowUnlessJsBusinessErrorIsOneOf ( const Napi::Error & error,
const std::vector< std::uint32_t > & suppressedErrorCodes,
const char * callerContextName )

Definition at line 97 of file qohosjsutils.cpp.

◆ runIgnoringJsBusinessError()

bool QtOhos::runIgnoringJsBusinessError ( QOhosJsState & ,
const std::vector< std::uint32_t > & suppressedErrorCodes,
const char * callerContextName,
const std::function< void()> & action )

Definition at line 110 of file qohosjsutils.cpp.

Referenced by QOhosWindowProxy::setWindowTitleButtonVisible().

Here is the caller graph for this function:

◆ sendChildProcessSetupData()

void QtOhos::sendChildProcessSetupData ( int childPid,
QJsonObject setupData )

Definition at line 222 of file qohosnouichildprocess.cpp.

◆ setJsTimeout()

int QtOhos::setJsTimeout ( QOhosJsState & jsState,
std::function< void(const QOhosCallbackInfo &)> timeoutFunc,
std::chrono::milliseconds delay )

Definition at line 58 of file qohosjsutils.cpp.

Referenced by QT_BEGIN_NAMESPACE::makePromiseResolvedAfter().

Here is the caller graph for this function:

◆ startDelayedJsThreadTask()

std::shared_ptr< void > QtOhos::startDelayedJsThreadTask ( QOhosJsState & jsState,
std::function< void(QOhosJsState &)> task,
std::chrono::milliseconds delay )

Definition at line 17 of file qohosjsutils.cpp.

◆ takeFunctionToSharedPtr()

template<typename Signature>
std::shared_ptr< std::function< Signature > > QtOhos::takeFunctionToSharedPtr ( std::function< Signature > & func)

Definition at line 320 of file qohoscommon_p.h.

◆ tryCallFirstUiAbilityDelegate()

std::optional< QNapi::Value > QtOhos::tryCallFirstUiAbilityDelegate ( const char * methodName,
const std::vector< QNapi::Value > & args,
QNapi::Value resultOnThrow )

Definition at line 1284 of file qohosplugincore.cpp.

◆ tryExtractErrorInfoFromJsError()

QOhosJsErrorInfo QtOhos::tryExtractErrorInfoFromJsError ( QNapi::Value jsErrorOrEmpty)

Definition at line 337 of file qcore_ohos.cpp.

◆ tryGetCodeFromJsBusinessError()

std::optional< std::uint32_t > QtOhos::tryGetCodeFromJsBusinessError ( const Napi::Error & error)

Definition at line 84 of file qohosjsutils.cpp.

◆ tryInvokeInQtThreadAndTryWaitForContinue()

bool QtOhos::tryInvokeInQtThreadAndTryWaitForContinue ( std::function< void(std::function< void()>)> && task,
std::chrono::nanoseconds timeout )

Definition at line 1290 of file qohosplugincore.cpp.

◆ tryMapOptMainWindowToQAbility()

std::optional< QNapi::Object > QtOhos::tryMapOptMainWindowToQAbility ( QOhosJsState & jsState,
std::optional< QtOhos::QObjectThreadSafeRef > optInstanceMainWindowRef )

Definition at line 60 of file qohosutils.cpp.

◆ tryParseStringAsFiniteDouble()

std::optional< double > QtOhos::tryParseStringAsFiniteDouble ( const std::string & inputString)

Definition at line 13 of file qohosutils.cpp.

Referenced by QT_BEGIN_NAMESPACE::tryGetDataItemTypedValue().

Here is the caller graph for this function:

◆ tupleForEach() [1/2]

template<typename UnaryFunc, typename... TupleElements>
void QtOhos::tupleForEach ( const std::tuple< TupleElements... > & tuple,
UnaryFunc func )

Definition at line 128 of file qohosutils.h.

◆ tupleForEach() [2/2]

template<typename UnaryFunc, typename... TupleElements, std::size_t... TupleIndices>
void QtOhos::tupleForEach ( const std::tuple< TupleElements... > & tuple,
UnaryFunc func,
std::index_sequence< TupleIndices... >  )

Definition at line 122 of file qohosutils.h.

◆ updateApplicationState()

void QtOhos::updateApplicationState ( int state)

Definition at line 1785 of file qohosjsmain.cpp.

References QOhosEventDispatcherStopper::goingToStop(), QOhosEventDispatcherStopper::instance(), QOhosPlatformIntegration::instance(), QOhosEventDispatcherStopper::startAll(), and QOhosEventDispatcherStopper::stopped().

Here is the call graph for this function: