![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qcore_ohos_p.h>
Classes | |
| struct | OhosEnumInfo |
Public Member Functions | |
| 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) |
Protected Member Functions | |
| QOhosJsState () | |
Private Member Functions | |
| virtual std::tuple< QNapi::Object, std::string > | extractModuleFromEvalExpr (const std::string &expr)=0 |
| virtual void * | getAttachedObjectWithLazyCreate (const std::type_info &objectTypeInfo, QOhosSupplier< std::shared_ptr< void > > objectFactory)=0 |
| virtual QNapi::Number | mapOhosEnumToJs (int enumValue, const std::type_info &enumTypeInfo, OhosEnumInfo(*ohosEnumInfoFactory)())=0 |
| virtual std::optional< int > | tryMapOhosEnumFromJs (QNapi::Number enumJsValue, const std::type_info &enumTypeInfo, OhosEnumInfo(*ohosEnumInfoFactory)())=0 |
| virtual int | mapOhosEnumFromJs (QNapi::Number enumJsValue, const std::type_info &enumTypeInfo, OhosEnumInfo(*ohosEnumInfoFactory)())=0 |
Definition at line 50 of file qcore_ohos_p.h.
|
delete |
|
virtualdefault |
|
protecteddefault |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
| T QOhosJsState::eval | ( | const std::string & | expr, |
| const std::vector< QNapi::ValueWrapper > & | exprArgs = {} ) |
Definition at line 407 of file qcore_ohos_p.h.
|
inline |
Definition at line 424 of file qcore_ohos_p.h.
|
privatepure virtual |
| std::enable_if_t< std::is_default_constructible< T >::value, T > & QOhosJsState::getAttachedObjectWithLazyCreate | ( | ) |
Definition at line 435 of file qcore_ohos_p.h.
|
privatepure virtual |
| Enum QOhosJsState::mapOhosEnumFromJs | ( | QNapi::Number | enumJsValue | ) |
Definition at line 458 of file qcore_ohos_p.h.
|
privatepure virtual |
| QNapi::Number QOhosJsState::mapOhosEnumToJs | ( | Enum | enumValue | ) |
Definition at line 443 of file qcore_ohos_p.h.
|
privatepure virtual |
|
delete |
|
pure virtual |
|
nodiscardpure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
| std::optional< Enum > QOhosJsState::tryMapOhosEnumFromJs | ( | QNapi::Number | enumJsValue | ) |
Definition at line 449 of file qcore_ohos_p.h.
|
privatepure virtual |