![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
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) |
| 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) |
| QJsonObject | mapNapiObjectToJsonObject (const QNapi::Object &napiObject) |
| QNapi::Object | mapJsonObjectToNapiObject (napi_env env, const QJsonObject &jsonObject) |
| 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< void > | startDelayedJsThreadTask (QOhosJsState &jsState, std::function< void(QOhosJsState &)> task, std::chrono::milliseconds delay) |
| int | setJsTimeout (JsState &jsState, std::function< void(const CallbackInfo &)> 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 &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 (QOhosJsState &, std::uint32_t suppressedErrorCode, 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 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) |
| std::string | printfToString (const char *format,...) Q_ATTRIBUTE_FORMAT_PRINTF(1 |
| std::string const char * | mapBoolToTrueFalseStr (bool value) |
| std::optional< QNapi::Object > | tryMapOptMainWindowToQAbility (QOhosJsState &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 qAbility, 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> | |
| T | evalInJsThreadWithConsumer (std::function< void(QtOhos::JsState &, std::function< void(T)>)> evalFunc) |
| template<typename T> | |
| 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< BigEventLoggingEventBuilder > | makeBigEventLoggingEventBuilder (const std::string &eventName, ::EventType eventType, std::chrono::time_point< std::chrono::system_clock > eventTime) |
| QOhosConsumer< std::function< void()> > | makeSingleThreadExecutor (const SingleThreadExecutorConfig &config={}) |
| QOhosPermissionsHelper * | getQOhosPermissionsHelperImpl () |
| QNapi::Object | readChildProcessSetupData (Napi::Env env) |
| void | sendChildProcessSetupData (int childPid, QJsonObject setupData) |
| std::shared_ptr< QAbilityInstancesManager > | makeQAbilityInstancesManager (std::shared_ptr< QAbilityEngine > abilityEngine, std::function< void(JsState &, std::shared_ptr< QAbilityPeer >)> autoStartedInstanceStartupNotifyFunc) |
| 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< void > | makeDestroyNotifier (std::function< void()> callOnDestroy) |
| using QtOhos::Conjuction |
Definition at line 53 of file qohosutils.h.
| using QtOhos::QOhosAbilityOnContinueResult = QtOhosQpa::enums::ohos::app::ability::AbilityConstant::OnContinueResult |
Definition at line 139 of file qohosplugincore.h.
|
strong |
| Enumerator | |
|---|---|
| Normal | |
| NoUiChildProcess | |
Definition at line 96 of file qohosplugincore.h.
| bool QtOhos::acquireAndCleanPendingAutoStartedInstanceWindowFlag | ( | ) |
Definition at line 1855 of file qohosjsmain.cpp.
| QNapi::Promise QtOhos::adaptAsyncCallResultToJsPromise | ( | JsState & | jsState, |
| std::function< QNapi::Value(JsState &, T)> | promiseValueFactory, | ||
| const QOhosConsumer< JsState &, QOhosConsumer< JsState &, T > > & | asyncCallFunc ) |
Definition at line 65 of file qohosjsutils.h.
| void QtOhos::addJsQAbilityPeer | ( | std::shared_ptr< QAbilityPeer > | qAbilityPeer | ) |
Definition at line 955 of file qohosplugincore.cpp.
| bool QtOhos::blockEventLoopsWhenSuspended | ( | ) |
Definition at line 1824 of file qohosjsmain.cpp.
Referenced by QOhosEventDispatcher::~QOhosEventDispatcher().
| void QtOhos::clearJsTimeout | ( | QOhosJsState & | jsState, |
| int | timerId ) |
Definition at line 65 of file qohosjsutils.cpp.
| void QtOhos::dispatchNewWant | ( | QNapi::Object | qAbility, |
| QNapi::Object | want, | ||
| QNapi::Object | launchParam ) |
Definition at line 965 of file qohosplugincore.cpp.
| auto QtOhos::evalInJsThread | ( | Func && | func, |
| std::string | callerContextName = {} ) -> decltype(func(std::declval< JsState & >())) |
Definition at line 253 of file qohosplugincore.h.
| T QtOhos::evalInJsThreadWithConsumer | ( | std::function< void(QtOhos::JsState &, std::function< void(T)>)> | evalFunc | ) |
Definition at line 263 of file qohosplugincore.h.
| T QtOhos::evalInJsThreadWithPromise | ( | std::function< void(QtOhos::JsState &, QOhosTaskPromise< T >)> | evalFunc, |
| std::string | callerContextName = {} ) |
Definition at line 272 of file qohosplugincore.h.
| std::optional< T > QtOhos::getOptionalProperty | ( | const QNapi::Object & | object, |
| const std::string & | propName ) |
Definition at line 82 of file qohosjsutils.h.
| QOhosPermissionsHelper * QtOhos::getQOhosPermissionsHelperImpl | ( | ) |
Definition at line 224 of file qohospermissionshelperimpl.cpp.
| QtState & QtOhos::getQtState | ( | ) |
Definition at line 262 of file qcore_ohos.cpp.
| 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 943 of file qohosplugincore.cpp.
| void QtOhos::initQtThreadState | ( | ) |
Definition at line 257 of file qcore_ohos.cpp.
Definition at line 970 of file qohosplugincore.cpp.
| void QtOhos::invokeInJsThreadAndWaitForContinue | ( | std::function< void(JsState &, QOhosTaskPromise<>)> && | task, |
| std::string | callerContextName = {} ) |
Definition at line 975 of file qohosplugincore.cpp.
Referenced by QOhosWindowProxy::enableDrag(), QOhosWindowProxy::maximize(), QOhosWindowProxy::minimize(), QOhosWindowProxy::moveWindowToGlobal(), QOhosWindowProxy::moveWindowToGlobalOrGlobalDisplay(), QOhosWindowProxy::raiseToAppTop(), QOhosWindowProxy::recover(), QOhosWindowProxy::removeStartingWindow(), QOhosWindowProxy::restore(), QOhosWindowProxy::setCustomCursor(), QOhosWindowProxy::setFollowParentMultiScreenPolicy(), QOhosWindowProxy::setSize(), QOhosWindowProxy::setSubWindowModalDisabled(), QOhosWindowProxy::setSubWindowModalEnabled(), QOhosWindowProxy::setSupportedWindowModes(), QOhosWindowProxy::setTitle(), QOhosWindowProxy::setWindowCornerRadius(), QOhosWindowProxy::setWindowFocusable(), QOhosWindowProxy::setWindowKeepScreenOn(), QOhosWindowProxy::setWindowLayoutFullScreen(), QOhosWindowProxy::setWindowLimits(), QOhosWindowProxy::setWindowMask(), QOhosWindowProxy::setWindowPrivacyMode(), QOhosWindowProxy::setWindowRectAutoSave(), QOhosWindowProxy::setWindowSystemBarEnable(), QOhosWindowProxy::setWindowTopmost(), QOhosWindowProxy::setWindowTouchable(), QOhosWindowProxy::shiftAppWindowFocus(), QOhosWindowProxy::showAbility(), QOhosWindowProxy::showWindow(), and QOhosWindowProxy::startMoving().
Definition at line 267 of file qcore_ohos.cpp.
| bool QtOhos::isDebugDrawQtRasterBackingStoreFlushedRegionEnabled | ( | ) |
Definition at line 1835 of file qohosjsmain.cpp.
| bool QtOhos::isDebugUseBasicStyleAndThemeEnabled | ( | ) |
Definition at line 1840 of file qohosjsmain.cpp.
| bool QtOhos::isGlBackingStoreDefaultEnabled | ( | ) |
Definition at line 1830 of file qohosjsmain.cpp.
| bool QtOhos::isNativeNodeApiKeyEventsEnabled | ( | ) |
Definition at line 1845 of file qohosjsmain.cpp.
| bool QtOhos::isNativeNodeApiMouseEventsEnabled | ( | ) |
Definition at line 1850 of file qohosjsmain.cpp.
| bool QtOhos::isOhosNoUiChildMode | ( | ) |
Definition at line 1778 of file qohosjsmain.cpp.
References NoUiChildProcess.
Referenced by QOhosPlatformIntegration::QOhosPlatformIntegration(), QOhosPlatformIntegration::hasCapability(), and QT_BEGIN_NAMESPACE::setOhosConfigColorMode().
| bool QtOhos::isVsyncOnSoftwareBackingStoreEnabled | ( | ) |
Definition at line 1783 of file qohosjsmain.cpp.
| void QtOhos::logJsCallbackError | ( | const QOhosCallbackInfo & | cbInfo, |
| const char * | errorMessagePrefix ) |
Definition at line 272 of file qcore_ohos.cpp.
Referenced by makeErrorLoggingJsCallback().
| 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.
| std::enable_if_t< std::is_assignable< QOhosConsumer< Ts... >, BaseConsumer >::value, std::function< bool(Ts...)> > QtOhos::makeCallOnceConsumerWrapper | ( | BaseConsumer && | baseConsumer | ) |
Definition at line 213 of file qohosutils.h.
| QOhosConsumer< T > QtOhos::makeCompressingAsyncConsumer | ( | QOhosConsumer< T > | baseConsumer, |
| QOhosConsumer< std::function< void()> > | asyncExecutor ) |
Definition at line 179 of file qohosutils.h.
|
constexpr |
Definition at line 131 of file qohosutils.h.
Definition at line 334 of file qohoscommon_p.h.
| std::function< void(const QOhosCallbackInfo &)> QtOhos::makeErrorLoggingJsCallback | ( | std::string | callContext | ) |
Definition at line 315 of file qcore_ohos.cpp.
References logJsCallbackError().
| QOhosSupplier< ConfigValue > QtOhos::makeOhosConfigValueDataSource | ( | std::function< ConfigValue(QOhosJsState &)> | initValueSupplier, |
| std::function< ConfigValue(QOhosJsState &, const QNapi::Object &)> | valueFetcher, | ||
| QOhosConsumer< ConfigValue > | valueChangedHandler ) |
Definition at line 91 of file qohosjsutils.h.
| std::shared_ptr< T > QtOhos::makeProxyWithJsThreadDeleter | ( | std::shared_ptr< T > && | baseSharedPtr | ) |
Definition at line 358 of file qcore_ohos_p.h.
References QOhosJsThreadGateway::runAndWait().
| std::shared_ptr< QAbilityInstancesManager > QtOhos::makeQAbilityInstancesManager | ( | std::shared_ptr< QAbilityEngine > | abilityEngine, |
| std::function< void(JsState &, std::shared_ptr< QAbilityPeer >)> | autoStartedInstanceStartupNotifyFunc ) |
Definition at line 803 of file qohosqabilityinstancesmanager.cpp.
| QThreadSafeRef< T > QtOhos::makeQThreadSafeRef | ( | T * | obj | ) |
Definition at line 308 of file qcore_ohos_p.h.
| QNapi::Promise QtOhos::makeResolvedPromise | ( | Napi::Env | env | ) |
Definition at line 77 of file qohosjsutils.cpp.
| QNapi::Promise QtOhos::makeResolvedPromise | ( | QNapi::Value | valueForResolve | ) |
Definition at line 70 of file qohosjsutils.cpp.
| std::shared_ptr< T > QtOhos::makeSharedPtrWithAttachedExtraData | ( | std::shared_ptr< T > | baseSharedPtr, |
| std::shared_ptr< void > | extraData ) |
Definition at line 316 of file qohoscommon_p.h.
| QOhosConsumer< std::function< void()> > QtOhos::makeSingleThreadExecutor | ( | const SingleThreadExecutorConfig & | config = {} | ) |
Definition at line 148 of file qohossinglethreadexecutor.cpp.
| std::weak_ptr< T > QtOhos::makeWeakPtr | ( | const std::shared_ptr< T > & | obj | ) |
Definition at line 329 of file qohoscommon_p.h.
| 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().
| QNapi::Object QtOhos::mapJsonObjectToNapiObject | ( | napi_env | env, |
| const QJsonObject & | jsonObject ) |
Definition at line 97 of file qohosjsonconversions.cpp.
| QJsonObject QtOhos::mapNapiObjectToJsonObject | ( | const QNapi::Object & | napiObject | ) |
Definition at line 84 of file qohosjsonconversions.cpp.
| std::shared_ptr< T > QtOhos::moveToSharedPtr | ( | T && | obj | ) |
Definition at line 310 of file qohoscommon_p.h.
| std::string QtOhos::printfToString | ( | const char * | format, |
| ... ) |
Definition at line 28 of file qohosutils.cpp.
| void QtOhos::quitApplicationFromJsThread | ( | ) |
Definition at line 1788 of file qohosjsmain.cpp.
| QNapi::Object QtOhos::readChildProcessSetupData | ( | Napi::Env | env | ) |
Definition at line 207 of file qohosnouichildprocess.cpp.
| void QtOhos::removeMatchingJsQAbilityPeer | ( | QNapi::Object | qAbility | ) |
Definition at line 960 of file qohosplugincore.cpp.
| ForwardIt QtOhos::removeMatchingWithLookahead | ( | ForwardIt | firstIt, |
| ForwardIt | lastIt, | ||
| Predicate && | predicate ) |
Definition at line 89 of file qohosutils.h.
| void QtOhos::rethrowUnlessJsBusinessErrorIs | ( | const Napi::Error & | error, |
| std::uint32_t | suppressedErrorCode, | ||
| const char * | callerContextName ) |
Definition at line 95 of file qohosjsutils.cpp.
| bool QtOhos::runIgnoringJsBusinessError | ( | QOhosJsState & | , |
| std::uint32_t | suppressedErrorCode, | ||
| const char * | callerContextName, | ||
| const std::function< void()> & | action ) |
Definition at line 106 of file qohosjsutils.cpp.
Referenced by QOhosWindowProxy::setWindowTitleButtonVisible().
| void QtOhos::runInJsThreadAndWait | ( | const std::function< void(JsState &)> & | task, |
| std::string | callerContextName = {} ) |
Definition at line 1062 of file qohosplugincore.cpp.
Referenced by QT_BEGIN_NAMESPACE::processPendingDropRequestAsynchronously(), QOhosWindowProxy::setNonClientAreaMouseWindowCallbackReceiver(), QOhosWindowProxy::setNonClientAreaTouchWindowCallbackReceiver(), QOhosWindowProxy::setPointerStyleSync(), QOhosWindowProxy::setWindowBackgroundColor(), QOhosWindowProxy::setWindowCallbackReceiver(), QOhosWindowProxy::setWindowDecorVisible(), QOhosWindowProxy::setWindowShadowRadius(), QOhosWindowProxy::setWindowTitleButtonVisible(), and QOhosWindowProxy::setWindowTitleMoveEnabled().
| void QtOhos::sendChildProcessSetupData | ( | int | childPid, |
| QJsonObject | setupData ) |
Definition at line 222 of file qohosnouichildprocess.cpp.
| int QtOhos::setJsTimeout | ( | JsState & | jsState, |
| std::function< void(const CallbackInfo &)> | timeoutFunc, | ||
| std::chrono::milliseconds | delay ) |
Definition at line 56 of file qohosjsutils.cpp.
Referenced by QT_BEGIN_NAMESPACE::processPendingDropRequestAsynchronously().
| std::shared_ptr< void > QtOhos::startDelayedJsThreadTask | ( | QOhosJsState & | jsState, |
| std::function< void(QOhosJsState &)> | task, | ||
| std::chrono::milliseconds | delay ) |
Definition at line 15 of file qohosjsutils.cpp.
| std::optional< std::uint32_t > QtOhos::tryGetCodeFromJsBusinessError | ( | const Napi::Error & | error | ) |
Definition at line 82 of file qohosjsutils.cpp.
| bool QtOhos::tryInvokeInQtThreadAndTryWaitForContinue | ( | std::function< void(std::function< void()>)> && | task, |
| std::chrono::nanoseconds | timeout ) |
Definition at line 1077 of file qohosplugincore.cpp.
| std::optional< QNapi::Object > QtOhos::tryMapOptMainWindowToQAbility | ( | QOhosJsState & | jsState, |
| std::optional< QtOhos::QObjectThreadSafeRef > | optInstanceMainWindowRef ) |
Definition at line 60 of file qohosutils.cpp.
| std::optional< double > QtOhos::tryParseStringAsFiniteDouble | ( | const std::string & | inputString | ) |
Definition at line 13 of file qohosutils.cpp.
Referenced by QT_BEGIN_NAMESPACE::tryGetDataItemTypedValue().
| void QtOhos::tupleForEach | ( | const std::tuple< TupleElements... > & | tuple, |
| UnaryFunc | func ) |
Definition at line 125 of file qohosutils.h.
| void QtOhos::tupleForEach | ( | const std::tuple< TupleElements... > & | tuple, |
| UnaryFunc | func, | ||
| std::index_sequence< TupleIndices... > | ) |
Definition at line 119 of file qohosutils.h.
| void QtOhos::updateApplicationState | ( | int | state | ) |
Definition at line 1799 of file qohosjsmain.cpp.
References QOhosEventDispatcherStopper::goingToStop(), QOhosEventDispatcherStopper::instance(), QOhosPlatformIntegration::instance(), QOhosEventDispatcherStopper::startAll(), and QOhosEventDispatcherStopper::stopped().