4#ifndef QOHOSJSUTILS_P_H
5#define QOHOSJSUTILS_P_H
7#include <QtCore/private/qcore_ohos_p.h>
8#include <QtCore/private/qnapi_p.h>
9#include <QtCore/qglobal.h>
20struct OnOffMethodsBasedEventHandlerOptions
22 std::function<
bool(QNapi::Object)> optEventSourceAliveCheckFunc;
27std::shared_ptr<
void> registerOnOffMethodsBasedEventHandler(
28 QNapi::Object eventSourceObject,
const std::string &eventTypeName,
29 QNapi::CallbackFuncWrapper handler, OnOffMethodsBasedEventHandlerOptions options = {});
Combined button and popup list for selecting options.
std::optional< QNapi::ValueWrapper > extraOnArg
std::optional< QNapi::ValueWrapper > extraOffArg