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
qohosplugincore.h File Reference

(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>
Include dependency graph for qohosplugincore.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  QtOhos::JsWindowsTracker
class  QtOhos::QAbilityPeer
struct  QtOhos::QAbilityInfo
class  QtOhos::QAbilityEngine
class  QtOhos::AppFunctions
class  QtOhos::JsState
class  QtOhos::QUiAbilityPeer
class  QtOhos::CallbackInfo

Namespaces

namespace  QtOhos

Typedefs

using QtOhos::QOhosAbilityOnContinueResult = QtOhosQpa::enums::ohos::app::ability::AbilityConstant::OnContinueResult

Enumerations

enum class  QtOhos::QtRunMode { QtOhos::Normal , QtOhos::NoUiChildProcess }

Functions

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)