![]() |
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/qnapi_p.h>#include <QtCore/private/qohoscommon_p.h>#include <QtCore/private/qohosjstools_p.h>#include <QtCore/qglobal.h>#include <chrono>#include <cstdint>#include <functional>#include <memory>#include <qohosplugincore.h>#include <qohosutils.h>#include <string>#include <type_traits>#include "qohoscloseeventcontext_p.h"Go to the source code of this file.
Namespaces | |
| namespace | QtOhos |
Functions | |
| template<typename T> | |
| QNapi::Promise | QtOhos::adaptAsyncCallResultToJsPromise (JsState &jsState, std::function< QNapi::Value(JsState &, T)> promiseValueFactory, const QOhosConsumer< JsState &, QOhosConsumer< JsState &, T > > &asyncCallFunc) |
| Q_REQUIRED_RESULT std::shared_ptr< void > | QtOhos::startDelayedJsThreadTask (JsState &jsState, std::function< void(JsState &)> task, std::chrono::milliseconds delay) |
| int | QtOhos::setJsTimeout (JsState &jsState, std::function< void(const CallbackInfo &)> timeoutFunc, std::chrono::milliseconds delay) |
| void | QtOhos::clearJsTimeout (JsState &jsState, int timerId) |
| QNapi::Promise | QtOhos::makeResolvedPromise (QNapi::Value valueForResolve) |
| template<typename T> | |
| QOhosOptional< T > | QtOhos::getOptionalProperty (const QNapi::Object &object, const std::string &propName) |
| QOhosOptional< std::uint32_t > | QtOhos::tryGetCodeFromJsBusinessError (const Napi::Error &error) |
| void | QtOhos::rethrowUnlessJsBusinessErrorIs (const Napi::Error &error, std::uint32_t suppressedErrorCode, const char *callerContextName) |
| bool | QtOhos::runIgnoringJsBusinessError (JsState &, std::uint32_t suppressedErrorCode, const char *callerContextName, const std::function< void()> &action) |
| template<typename T> | |
| QOhosSupplier< T > | QtOhos::makeDataSource (std::function< T(JsState &)> initialValueReader, std::function< std::shared_ptr< void >(JsState &, QOhosConsumer< T >)> changeListenerFactory, QOhosConsumer< T > valueChangedHandler, QOhosConsumer< std::function< void()> > targetThreadExecutor, std::string callerContextName={}) |
| template<typename ConfigValue> | |
| QOhosSupplier< ConfigValue > | QtOhos::makeOhosConfigValueDataSource (std::function< ConfigValue(QtOhos::JsState &)> initValueSupplier, std::function< ConfigValue(QtOhos::JsState &, const QNapi::Object &)> valueFetcher, QOhosConsumer< ConfigValue > valueChangedHandler) |