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
qohosjsutils.h
Go to the documentation of this file.
1// Copyright (C) 2025 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QOHOSJSUTILS_P_H
5#define QOHOSJSUTILS_P_H
6
7#include <QtCore/private/qcore_ohos_p.h>
8#include <QtCore/private/qnapi_p.h>
9#include <QtCore/qglobal.h>
10#include <functional>
11#include <memory>
12#include <optional>
13#include <string>
14#include <type_traits>
15
16QT_BEGIN_NAMESPACE
17
18namespace QtOhos {
19
20struct OnOffMethodsBasedEventHandlerOptions
21{
22 std::function<bool(QNapi::Object)> optEventSourceAliveCheckFunc;
25};
26
27std::shared_ptr<void> registerOnOffMethodsBasedEventHandler(
28 QNapi::Object eventSourceObject, const std::string &eventTypeName,
29 QNapi::CallbackFuncWrapper handler, OnOffMethodsBasedEventHandlerOptions options = {});
30
31}
32
33QT_END_NAMESPACE
34
35#endif // QOHOSJSUTILS_P_H
Combined button and popup list for selecting options.
std::optional< QNapi::ValueWrapper > extraOnArg
std::optional< QNapi::ValueWrapper > extraOffArg