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
26
QT_BEGIN_NAMESPACE
27
28
namespace
QtOhosBluetooth
{
29
30
enum
class
QOhosBluetoothErrorCode
:
std
::
uint32_t
{
31
PermissionDenied
= 201,
32
InvalidParameter
= 401,
33
CapabilityNotSupported
= 801,
34
ServiceStopped
= 2900001,
35
BluetoothDisabled
= 2900003,
36
ProfileNotSupported
= 2900004,
37
UserDidNotRespond
= 2900013,
38
UserRefused
= 2900014,
39
OperationFailed
= 2900099,
40
InputOutput
= 2901054,
41
};
42
43
std
::optional<
QOhosBluetoothErrorCode
>
tryGetKnownErrorCode
(
44
const
QNapi::Value &errorValue,
const
char
*callerContextName);
45
46
bool
checkAccessBluetoothPermissionGranted
(
const
char
*callerContextName);
47
std
::
optional
<
QtOhosBluetooth
::
enums
::
ohos
::
bluetooth
::
access
::
BluetoothState
>
readBluetoothState
(
48
QOhosJsState &jsState);
49
bool
isBluetoothEnabled
(QOhosJsState &jsState);
50
51
}
52
53
QT_END_NAMESPACE
54
55
#
endif
// QOHOSBLUETOOTHCOMMON_P_H
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
QtOhosBluetooth
Definition
qohosbluetoothaccess.cpp:21
QtOhosBluetooth::tryGetKnownErrorCode
std::optional< QOhosBluetoothErrorCode > tryGetKnownErrorCode(const QNapi::Value &errorValue, const char *callerContextName)
Definition
qohosbluetoothcommon.cpp:55
QtOhosBluetooth::QOhosBluetoothErrorCode
QOhosBluetoothErrorCode
Definition
qohosbluetoothcommon_p.h:30
QtOhosBluetooth::QOhosBluetoothErrorCode::UserDidNotRespond
@ UserDidNotRespond
Definition
qohosbluetoothcommon_p.h:37
QtOhosBluetooth::QOhosBluetoothErrorCode::UserRefused
@ UserRefused
Definition
qohosbluetoothcommon_p.h:38
QtOhosBluetooth::QOhosBluetoothErrorCode::ServiceStopped
@ ServiceStopped
Definition
qohosbluetoothcommon_p.h:34
QtOhosBluetooth::QOhosBluetoothErrorCode::PermissionDenied
@ PermissionDenied
Definition
qohosbluetoothcommon_p.h:31
QtOhosBluetooth::QOhosBluetoothErrorCode::InvalidParameter
@ InvalidParameter
Definition
qohosbluetoothcommon_p.h:32
QtOhosBluetooth::QOhosBluetoothErrorCode::OperationFailed
@ OperationFailed
Definition
qohosbluetoothcommon_p.h:39
QtOhosBluetooth::QOhosBluetoothErrorCode::BluetoothDisabled
@ BluetoothDisabled
Definition
qohosbluetoothcommon_p.h:35
QtOhosBluetooth::QOhosBluetoothErrorCode::InputOutput
@ InputOutput
Definition
qohosbluetoothcommon_p.h:40
QtOhosBluetooth::QOhosBluetoothErrorCode::ProfileNotSupported
@ ProfileNotSupported
Definition
qohosbluetoothcommon_p.h:36
QtOhosBluetooth::QOhosBluetoothErrorCode::CapabilityNotSupported
@ CapabilityNotSupported
Definition
qohosbluetoothcommon_p.h:33
QtOhosBluetooth::checkAccessBluetoothPermissionGranted
bool checkAccessBluetoothPermissionGranted(const char *callerContextName)
Definition
qohosbluetoothcommon.cpp:85
QtOhosBluetooth::readBluetoothState
std::optional< QtOhosBluetooth::enums::ohos::bluetooth::access::BluetoothState > readBluetoothState(QOhosJsState &jsState)
Definition
qohosbluetoothcommon.cpp:99
QtOhosBluetooth::isBluetoothEnabled
bool isBluetoothEnabled(QOhosJsState &jsState)
Definition
qohosbluetoothcommon.cpp:117
std
[33]
Definition
src_corelib_tools_qhash.cpp:421
qtconnectivity
src
bluetooth
ohos
qohosbluetoothcommon_p.h
Generated on
for Qt by
1.16.1