Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qlowenergycontroller_dummy.cpp
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
#
include
"qlowenergycontroller_dummy_p.h"
5
#
include
"dummy/dummy_helper_p.h"
6
7
QT_BEGIN_NAMESPACE
8
9
QLowEnergyControllerPrivateCommon::QLowEnergyControllerPrivateCommon()
10
: QLowEnergyControllerPrivate()
11
{
12
printDummyWarning();
13
registerQLowEnergyControllerMetaType();
14
}
15
16
QLowEnergyControllerPrivateCommon
::~
QLowEnergyControllerPrivateCommon
()
17
{
18
}
19
20
void
QLowEnergyControllerPrivateCommon
::
init
()
21
{
22
}
23
24
void
QLowEnergyControllerPrivateCommon
::
connectToDevice
()
25
{
26
// required to pass unit test on default backend
27
if
(remoteDevice.isNull()) {
28
qWarning() <<
"Invalid/null remote device address"
;
29
setError(QLowEnergyController::UnknownRemoteDeviceError);
30
return
;
31
}
32
33
qWarning() <<
"QLowEnergyControllerPrivateCommon::connectToDevice(): Not implemented"
;
34
setError(QLowEnergyController::UnknownError);
35
}
36
37
void
QLowEnergyControllerPrivateCommon
::
disconnectFromDevice
()
38
{
39
40
}
41
42
void
QLowEnergyControllerPrivateCommon
::
discoverServices
()
43
{
44
45
}
46
47
void
QLowEnergyControllerPrivateCommon
::
discoverServiceDetails
(
48
const
QBluetoothUuid &
/*service*/
,
QLowEnergyService
::
DiscoveryMode
/*mode*/
)
49
{
50
51
}
52
53
void
QLowEnergyControllerPrivateCommon
::
readCharacteristic
(
const
QSharedPointer
<
QLowEnergyServicePrivate
>
/*service*/
,
54
const
QLowEnergyHandle
/*charHandle*/
)
55
{
56
57
}
58
59
void
QLowEnergyControllerPrivateCommon
::
readDescriptor
(
const
QSharedPointer
<
QLowEnergyServicePrivate
>
/*service*/
,
60
const
QLowEnergyHandle
/*charHandle*/
,
61
const
QLowEnergyHandle
/*descriptorHandle*/
)
62
{
63
64
}
65
66
void
QLowEnergyControllerPrivateCommon
::
writeCharacteristic
(
const
QSharedPointer
<
QLowEnergyServicePrivate
>
/*service*/
,
67
const
QLowEnergyHandle
/*charHandle*/
,
68
const
QByteArray &
/*newValue*/
,
69
QLowEnergyService
::
WriteMode
/*writeMode*/
)
70
{
71
72
}
73
74
void
QLowEnergyControllerPrivateCommon
::
writeDescriptor
(
75
const
QSharedPointer
<
QLowEnergyServicePrivate
>
/*service*/
,
76
const
QLowEnergyHandle
/*charHandle*/
,
77
const
QLowEnergyHandle
/*descriptorHandle*/
,
78
const
QByteArray &
/*newValue*/
)
79
{
80
81
}
82
83
void
QLowEnergyControllerPrivateCommon
::
startAdvertising
(
const
QLowEnergyAdvertisingParameters &
/* params */
,
84
const
QLowEnergyAdvertisingData &
/* advertisingData */
,
85
const
QLowEnergyAdvertisingData &
/* scanResponseData */
)
86
{
87
}
88
89
void
QLowEnergyControllerPrivateCommon
::
stopAdvertising
()
90
{
91
}
92
93
void
QLowEnergyControllerPrivateCommon
::
requestConnectionUpdate
(
const
QLowEnergyConnectionParameters &
/* params */
)
94
{
95
}
96
97
void
QLowEnergyControllerPrivateCommon
::
addToGenericAttributeList
(
const
QLowEnergyServiceData &
/* service */
,
98
QLowEnergyHandle
/* startHandle */
)
99
{
100
}
101
102
int
QLowEnergyControllerPrivateCommon
::
mtu
()
const
103
{
104
// not supported
105
return
-1;
106
}
107
108
QT_END_NAMESPACE
QLowEnergyControllerPrivateCommon::writeCharacteristic
void writeCharacteristic(const QSharedPointer< QLowEnergyServicePrivate > service, const QLowEnergyHandle charHandle, const QByteArray &newValue, QLowEnergyService::WriteMode mode) override
Definition
qlowenergycontroller_dummy.cpp:66
QLowEnergyControllerPrivateCommon::stopAdvertising
void stopAdvertising() override
Definition
qlowenergycontroller_dummy.cpp:89
QLowEnergyControllerPrivateCommon::mtu
int mtu() const override
Definition
qlowenergycontroller_dummy.cpp:102
QLowEnergyControllerPrivateCommon::init
void init() override
Definition
qlowenergycontroller_dummy.cpp:20
QLowEnergyControllerPrivateCommon::connectToDevice
void connectToDevice() override
Definition
qlowenergycontroller_dummy.cpp:24
QLowEnergyControllerPrivateCommon::writeDescriptor
void writeDescriptor(const QSharedPointer< QLowEnergyServicePrivate > service, const QLowEnergyHandle charHandle, const QLowEnergyHandle descriptorHandle, const QByteArray &newValue) override
Definition
qlowenergycontroller_dummy.cpp:74
QLowEnergyControllerPrivateCommon::discoverServices
void discoverServices() override
Definition
qlowenergycontroller_dummy.cpp:42
QLowEnergyControllerPrivateCommon::QLowEnergyControllerPrivateCommon
QLowEnergyControllerPrivateCommon()
Definition
qlowenergycontroller_dummy.cpp:9
QLowEnergyControllerPrivateCommon::startAdvertising
void startAdvertising(const QLowEnergyAdvertisingParameters ¶ms, const QLowEnergyAdvertisingData &advertisingData, const QLowEnergyAdvertisingData &scanResponseData) override
Definition
qlowenergycontroller_dummy.cpp:83
QLowEnergyControllerPrivateCommon::readDescriptor
void readDescriptor(const QSharedPointer< QLowEnergyServicePrivate > service, const QLowEnergyHandle charHandle, const QLowEnergyHandle descriptorHandle) override
Definition
qlowenergycontroller_dummy.cpp:59
QLowEnergyControllerPrivateCommon::discoverServiceDetails
void discoverServiceDetails(const QBluetoothUuid &service, QLowEnergyService::DiscoveryMode mode) override
Definition
qlowenergycontroller_dummy.cpp:47
QLowEnergyControllerPrivateCommon::readCharacteristic
void readCharacteristic(const QSharedPointer< QLowEnergyServicePrivate > service, const QLowEnergyHandle charHandle) override
Definition
qlowenergycontroller_dummy.cpp:53
QLowEnergyControllerPrivateCommon::~QLowEnergyControllerPrivateCommon
~QLowEnergyControllerPrivateCommon() override
Definition
qlowenergycontroller_dummy.cpp:16
QLowEnergyControllerPrivateCommon::requestConnectionUpdate
void requestConnectionUpdate(const QLowEnergyConnectionParameters ¶ms) override
Definition
qlowenergycontroller_dummy.cpp:93
QLowEnergyControllerPrivateCommon::disconnectFromDevice
void disconnectFromDevice() override
Definition
qlowenergycontroller_dummy.cpp:37
QLowEnergyControllerPrivateCommon::addToGenericAttributeList
void addToGenericAttributeList(const QLowEnergyServiceData &service, QLowEnergyHandle startHandle) override
Definition
qlowenergycontroller_dummy.cpp:97
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtconnectivity
src
bluetooth
qlowenergycontroller_dummy.cpp
Generated on
for Qt by
1.18.0