![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qohosplugincore.h>
Public Member Functions | |
| JsState (const JsState &)=delete | |
| JsState & | operator= (const JsState &)=delete |
| ~JsState () override | |
| virtual QtRunMode | qtRunMode ()=0 |
| template<typename T> | |
| QNapi::Symbol | getJsSymbolForType () |
| Public Member Functions inherited from QOhosJsState | |
| QOhosJsState (const QOhosJsState &)=delete | |
| QOhosJsState & | operator= (const QOhosJsState &)=delete |
| virtual | ~QOhosJsState () |
| virtual napi_env | env ()=0 |
| virtual QNapi::Object | defaultWindowStageOrEmpty ()=0 |
| virtual QNapi::Object | defaultUiContextOrEmpty ()=0 |
| virtual std::optional< QNapi::Object > | tryGetJsWindowByQWindow (QtOhos::QObjectThreadSafeRef qwindow)=0 |
| virtual std::optional< QNapi::Object > | tryGetQAbilityByQWindow (QtOhos::QObjectThreadSafeRef qwindow)=0 |
| virtual std::optional< QNapi::Object > | defaultQAbility ()=0 |
| virtual QNapi::Object | appLaunchWant ()=0 |
| virtual std::optional< QNapi::Object > | optAppLaunchParam ()=0 |
| virtual std::optional< QNapi::Object > | tryGetModule (const std::string &moduleName)=0 |
| template<typename T> | |
| std::enable_if_t< std::is_default_constructible< T >::value, T > & | getAttachedObjectWithLazyCreate () |
| virtual void | startAppProcess (const std::string &processId, QNapi::Object requestWant, QNapi::Object optStartOptions, std::function< void(QOhosJsState &)> continueFunc)=0 |
| virtual void | startNoUiChildProcess (const std::string &libraryName, const std::vector< std::string > &args)=0 |
| virtual std::shared_ptr< void > | registerNewWantConsumer (QOhosConsumer< QOhosJsState &, QNapi::Object, QNapi::Object, QNapi::Object > wantConsumer)=0 |
| virtual void | setOnContinueRequestsHandler (QNapi::Object qAbility, std::function< void(QOhosJsState &, QNapi::Object, QOhosConsumer< QOhosJsState &, QNapi::Number >)> requestsHandler)=0 |
| virtual void | setDestroyFromSystemAllowed (QNapi::Object qAbility, bool destroyAllowed)=0 |
| template<typename T = QNapi::Value> | |
| T | eval (const std::string &expr, const std::vector< QNapi::ValueWrapper > &exprArgs={}) |
| QNapi::Promise | evalToPromiseOrRejectOnThrow (const std::string &expr, const std::vector< QNapi::ValueWrapper > &exprArgs={}) |
| template<typename Enum> | |
| QNapi::Number | mapOhosEnumToJs (Enum enumValue) |
| template<typename Enum> | |
| std::optional< Enum > | tryMapOhosEnumFromJs (QNapi::Number enumJsValue) |
| template<typename Enum> | |
| Enum | mapOhosEnumFromJs (QNapi::Number enumJsValue) |
Static Public Member Functions | |
| static JsState & | castFrom (QOhosJsState &jsState) |
Protected Member Functions | |
| JsState () | |
| Protected Member Functions inherited from QOhosJsState | |
| QOhosJsState () | |
Private Member Functions | |
| virtual QNapi::Symbol | getJsSymbolForType (const std::type_info &typeInfo)=0 |
Definition at line 78 of file qohosplugincore.h.
|
delete |
|
overridedefault |
|
protecteddefault |
|
static |
Definition at line 873 of file qohosplugincore.cpp.
| QNapi::Symbol QtOhos::JsState::getJsSymbolForType | ( | ) |
Definition at line 169 of file qohosplugincore.h.
|
privatepure virtual |
|
pure virtual |