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
qohosbluetoothaccess_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 QOHOSBLUETOOTHACCESS_P_H
5#define QOHOSBLUETOOTHACCESS_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/qtconfigmacros.h>
23#include <QtCore/private/qohoscommon_p.h>
24
25#include <optional>
26
27QT_BEGIN_NAMESPACE
28
29namespace QtOhosBluetooth {
30
32{
34
35public:
37
39
42
46 void setBluetoothEnabledFailed(QOhosBluetoothErrorCode errorCode);
47
48protected:
50
51private:
52 QOhosSupplier<std::optional<BluetoothState>> m_ohosBluetoothStateSupplier;
53};
54
55}
56
57QT_END_NAMESPACE
58
59#endif // QOHOSBLUETOOTHACCESS_P_H
void setBluetoothEnabledFailed(QOhosBluetoothErrorCode errorCode)
std::optional< BluetoothState > tryGetBluetoothState() const
std::optional< QOhosBluetoothErrorCode > trySetBluetoothEnabled(bool enabled)
static std::shared_ptr< QOhosBluetoothAccessProxy > instance()
QT_BEGIN_NAMESPACE Q_DECLARE_LOGGING_CATEGORY(lcQIORing)