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

Namespaces

namespace  qohosutils_details
namespace  enums

Classes

struct  OhosEnumMeta
class  QObjectThreadSafeRef
class  QThreadSafeRef
class  QtState
class  TypedId
struct  EvaluateSequentially
class  JsWindowsTracker
class  QAbilityPeer
struct  QAbilityInfo
class  QAbilityEngine
class  AppFunctions
class  JsState
class  QUiAbilityPeer
class  CallbackInfo
struct  OhosEnumMeta< enums::kit::ShareKit::systemShare::SelectionMode >
struct  OhosEnumMeta< enums::kit::ShareKit::systemShare::ShareAbilityType >
struct  OhosEnumMeta< enums::kit::ShareKit::systemShare::SharePreviewMode >
struct  OhosEnumMeta< enums::ohos::abilityAccessCtrl::PermissionStatus >
struct  OhosEnumMeta< enums::ohos::app::ability::AbilityConstant::ContinueState >
struct  OhosEnumMeta< enums::ohos::app::ability::AbilityConstant::LaunchReason >
struct  OhosEnumMeta< enums::ohos::app::ability::AbilityConstant::OnContinueResult >
struct  OhosEnumMeta< enums::ohos::app::ability::AbilityConstant::WindowMode >
struct  OhosEnumMeta< enums::ohos::app::ability::ConfigurationConstant::ColorMode >
struct  OhosEnumMeta< enums::ohos::app::ability::contextConstant::ProcessMode >
struct  OhosEnumMeta< enums::ohos::app::ability::contextConstant::StartupVisibility >
struct  OhosEnumMeta< enums::ohos::app::ability::wantConstant::Flags >
struct  OhosEnumMeta< enums::ohos::bundle::bundleManager::SupportWindowMode >
struct  OhosEnumMeta< enums::ohos::display::DisplaySourceMode >
struct  OhosEnumMeta< enums::ohos::display::Orientation >
struct  OhosEnumMeta< enums::ohos::file::picker::DocumentSelectMode >
struct  OhosEnumMeta< enums::ohos::inputMethod::Direction >
struct  OhosEnumMeta< enums::ohos::inputMethod::EnterKeyType >
struct  OhosEnumMeta< enums::ohos::inputMethod::RequestKeyboardReason >
struct  OhosEnumMeta< enums::ohos::inputMethod::TextInputType >
struct  OhosEnumMeta< enums::ohos::multimodalInput::pointer::PointerStyle >
struct  OhosEnumMeta< enums::ohos::notificationManager::ContentType >
struct  OhosEnumMeta< enums::ohos::net::connection::NetBearType >
struct  OhosEnumMeta< enums::ohos::net::connection::NetCap >
struct  OhosEnumMeta< enums::ohos::window::AnimationType >
struct  OhosEnumMeta< enums::ohos::window::AvoidAreaType >
struct  OhosEnumMeta< enums::ohos::window::MaximizePresentation >
struct  OhosEnumMeta< enums::ohos::window::ModalityType >
struct  OhosEnumMeta< enums::ohos::window::RectChangeReason >
struct  OhosEnumMeta< enums::ohos::window::WindowEventType >
struct  OhosEnumMeta< enums::ohos::window::WindowStatusType >
class  BigEventLoggingEvent
class  BigEventLoggingEventBuilder
struct  WindowIdStruct
class  InternalWindowId
struct  SingleThreadExecutorConfig
class  QUiAbilityPeerBackend
struct  QAbilityInstancesManager
class  QOhosMtBlockingCallsGateway
class  QOhosQpaFunctions
struct  OhosEnumMeta< UserActivityScenario >
struct  OhosEnumMeta< LocationError >
struct  OhosEnumMeta< SatelliteConstellationCategory >
struct  OnOffMethodsBasedEventHandlerOptions

Typedefs

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

Enumerations

enum class  QtRunMode { Normal , NoUiChildProcess }

Functions

