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
qlowenergyservicedata.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
QLOWENERGYSERVICEDATA_H
5
#
define
QLOWENERGYSERVICEDATA_H
6
7
#
include
<
QtBluetooth
/
qtbluetoothglobal
.
h
>
8
#
include
<
QtCore
/
qshareddata
.
h
>
9
10
QT_BEGIN_NAMESPACE
11
12
class
QBluetoothUuid;
13
class
QLowEnergyCharacteristicData;
14
class
QLowEnergyService;
15
struct
QLowEnergyServiceDataPrivate;
16
17
class
Q_BLUETOOTH_EXPORT
QLowEnergyServiceData
18
{
19
public
:
20
QLowEnergyServiceData();
21
QLowEnergyServiceData(
const
QLowEnergyServiceData &other);
22
~QLowEnergyServiceData();
23
24
QLowEnergyServiceData &operator=(
const
QLowEnergyServiceData &other);
25
friend
bool
operator==(
const
QLowEnergyServiceData &a,
const
QLowEnergyServiceData &b)
26
{
27
return
equals(a, b);
28
}
29
friend
bool
operator!=(
const
QLowEnergyServiceData &a,
const
QLowEnergyServiceData &b)
30
{
31
return
!equals(a, b);
32
}
33
34
enum
ServiceType { ServiceTypePrimary = 0x2800, ServiceTypeSecondary = 0x2801 };
35
ServiceType type()
const
;
36
void
setType(ServiceType type);
37
38
QBluetoothUuid uuid()
const
;
39
void
setUuid(
const
QBluetoothUuid &uuid);
40
41
QList<QLowEnergyService *> includedServices()
const
;
42
void
setIncludedServices(
const
QList<QLowEnergyService *> &services);
43
void
addIncludedService(QLowEnergyService *service);
44
45
QList<QLowEnergyCharacteristicData> characteristics()
const
;
46
void
setCharacteristics(
const
QList<QLowEnergyCharacteristicData> &characteristics);
47
void
addCharacteristic(
const
QLowEnergyCharacteristicData &characteristic);
48
49
bool
isValid()
const
;
50
51
void
swap(QLowEnergyServiceData &other)
noexcept
{ d.swap(other.d); }
52
53
private
:
54
static
bool
equals(
const
QLowEnergyServiceData &a,
const
QLowEnergyServiceData &b);
55
QSharedDataPointer<QLowEnergyServiceDataPrivate> d;
56
};
57
58
Q_DECLARE_SHARED
(
QLowEnergyServiceData
)
59
60
QT_END_NAMESPACE
61
62
#
endif
// Include guard.
PeripheralState
PeripheralState
Definition
btperipheralmanager_p.h:59
PeripheralState::connected
@ connected
Definition
btperipheralmanager_p.h:63
PeripheralState::waitingForPowerOn
@ waitingForPowerOn
Definition
btperipheralmanager_p.h:61
PeripheralState::advertising
@ advertising
Definition
btperipheralmanager_p.h:62
PeripheralState::idle
@ idle
Definition
btperipheralmanager_p.h:60
QT_BT_MAC_AUTORELEASEPOOL
#define QT_BT_MAC_AUTORELEASEPOOL
Definition
btutility_p.h:78
DarwinBluetooth::LECBManagerNotifier
Definition
btnotifier_p.h:37
QLowEnergyAdvertisingParameters
The QLowEnergyAdvertisingParameters class represents the parameters used for Bluetooth Low Energy adv...
Definition
qlowenergyadvertisingparameters.h:18
QLowEnergyCharacteristicData
The QLowEnergyCharacteristicData class is used to set up GATT service data. \inmodule QtBluetooth.
Definition
qlowenergycharacteristicdata.h:14
QLowEnergyDescriptorData
The QLowEnergyDescriptorData class is used to create GATT service data. \inmodule QtBluetooth.
Definition
qlowenergydescriptordata.h:17
QLowEnergyServiceData
The QLowEnergyServiceData class is used to set up GATT service data. \inmodule QtBluetooth.
Definition
qlowenergyservicedata.h:18
DarwinBluetooth
Definition
btcentralmanager.mm:22
DarwinBluetooth::RetainPolicy
RetainPolicy
Definition
btraii_p.h:27
DarwinBluetooth::RetainPolicy::doInitialRetain
@ doInitialRetain
Definition
btraii_p.h:29
QLowEnergyHandle
quint16 QLowEnergyHandle
Definition
qbluetooth.h:42
QLowEnergyCharacteristicDataPrivate
Definition
qlowenergycharacteristicdata.cpp:19
QmlIR::Object::id
int id
Definition
qqmlirbuilder_p.h:312
UpdateRequest
Definition
btperipheralmanager_p.h:67
UpdateRequest::UpdateRequest
UpdateRequest()=default
UpdateRequest::charHandle
QLowEnergyHandle charHandle
Definition
btperipheralmanager_p.h:75
UpdateRequest::UpdateRequest
UpdateRequest(QLowEnergyHandle handle, const ObjCStrongReference< NSData > &val)
Definition
btperipheralmanager_p.h:69
UpdateRequest::value
ObjCStrongReference< NSData > value
Definition
btperipheralmanager_p.h:76
qtconnectivity
src
bluetooth
qlowenergyservicedata.h
Generated on
for Qt by
1.18.0