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

(ae97c6a8e2d4a64277a4374323c57a1fe4e4af88)

#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>
Include dependency graph for qohosplugincore.h:

Go to the source code of this file.

Classes

struct  qohosplugincore_h_detail::HasEqualityComparatorT< A, B, typename >
struct  qohosplugincore_h_detail::HasEqualityComparatorT< A, B, decltype(void(std::declval< A >()==std::declval< B >()))>
struct  qohosplugincore_h_detail::IsStdOptional< typename >
struct  qohosplugincore_h_detail::IsStdOptional< std::optional< T > >
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  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>
QtOhos::evalInJsThreadWithConsumer (std::function< void(QtOhos::JsState &, std::function< void(T)>)> evalFunc)
template<typename 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

Typedef Documentation

◆ QOhosOptional

template<typename T>
using QOhosOptional = std::optional<T>

Definition at line 54 of file qohosplugincore.h.

Function Documentation

◆ makeEmptyQOhosOptional()

◆ makeQOhosOptional()

template<typename T>
std::optional< T > makeQOhosOptional ( const T & value)

Definition at line 353 of file qohosplugincore.h.

◆ qAndThen()

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 )

Definition at line 338 of file qohosplugincore.h.

◆ qTransform()

template<typename T, typename Func>
std::optional< std::remove_cv_t< QOhosInvokeResult< Func, T > > > qTransform ( const std::optional< T > & opt,
Func && func )

Definition at line 344 of file qohosplugincore.h.