(3ddbb06fe967d5df35c00f6e46a425632b32f7e1)
#include <QtCore/private/qcore_ohos_p.h>
#include <QtCore/private/qnapi_p.h>
#include <QtCore/private/qohoscommon_p.h>
#include <atomic>
#include <chrono>
#include <cstdlib>
#include <functional>
#include <map>
#include <memory>
#include <optional>
#include <qohosqpaenums.h>
#include <string>
#include <type_traits>
#include <typeinfo>
#include <vector>
Go to the source code of this file.
|
| void | QtOhos::initJsThreadState (napi_env env, std::map< std::string, QNapi::Reference< QNapi::Function > > &&jsModulesFactories, std::shared_ptr< AppFunctions > appFunctions, QtRunMode qtRunMode) |
| void | QtOhos::addJsQAbilityPeer (std::shared_ptr< QAbilityPeer > qAbilityPeer) |
| void | QtOhos::removeMatchingJsQAbilityPeer (QNapi::Object qAbility) |
| void | QtOhos::dispatchNewWant (QNapi::Object qAbility, QNapi::Object want, QNapi::Object launchParam) |
| void | QtOhos::invokeInJsThread (std::function< void(JsState &)> task) |
| void | QtOhos::invokeInJsThreadAndWaitForContinue (std::function< void(JsState &, QOhosTaskPromise<>)> &&task, std::string callerContextName={}) |
| void | QtOhos::runInJsThreadAndWait (const std::function< void(JsState &)> &task, std::string callerContextName={}) |
| template<typename Func> |
| auto | QtOhos::evalInJsThread (Func &&func, std::string callerContextName={}) -> decltype(func(std::declval< JsState & >())) |
| template<typename T> |
| T | QtOhos::evalInJsThreadWithConsumer (std::function< void(QtOhos::JsState &, std::function< void(T)>)> evalFunc) |
| template<typename T> |
| T | QtOhos::evalInJsThreadWithPromise (std::function< void(QtOhos::JsState &, QOhosTaskPromise< T >)> evalFunc, std::string callerContextName={}) |
| Q_REQUIRED_RESULT bool | QtOhos::tryInvokeInQtThreadAndTryWaitForContinue (std::function< void(std::function< void()>)> &&task, std::chrono::nanoseconds timeout) |