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
qlowenergyserviceprivate_p.h
Go to the documentation of this file.
1// Copyright (C) 2021 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 QLOWENERGYSERVICEPRIVATE_P_H
5#define QLOWENERGYSERVICEPRIVATE_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 <QtCore/QObject>
19#include <QtCore/QPointer>
20#include <QtBluetooth/qbluetooth.h>
21#include <QtBluetooth/QLowEnergyService>
22#include <QtBluetooth/QLowEnergyCharacteristic>
23#include <QtCore/private/qglobal_p.h>
24
25#if defined(QT_ANDROID_BLUETOOTH)
26#include <QtCore/QJniObject>
27#endif
28
29QT_BEGIN_NAMESPACE
30
31class QLowEnergyControllerPrivate;
32
34{
36public:
39
44
52
59
61 void setError(QLowEnergyService::ServiceError newError);
62 void setState(QLowEnergyService::ServiceState newState);
63
66 void errorOccurred(QLowEnergyService::ServiceError error);
67 void characteristicChanged(const QLowEnergyCharacteristic &characteristic,
68 const QByteArray &newValue);
69 void characteristicRead(const QLowEnergyCharacteristic &info,
70 const QByteArray &value);
71 void characteristicWritten(const QLowEnergyCharacteristic &characteristic,
72 const QByteArray &newValue);
73 void descriptorRead(const QLowEnergyDescriptor &info,
74 const QByteArray &value);
75 void descriptorWritten(const QLowEnergyDescriptor &descriptor,
76 const QByteArray &newValue);
77
78public:
81
88
90
92
93#if defined(QT_ANDROID_BLUETOOTH)
94 // reference to the BluetoothGattService object
96#endif
97
98};
99
102
103QT_END_NAMESPACE
104
105QT_DECL_METATYPE_EXTERN_TAGGED(QSharedPointer<QLowEnergyServicePrivate>,
106 QSharedPointer_QLowEnergyServicePrivate,
107 /* not exported */)
108
109#endif // QLOWENERGYSERVICEPRIVATE_P_H
#define QT_BT_MAC_AUTORELEASEPOOL
Definition btutility_p.h:78
void characteristicWritten(const QLowEnergyCharacteristic &characteristic, const QByteArray &newValue)
QList< QBluetoothUuid > includedServices
void setController(QLowEnergyControllerPrivate *control)
void characteristicChanged(const QLowEnergyCharacteristic &characteristic, const QByteArray &newValue)
void characteristicRead(const QLowEnergyCharacteristic &info, const QByteArray &value)
QLowEnergyService::DiscoveryMode mode
void descriptorWritten(const QLowEnergyDescriptor &descriptor, const QByteArray &newValue)
void descriptorRead(const QLowEnergyDescriptor &info, const QByteArray &value)
QLowEnergyService::ServiceError lastError
void setError(QLowEnergyService::ServiceError newError)
QLowEnergyService::ServiceTypes type
QPointer< QLowEnergyControllerPrivate > controller
void errorOccurred(QLowEnergyService::ServiceError error)
void setState(QLowEnergyService::ServiceState newState)
QLowEnergyService::ServiceState state
QHash< QLowEnergyHandle, CharData > characteristicList
ObjCStrongReference< NSError > qt_timeoutNSError(OperationTimeout type)
auto qt_find_watchdog(const std::vector< GCDTimer > &watchdogs, id object, OperationTimeout type)
NSUInteger qt_countGATTEntries(CBService *service)
QHash< QLowEnergyHandle, QLowEnergyServicePrivate::CharData > CharacteristicDataMap
QHash< QLowEnergyHandle, QLowEnergyServicePrivate::DescData > DescriptorDataMap
QHash< QLowEnergyHandle, DescData > descriptorList
QLowEnergyCharacteristic::PropertyTypes properties