void initQtThreadState ()
QtStategetQtState ()
void invokeInQtThread (std::function< void()> task)
void logJsCallbackError (const QOhosCallbackInfo &cbInfo, const char *errorMessagePrefix)
std::function< void(const QOhosCallbackInfo &)> makeErrorLoggingJsCallback (std::string callContext)
template<typename T>
QThreadSafeRef< T > makeQThreadSafeRef (T *obj)
template<typename T>
std::shared_ptr< T > makeProxyWithJsThreadDeleter (std::shared_ptr< T > &&baseSharedPtr)
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 func, std::index_sequence< TupleIndices... >)
template<typename UnaryFunc, typename... TupleElements>
void tupleForEach (const std::tuple< TupleElements... > &tuple, UnaryFunc func)
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)
std::optional< double > tryParseStringAsFiniteDouble (const std::string &inputString)
template<typename T>
std::enable_if_t< std::is_integral< T >::value &&std::is_unsigned< T >::value, std::optional< T > > tryParseStringAsUnsignedInteger (const std::string &inputString)
std::string printfToString (const char *format,...) Q_ATTRIBUTE_FORMAT_PRINTF(1
std::string const char * mapBoolToTrueFalseStr (bool value)
std::shared_ptr< QtOhos::QAbilityPeertryMapOptMainWindowToAbilityPeer (QtOhos::JsState &jsState, std::optional< QtOhos::QObjectThreadSafeRef > optInstanceMainWindowRef)
template<typename T>
constexpr T makeCopyByValue (T value)
bool isOhosNoUiChildMode ()
bool isGlBackingStoreDefaultEnabled ()
bool isDebugDrawQtRasterBackingStoreFlushedRegionEnabled ()
bool isDebugUseBasicStyleAndThemeEnabled ()
bool isNativeNodeApiKeyEventsEnabled ()
bool isNativeNodeApiMouseEventsEnabled ()
bool isVsyncOnSoftwareBackingStoreEnabled ()
bool acquireAndCleanPendingAutoStartedInstanceWindowFlag ()
void quitApplicationFromJsThread ()
void updateApplicationState (int state)
bool blockEventLoopsWhenSuspended ()
void initJsThreadState (napi_env env, std::map< std::string, QNapi::Reference< QNapi::Function > > &&jsModulesFactories, std::shared_ptr< AppFunctions > appFunctions, QtRunMode qtRunMode)
void addJsQAbilityPeer (std::shared_ptr< QAbilityPeer > qAbilityPeer)
void removeMatchingJsQAbilityPeer (QNapi::Object qAbility)
void dispatchNewWant (QNapi::Object want, QNapi::Object launchParam)
void invokeInJsThread (std::function< void(JsState &)> task)
void invokeInJsThreadAndWaitForContinue (std::function< void(JsState &, QOhosTaskPromise<>)> &&task, std::string callerContextName={})
void runInJsThreadAndWait (const std::function< void(JsState &)> &task, std::string callerContextName={})
template<typename Func>
auto evalInJsThread (Func &&func, std::string callerContextName={}) -> decltype(func(std::declval< JsState & >()))
template<typename T>
evalInJsThreadWithConsumer (std::function< void(QtOhos::JsState &, std::function< void(T)>)> evalFunc)
template<typename T>
evalInJsThreadWithPromise (std::function< void(QtOhos::JsState &, QOhosTaskPromise< T >)> evalFunc, std::string callerContextName={})
Q_REQUIRED_RESULT bool tryInvokeInQtThreadAndTryWaitForContinue (std::function< void(std::function< void()>)> &&task, std::chrono::nanoseconds timeout)
std::shared_ptr< BigEventLoggingEventBuildermakeBigEventLoggingEventBuilder (const std::string &eventName, ::EventType eventType, std::chrono::time_point< std::chrono::system_clock > eventTime)
template<typename T>
QNapi::Promise adaptAsyncCallResultToJsPromise (JsState &jsState, std::function< QNapi::Value(JsState &, T)> promiseValueFactory, const QOhosConsumer< JsState &, QOhosConsumer< JsState &, T > > &asyncCallFunc)
Q_REQUIRED_RESULT std::shared_ptr< voidstartDelayedJsThreadTask (JsState &jsState, std::function< void(JsState &)> task, std::chrono::milliseconds delay)
int setJsTimeout (JsState &jsState, std::function< void(const CallbackInfo &)> timeoutFunc, std::chrono::milliseconds delay)
void clearJsTimeout (JsState &jsState, int timerId)
QNapi::Promise makeResolvedPromise (QNapi::Value valueForResolve)
template<typename T>
std::optional< T > getOptionalProperty (const QNapi::Object &object, const std::string &propName)
std::optional< std::uint32_t > tryGetCodeFromJsBusinessError (const Napi::Error &error)
void rethrowUnlessJsBusinessErrorIs (const Napi::Error &error, std::uint32_t suppressedErrorCode, const char *callerContextName)
bool runIgnoringJsBusinessError (JsState &, std::uint32_t suppressedErrorCode, const char *callerContextName, const std::function< void()> &action)
template<typename T>
QOhosSupplier< T > makeDataSource (std::function< T(JsState &)> initialValueReader, std::function< std::shared_ptr< void >(JsState &, QOhosConsumer< T >)> changeListenerFactory, QOhosConsumer< T > valueChangedHandler, QOhosConsumer< std::function< void()> > targetThreadExecutor, std::string callerContextName={})
template<typename ConfigValue>
QOhosSupplier< ConfigValue > makeOhosConfigValueDataSource (std::function< ConfigValue(QtOhos::JsState &)> initValueSupplier, std::function< ConfigValue(QtOhos::JsState &, const QNapi::Object &)> valueFetcher, QOhosConsumer< ConfigValue > valueChangedHandler)
QOhosConsumer< std::function< void()> > makeSingleThreadExecutor (const SingleThreadExecutorConfig &config={})
QOhosPermissionsHelpergetQOhosPermissionsHelperImpl ()
QNapi::Object readChildProcessSetupData (Napi::Env env)
void sendChildProcessSetupData (int childPid, QJsonObject setupData)
std::shared_ptr< QAbilityInstancesManagermakeQAbilityInstancesManager (std::shared_ptr< QAbilityEngine > abilityEngine, std::function< void(JsState &, std::shared_ptr< QAbilityPeer >)> autoStartedInstanceStartupNotifyFunc)
std::shared_ptr< voidregisterOnOffMethodsBasedEventHandler (QNapi::Object eventSourceObject, const std::string &eventTypeName, QNapi::CallbackFuncWrapper eventHandler, OnOffMethodsBasedEventHandlerOptions options)
template<typename T>
std::shared_ptr< T > moveToSharedPtr (T &&obj)
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 > &obj)
std::shared_ptr< voidmakeDestroyNotifier (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 61 of file qohosutils.h.

◆ QOhosAbilityOnContinueResult

Enumeration Type Documentation

◆ QtRunMode

enum class QtOhos::QtRunMode
strong
Enumerator
Normal 
NoUiChildProcess 

Definition at line 134 of file qohosplugincore.h.

Function Documentation

◆ acquireAndCleanPendingAutoStartedInstanceWindowFlag()

bool QtOhos::acquireAndCleanPendingAutoStartedInstanceWindowFlag ( )

Definition at line 1830 of file qohosjsmain.cpp.

References s_autoStartedAbilityInstanceWaitingForQtWindow.

◆ adaptAsyncCallResultToJsPromise()

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

Definition at line 69 of file qohosjsutils.h.

◆ addJsQAbilityPeer()

void QtOhos::addJsQAbilityPeer ( std::shared_ptr< QAbilityPeer > qAbilityPeer)

Definition at line 960 of file qohosplugincore.cpp.

◆ blockEventLoopsWhenSuspended()

bool QtOhos::blockEventLoopsWhenSuspended ( )

Definition at line 1799 of file qohosjsmain.cpp.

Referenced by QOhosEventDispatcher::~QOhosEventDispatcher().

Here is the caller graph for this function:

◆ clearJsTimeout()

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

Definition at line 64 of file qohosjsutils.cpp.

◆ dispatchNewWant()

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

Definition at line 970 of file qohosplugincore.cpp.

◆ evalInJsThread()

template<typename Func>
auto QtOhos::evalInJsThread ( Func && func,
std::string callerContextName = {} ) -> decltype(func(std::declval< JsState & >()))

Definition at line 294 of file qohosplugincore.h.

◆ evalInJsThreadWithConsumer()

template<typename T>
T QtOhos::evalInJsThreadWithConsumer ( std::function< void(QtOhos::JsState &, std::function< void(T)>)> evalFunc)

Definition at line 304 of file qohosplugincore.h.

◆ evalInJsThreadWithPromise()

template<typename T>
T QtOhos::evalInJsThreadWithPromise ( std::function< void(QtOhos::JsState &, QOhosTaskPromise< T >)> evalFunc,
std::string callerContextName = {} )

Definition at line 313 of file qohosplugincore.h.

◆ getOptionalProperty()

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

Definition at line 86 of file qohosjsutils.h.

◆ getQOhosPermissionsHelperImpl()

QOhosPermissionsHelper * QtOhos::getQOhosPermissionsHelperImpl ( )

Definition at line 224 of file qohospermissionshelperimpl.cpp.

◆ getQtState()

QtState & QtOhos::getQtState ( )

Definition at line 262 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 950 of file qohosplugincore.cpp.

◆ initQtThreadState()

void QtOhos::initQtThreadState ( )

Definition at line 257 of file qcore_ohos.cpp.

◆ invokeInJsThread()

void QtOhos::invokeInJsThread ( std::function< void(JsState &)> task)

Definition at line 975 of file qohosplugincore.cpp.

Referenced by QOhosWindowManager::showFileDialogOpen(), and QOhosWindowManager::showFileDialogSave().

Here is the caller graph for this function:

◆ invokeInJsThreadAndWaitForContinue()

void QtOhos::invokeInJsThreadAndWaitForContinue ( std::function< void(JsState &, QOhosTaskPromise<>)> && task,
std::string callerContextName = {} )

◆ invokeInQtThread()

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

Definition at line 267 of file qcore_ohos.cpp.

◆ isDebugDrawQtRasterBackingStoreFlushedRegionEnabled()

bool QtOhos::isDebugDrawQtRasterBackingStoreFlushedRegionEnabled ( )

Definition at line 1810 of file qohosjsmain.cpp.

◆ isDebugUseBasicStyleAndThemeEnabled()

bool QtOhos::isDebugUseBasicStyleAndThemeEnabled ( )

Definition at line 1815 of file qohosjsmain.cpp.

◆ isGlBackingStoreDefaultEnabled()

bool QtOhos::isGlBackingStoreDefaultEnabled ( )

Definition at line 1805 of file qohosjsmain.cpp.

◆ isNativeNodeApiKeyEventsEnabled()

bool QtOhos::isNativeNodeApiKeyEventsEnabled ( )

Definition at line 1820 of file qohosjsmain.cpp.

◆ isNativeNodeApiMouseEventsEnabled()

bool QtOhos::isNativeNodeApiMouseEventsEnabled ( )

Definition at line 1825 of file qohosjsmain.cpp.

Referenced by QNativeNode::QNativeNode().

Here is the caller graph for this function:

◆ isOhosNoUiChildMode()

bool QtOhos::isOhosNoUiChildMode ( )

Definition at line 1753 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 1758 of file qohosjsmain.cpp.

◆ logJsCallbackError()

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

Definition at line 272 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 225 of file qohosutils.h.

◆ makeCompressingAsyncConsumer()

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

Definition at line 191 of file qohosutils.h.

◆ makeCopyByValue()

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

Definition at line 143 of file qohosutils.h.

◆ makeDataSource()

template<typename T>
QOhosSupplier< T > QtOhos::makeDataSource ( std::function< T(JsState &)> initialValueReader,
std::function< std::shared_ptr< void >(JsState &, QOhosConsumer< T >)> changeListenerFactory,
QOhosConsumer< T > valueChangedHandler,
QOhosConsumer< std::function< void()> > targetThreadExecutor,
std::string callerContextName = {} )

Definition at line 95 of file qohosjsutils.h.

◆ makeDestroyNotifier()

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

Definition at line 296 of file qohoscommon_p.h.

◆ makeErrorLoggingJsCallback()

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

Definition at line 315 of file qcore_ohos.cpp.

References logJsCallbackError().

Here is the call graph for this function:

◆ makeOhosConfigValueDataSource()

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

Definition at line 116 of file qohosjsutils.h.

◆ makeProxyWithJsThreadDeleter()

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

Definition at line 357 of file qcore_ohos_p.h.

References QOhosJsThreadGateway::runAndWait().

Here is the call graph for this function:

◆ makeQAbilityInstancesManager()

std::shared_ptr< QAbilityInstancesManager > QtOhos::makeQAbilityInstancesManager ( std::shared_ptr< QAbilityEngine > abilityEngine,
std::function< void(JsState &, std::shared_ptr< QAbilityPeer >)> autoStartedInstanceStartupNotifyFunc )

Definition at line 802 of file qohosqabilityinstancesmanager.cpp.

◆ makeQThreadSafeRef()

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

Definition at line 307 of file qcore_ohos_p.h.

◆ makeResolvedPromise()

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

Definition at line 69 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 278 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 291 of file qohoscommon_p.h.

◆ mapBoolToTrueFalseStr()

const char * QtOhos::mapBoolToTrueFalseStr ( bool value)

Definition at line 71 of file qohosutils.cpp.

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

Here is the caller graph for this function:

◆ moveToSharedPtr()

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

Definition at line 272 of file qohoscommon_p.h.

◆ printfToString()

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

Definition at line 44 of file qohosutils.cpp.

◆ quitApplicationFromJsThread()

void QtOhos::quitApplicationFromJsThread ( )

Definition at line 1763 of file qohosjsmain.cpp.

◆ readChildProcessSetupData()

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

Definition at line 163 of file qohosnouichildprocess.cpp.

◆ registerOnOffMethodsBasedEventHandler()

std::shared_ptr< void > QtOhos::registerOnOffMethodsBasedEventHandler ( QNapi::Object eventSourceObject,
const std::string & eventTypeName,
QNapi::CallbackFuncWrapper eventHandler,
OnOffMethodsBasedEventHandlerOptions options = {} )

Definition at line 12 of file qohosjsutils.cpp.

◆ removeMatchingJsQAbilityPeer()

void QtOhos::removeMatchingJsQAbilityPeer ( QNapi::Object qAbility)

Definition at line 965 of file qohosplugincore.cpp.

◆ removeMatchingWithLookahead()

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

Definition at line 101 of file qohosutils.h.

◆ rethrowUnlessJsBusinessErrorIs()

void QtOhos::rethrowUnlessJsBusinessErrorIs ( const Napi::Error & error,
std::uint32_t suppressedErrorCode,
const char * callerContextName )

Definition at line 89 of file qohosjsutils.cpp.

◆ runIgnoringJsBusinessError()

bool QtOhos::runIgnoringJsBusinessError ( JsState & ,
std::uint32_t suppressedErrorCode,
const char * callerContextName,
const std::function< void()> & action )

Definition at line 100 of file qohosjsutils.cpp.

◆ runInJsThreadAndWait()

void QtOhos::runInJsThreadAndWait ( const std::function< void(JsState &)> & task,
std::string callerContextName = {} )

Definition at line 1069 of file qohosplugincore.cpp.

Referenced by QNativeNode::QNativeNode(), QOhosForeignWindow::QOhosForeignWindow(), QNativeNode::addForeignWindowChild(), QNativeNode::detachFromParentIfPresent(), QNativeNode::fillToParent(), QNativeNode::lower(), QOhosWindowProxy::maximize(), QOhosInputMethodProxy::notifyConfigurationChange(), QOhosInputMethodProxy::notifyCursorUpdate(), QT_BEGIN_NAMESPACE::processPendingDropRequestAsynchronously(), QNativeNode::raise(), QOhosWindowProxy::recover(), QT_BEGIN_NAMESPACE::registerSettingsKeyObserver(), QNativeNode::setBackgroundColor(), QNativeNode::setBrightness(), QNativeNode::setContrast(), QNativeNode::setFocusable(), QNativeNode::setFocused(), QOhosForeignWindow::setGeometry(), QOhosClipboardObject::setMimeDataSync(), QNativeNode::setNodeAreaChangeHandler(), QNativeNode::setNodeFocusChangeHandler(), QNativeNode::setNodeVisibilityChangeHandler(), QOhosWindowProxy::setNonClientAreaMouseWindowCallbackReceiver(), QOhosWindowProxy::setNonClientAreaTouchWindowCallbackReceiver(), QT_BEGIN_NAMESPACE::setOhosConfigColorMode(), QNativeNode::setParent(), QNativeNode::setParent(), QOhosForeignWindow::setParent(), QOhosWindowProxy::setPointerStyleSync(), QNativeNode::setPosition(), QNativeNode::setSaturation(), QNativeNode::setSize(), QNativeNode::setSizeParentFillPercentNormalized(), QNativeNode::setTransparentForInput(), QNativeNode::setVisibility(), QOhosForeignWindow::setVisible(), QOhosWindowProxy::setWindowBackgroundColor(), QOhosWindowProxy::setWindowCallbackReceiver(), QOhosWindowProxy::setWindowDecorVisible(), QOhosWindowProxy::setWindowFocusable(), QOhosWindowProxy::setWindowShadowRadius(), QOhosWindowProxy::setWindowTitleButtonVisible(), QOhosWindowProxy::setWindowTitleMoveEnabled(), QOhosWindowProxy::setWindowTouchable(), QOhosInputMethodProxy::showTextInput(), QNativeNode::startDrag(), QT_BEGIN_NAMESPACE::QOhosSystemTrayIcon::updateIcon(), and QT_BEGIN_NAMESPACE::QOhosSystemTrayIcon::updateMenu().

Here is the caller graph for this function:

◆ sendChildProcessSetupData()

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

Definition at line 197 of file qohosnouichildprocess.cpp.

◆ setJsTimeout()

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

Definition at line 55 of file qohosjsutils.cpp.

◆ startDelayedJsThreadTask()

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

Definition at line 14 of file qohosjsutils.cpp.

◆ tryGetCodeFromJsBusinessError()

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

Definition at line 76 of file qohosjsutils.cpp.

◆ tryInvokeInQtThreadAndTryWaitForContinue()

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

Definition at line 1084 of file qohosplugincore.cpp.

◆ tryMapOptMainWindowToAbilityPeer()

std::shared_ptr< QtOhos::QAbilityPeer > QtOhos::tryMapOptMainWindowToAbilityPeer ( QtOhos::JsState & jsState,
std::optional< QtOhos::QObjectThreadSafeRef > optInstanceMainWindowRef )

Definition at line 76 of file qohosutils.cpp.

References QtOhos::JsState::defaultQAbilityPeer().

Here is the call graph for this function:

◆ tryParseStringAsFiniteDouble()

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

Definition at line 28 of file qohosutils.cpp.

Referenced by QT_BEGIN_NAMESPACE::tryGetDataItemTypedValue().

Here is the caller graph for this function:

◆ tryParseStringAsUnsignedInteger()

template<typename T>
std::enable_if_t< std::is_integral< T >::value &&std::is_unsigned< T >::value, std::optional< T > > QtOhos::tryParseStringAsUnsignedInteger ( const std::string & inputString)

Definition at line 239 of file qohosutils.h.

References QtOhos::qohosutils_details::tryParseStringAsUIntMax().

Here is the call 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 137 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 131 of file qohosutils.h.

◆ updateApplicationState()

void QtOhos::updateApplicationState ( int state)

Definition at line 1774 of file qohosjsmain.cpp.

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

Here is the call graph for this function: