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
qohosbluetoothcommon_p.h
Go to the documentation of this file.
1// Copyright (C) 2026 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 QOHOSBLUETOOTHCOMMON_P_H
5#define QOHOSBLUETOOTHCOMMON_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtBluetooth/private/qohosbluetoothenums_p.h>
19
20#include <QtCore/qtconfigmacros.h>
21#include <QtCore/private/qcore_ohos_p.h>
22
23#include <cstdint>
24#include <optional>
25
26QT_BEGIN_NAMESPACE
27
28namespace QtOhosBluetooth {
29
42
44 const QNapi::Value &errorValue, const char *callerContextName);
45
46bool checkAccessBluetoothPermissionGranted(const char *callerContextName);
48 QOhosJsState &jsState);
49bool isBluetoothEnabled(QOhosJsState &jsState);
50
51}
52
53QT_END_NAMESPACE
54
55#endif // QOHOSBLUETOOTHCOMMON_P_H
Combined button and popup list for selecting options.
std::optional< QOhosBluetoothErrorCode > tryGetKnownErrorCode(const QNapi::Value &errorValue, const char *callerContextName)
bool checkAccessBluetoothPermissionGranted(const char *callerContextName)
std::optional< QtOhosBluetooth::enums::ohos::bluetooth::access::BluetoothState > readBluetoothState(QOhosJsState &jsState)
bool isBluetoothEnabled(QOhosJsState &jsState)