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
qohosjstools_p.h File Reference

(8aef367d21c52c27e892e240fff87164dada3ea9)

#include <QtCore/private/qcore_ohos_p.h>
#include <QtCore/private/qnapi_p.h>
#include <QtCore/private/qohoscommon_p.h>
#include <functional>
#include <memory>
#include <optional>
#include <string>
#include <utility>
#include <vector>
Include dependency graph for qohosjstools_p.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  QOhosOnOffMethodsBasedEventHandlerOptions

Functions

Q_CORE_EXPORT std::shared_ptr< voidregisterQOhosOnOffMethodsBasedEventHandler (QNapi::Object eventSourceObject, const std::string &eventTypeName, QNapi::CallbackFuncWrapper handler, QOhosOnOffMethodsBasedEventHandlerOptions options={})
Q_CORE_EXPORT std::shared_ptr< voidregisterOhosAppContextEnvironmentCallback (QOhosJsState &jsState, std::vector< std::pair< std::string, QNapi::CallbackFuncWrapper > > environmentCallbackMethods)
template<typename T>
QOhosSupplier< T > makeQOhosDataSource (std::function< T(QOhosJsState &)> initialValueReader, std::function< std::shared_ptr< void >(QOhosJsState &, QOhosConsumer< T >)> changeListenerFactory, QOhosConsumer< T > valueChangedHandler, QOhosConsumer< std::function< void()> > targetThreadExecutor, std::string callerContextName={})

Function Documentation

◆ makeQOhosDataSource()

template<typename T>
QOhosSupplier< T > makeQOhosDataSource ( std::function< T(QOhosJsState &)> initialValueReader,
std::function< std::shared_ptr< void >(QOhosJsState &, QOhosConsumer< T >)> changeListenerFactory,
QOhosConsumer< T > valueChangedHandler,
QOhosConsumer< std::function< void()> > targetThreadExecutor,
std::string callerContextName = {} )

Definition at line 60 of file qohosjstools_p.h.

◆ registerOhosAppContextEnvironmentCallback()

Q_CORE_EXPORT std::shared_ptr< void > registerOhosAppContextEnvironmentCallback ( QOhosJsState & jsState,
std::vector< std::pair< std::string, QNapi::CallbackFuncWrapper > > environmentCallbackMethods )

Definition at line 115 of file qohosjstools.cpp.

◆ registerQOhosOnOffMethodsBasedEventHandler()

Q_CORE_EXPORT std::shared_ptr< void > registerQOhosOnOffMethodsBasedEventHandler ( QNapi::Object eventSourceObject,
const std::string & eventTypeName,
QNapi::CallbackFuncWrapper handler,
QOhosOnOffMethodsBasedEventHandlerOptions options = {} )

Definition at line 13 of file qohosjstools.cpp.