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
qohosbluetoothlocaldevice_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
QOHOSBLUETOOTHLOCALDEVICE_P_H
5
#
define
QOHOSBLUETOOTHLOCALDEVICE_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
/
qohosbluetoothcommon_p
.
h
>
19
#
include
<
QtBluetooth
/
private
/
qohosbluetoothenums_p
.
h
>
20
21
#
include
<
QtCore
/
qobject
.
h
>
22
#
include
<
QtCore
/
qstring
.
h
>
23
#
include
<
QtCore
/
qtconfigmacros
.
h
>
24
#
include
<
QtCore
/
private
/
qohoscommon_p
.
h
>
25
26
#
include
<
memory
>
27
#
include
<
optional
>
28
29
QT_BEGIN_NAMESPACE
30
31
namespace
QtOhosBluetooth
{
32
33
class
QOhosBluetoothLocalDeviceProxy
:
public
QObject
34
{
35
Q_OBJECT
36
37
public
:
38
using
ScanMode
=
QtOhosBluetooth
::
enums
::
ohos
::
bluetooth
::
connection
::
ScanMode
;
39
40
static
std
::shared_ptr<
QOhosBluetoothLocalDeviceProxy
>
instance
();
41
42
std
::
optional
<
QString
>
tryGetLocalDeviceName
()
const
;
43
std
::
optional
<
ScanMode
>
tryGetScanMode
();
44
std
::
optional
<
QOhosBluetoothErrorCode
>
trySetBluetoothScanMode
(ScanMode scanMode);
45
46
Q_SIGNALS
:
47
void
scanModeChanged
(
ScanMode
scanMode
);
48
void
missingPermission
();
49
50
protected
:
51
QOhosBluetoothLocalDeviceProxy
();
52
53
private
:
54
QOhosSupplier<std::optional<ScanMode>> m_scanModeSupplier;
55
};
56
57
}
58
59
QT_END_NAMESPACE
60
61
#
endif
// QOHOSBLUETOOTHLOCALDEVICE_P_H
QtOhosBluetooth::QOhosBluetoothLocalDeviceProxy
Definition
qohosbluetoothlocaldevice_p.h:34
QtOhosBluetooth::QOhosBluetoothLocalDeviceProxy::tryGetLocalDeviceName
std::optional< QString > tryGetLocalDeviceName() const
Definition
qohosbluetoothlocaldevice.cpp:189
QtOhosBluetooth::QOhosBluetoothLocalDeviceProxy::trySetBluetoothScanMode
std::optional< QOhosBluetoothErrorCode > trySetBluetoothScanMode(ScanMode scanMode)
Definition
qohosbluetoothlocaldevice.cpp:218
QtOhosBluetooth::QOhosBluetoothLocalDeviceProxy::instance
static std::shared_ptr< QOhosBluetoothLocalDeviceProxy > instance()
Definition
qohosbluetoothlocaldevice.cpp:183
QtOhosBluetooth::QOhosBluetoothLocalDeviceProxy::missingPermission
void missingPermission()
QtOhosBluetooth::QOhosBluetoothLocalDeviceProxy::tryGetScanMode
std::optional< ScanMode > tryGetScanMode()
Definition
qohosbluetoothlocaldevice.cpp:213
QtOhosBluetooth::QOhosBluetoothLocalDeviceProxy::QOhosBluetoothLocalDeviceProxy
QOhosBluetoothLocalDeviceProxy()
Definition
qohosbluetoothlocaldevice.cpp:166
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
QtOhosBluetooth
Definition
qohosbluetoothaccess.cpp:21
std
[33]
Definition
src_corelib_tools_qhash.cpp:421
qtconnectivity
src
bluetooth
ohos
qohosbluetoothlocaldevice_p.h
Generated on
for Qt by
1.16.1