![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <QtCore/private/qcore_ohos_p.h>#include <QtCore/private/qnapi_p.h>#include <QtCore/private/qohoscommon_p.h>#include <QtCore/qobject.h>#include <atomic>#include <chrono>#include <cstdlib>#include <functional>#include <map>#include <memory>#include <optional>#include <qohosenums.h>#include <stdexcept>#include <string>#include <type_traits>#include <typeinfo>#include <utility>#include <vector>Go to the source code of this file.
Namespaces | |
| namespace | qohosplugincore_h_detail |
| namespace | QtOhos |
Typedefs | |
| template<typename T> | |
| using | QOhosOptional = std::optional<T> |
| using | QtOhos::QOhosAbilityOnContinueResult = enums::ohos::app::ability::AbilityConstant::OnContinueResult |
Enumerations | |
| enum class | QtOhos::QtRunMode { QtOhos::Normal , QtOhos::NoUiChildProcess } |
Functions | |
| template<typename T, typename Func> | |
| std::enable_if_t< qohosplugincore_h_detail::isStdOptional< QOhosInvokeResult< Func, T > >, QOhosInvokeResult< Func, T > > | qAndThen (const std::optional< T > &opt, Func &&func) |
| template<typename T, typename Func> | |
| std::optional< std::remove_cv_t< QOhosInvokeResult< Func, T > > > | qTransform (const std::optional< T > &opt, Func &&func) |
| template<typename T> | |
| std::optional< T > | makeQOhosOptional (const T &value) |
| std::nullopt_t | makeEmptyQOhosOptional () |
| 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 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) |
Variables | |
| template<typename A, typename B> | |
| constexpr bool | qohosplugincore_h_detail::hasEqualityComparator = HasEqualityComparatorT<A, B>::value |
| template<typename T> | |
| constexpr bool | qohosplugincore_h_detail::isStdOptional = IsStdOptional<T>::value |
| using QOhosOptional = std::optional<T> |
Definition at line 54 of file qohosplugincore.h.
|
inline |
Definition at line 377 of file qohosplugincore.h.
Referenced by QOhosClipboardObject::QOhosClipboardObject(), QOhosView::createForWindow(), QArkUi::KeyEvent::createFromNativeEvent(), QArkUi::MouseEvent::createFromNativeEvent(), QArkUi::TouchEvent::createFromNativeEvent(), QT_BEGIN_NAMESPACE::getQtGestureType(), QT_BEGIN_NAMESPACE::mapOhosThemeFromColorScheme(), QT_BEGIN_NAMESPACE::mapQtWindowModalityToOhosOrDefault(), QOhosInputMethodEventHandler::onTouchEventFromXComponent(), QOhosView::restoreMainWindow(), QOhosShareKit::shareData(), QT_BEGIN_NAMESPACE::startOhosFilePicker(), QOhosView::surfaceResolution(), QT_BEGIN_NAMESPACE::RenderContextData::tryCreateForQWindow(), QT_BEGIN_NAMESPACE::tryEvalInQtThreadWithConsumer(), QArkUi::Node::tryfindChild(), QT_BEGIN_NAMESPACE::tryGetBackgroundColorFromWindow(), QtOhos::tryGetCodeFromJsBusinessError(), QT_BEGIN_NAMESPACE::tryGetDataItemTypedValue(), QT_BEGIN_NAMESPACE::tryGetFilePixmapByFilenameExtension(), QT_BEGIN_NAMESPACE::tryGetFilePixmapByResourceObject(), QOhosUdmfRecord::tryGetGeneralEntry(), QT_BEGIN_NAMESPACE::tryGetIntPropertyFromQuery(), tryGetQOhosPropertyFromQObject(), QOhosDeviceInfo::tryGetRecognizedDeviceType(), QArkUi::tryGetWindowProperties(), QT_BEGIN_NAMESPACE::tryMakeTouchEventPointData(), qohoswindowproperty_h_detail::tryMapFromQVariant(), QT_BEGIN_NAMESPACE::tryMapInputMethodDirectionToQt(), QArkUi::tryMapKeyEventAction(), tryMapMimeTypeToUtdTypeId(), QArkUi::tryMapMouseEventAction(), QT_BEGIN_NAMESPACE::tryMapMouseEventActionToNonClientAreaEventType(), QArkUi::tryMapMouseEventButton(), QT_BEGIN_NAMESPACE::tryMapMouseEventButtonToQt(), QT_BEGIN_NAMESPACE::tryMapNativeNodeMouseActionToQt(), QT_BEGIN_NAMESPACE::tryMapNativeNodeMouseButtonToQt(), QT_BEGIN_NAMESPACE::tryMapRenderFitPolicyToArkUi(), QArkUi::tryMapTouchEventAction(), QT_BEGIN_NAMESPACE::tryMapTouchEventActionToNonClientAreaEventState(), tryMapUtdTypeIdToMimeType(), QT_BEGIN_NAMESPACE::tryMapXComponentMouseButtonToQt(), QT_BEGIN_NAMESPACE::tryMapXComponentMouseEventActionToQEventType(), QT_BEGIN_NAMESPACE::tryMapXComponentTouchEventTypeToQt(), QtOhos::qohosutils_details::tryParseStringAsUIntMax(), QtOhos::tryParseStringAsUnsignedInteger(), and QOhosView::viewGeometry().
| std::optional< T > makeQOhosOptional | ( | const T & | value | ) |
Definition at line 372 of file qohosplugincore.h.
| std::enable_if_t< qohosplugincore_h_detail::isStdOptional< QOhosInvokeResult< Func, T > >, QOhosInvokeResult< Func, T > > qAndThen | ( | const std::optional< T > & | opt, |
| Func && | func ) |
Definition at line 357 of file qohosplugincore.h.
| std::optional< std::remove_cv_t< QOhosInvokeResult< Func, T > > > qTransform | ( | const std::optional< T > & | opt, |
| Func && | func ) |
Definition at line 363 of file qohosplugincore.h.