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
qlowenergycontroller_dummy_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 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 QLOWENERGYCONTROLLERPRIVATE_P_H
5#define QLOWENERGYCONTROLLERPRIVATE_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 <qglobal.h>
19#include <QtCore/QQueue>
20#include <QtBluetooth/qbluetooth.h>
21#include <QtBluetooth/qlowenergycharacteristic.h>
24
26
27class QLowEnergyServiceData;
28
30
32{
34public:
37
38 void init() override;
39
40 void connectToDevice() override;
41 void disconnectFromDevice() override;
42
43 void discoverServices() override;
44 void discoverServiceDetails(const QBluetoothUuid &service,
45 QLowEnergyService::DiscoveryMode mode) override;
46
47 void startAdvertising(const QLowEnergyAdvertisingParameters &params,
48 const QLowEnergyAdvertisingData &advertisingData,
49 const QLowEnergyAdvertisingData &scanResponseData) override;
50 void stopAdvertising() override;
51
52 void requestConnectionUpdate(const QLowEnergyConnectionParameters &params) override;
53
54 // read data
55 void readCharacteristic(const QSharedPointer<QLowEnergyServicePrivate> service,
56 const QLowEnergyHandle charHandle) override;
57 void readDescriptor(const QSharedPointer<QLowEnergyServicePrivate> service,
58 const QLowEnergyHandle charHandle,
59 const QLowEnergyHandle descriptorHandle) override;
60
61 // write data
62 void writeCharacteristic(const QSharedPointer<QLowEnergyServicePrivate> service,
63 const QLowEnergyHandle charHandle,
64 const QByteArray &newValue, QLowEnergyService::WriteMode mode) override;
65 void writeDescriptor(const QSharedPointer<QLowEnergyServicePrivate> service,
66 const QLowEnergyHandle charHandle,
67 const QLowEnergyHandle descriptorHandle,
68 const QByteArray &newValue) override;
69
70 void addToGenericAttributeList(const QLowEnergyServiceData &service,
71 QLowEnergyHandle startHandle) override;
72
73 int mtu() const override;
74};
75
76QT_END_NAMESPACE
77
78#endif // QLOWENERGYCONTROLLERPRIVATE_P_H
void writeCharacteristic(const QSharedPointer< QLowEnergyServicePrivate > service, const QLowEnergyHandle charHandle, const QByteArray &newValue, QLowEnergyService::WriteMode mode) override
void writeDescriptor(const QSharedPointer< QLowEnergyServicePrivate > service, const QLowEnergyHandle charHandle, const QLowEnergyHandle descriptorHandle, const QByteArray &newValue) override
void startAdvertising(const QLowEnergyAdvertisingParameters &params, const QLowEnergyAdvertisingData &advertisingData, const QLowEnergyAdvertisingData &scanResponseData) override
void readDescriptor(const QSharedPointer< QLowEnergyServicePrivate > service, const QLowEnergyHandle charHandle, const QLowEnergyHandle descriptorHandle) override
void discoverServiceDetails(const QBluetoothUuid &service, QLowEnergyService::DiscoveryMode mode) override
void readCharacteristic(const QSharedPointer< QLowEnergyServicePrivate > service, const QLowEnergyHandle charHandle) override
void requestConnectionUpdate(const QLowEnergyConnectionParameters &params) override
void addToGenericAttributeList(const QLowEnergyServiceData &service, QLowEnergyHandle startHandle) override
void registerQLowEnergyControllerMetaType()