Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qlowenergydescriptor.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// Copyright (C) 2016 BlackBerry Limited. All rights reserved.
3// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4
5#ifndef QLOWENERGYDESCRIPTOR_H
6#define QLOWENERGYDESCRIPTOR_H
7
8#include <QtCore/QSharedPointer>
9#include <QtCore/QVariantMap>
10#include <QtBluetooth/qbluetooth.h>
11#include <QtBluetooth/QBluetoothUuid>
12
14
17
18class Q_BLUETOOTH_EXPORT QLowEnergyDescriptor
19{
20public:
24
27 {
28 return equals(a, b);
29 }
31 {
32 return !equals(a, b);
33 }
34
35 bool isValid() const;
36
37 QByteArray value() const;
38
39 QBluetoothUuid uuid() const;
40 QString name() const;
41
43
44private:
46 QLowEnergyHandle characteristicHandle() const;
47 QSharedPointer<QLowEnergyServicePrivate> d_ptr;
48
50 friend class QLowEnergyService;
59
60 QLowEnergyDescriptor(QSharedPointer<QLowEnergyServicePrivate> p,
61 QLowEnergyHandle charHandle,
62 QLowEnergyHandle descHandle);
63
64 static bool equals(const QLowEnergyDescriptor &a, const QLowEnergyDescriptor &b);
65};
66
68
70
71#endif // QLOWENERGYDESCRIPTOR_H
\inmodule QtBluetooth
\inmodule QtCore
Definition qbytearray.h:57
\inmodule QtBluetooth
friend bool operator!=(const QLowEnergyDescriptor &a, const QLowEnergyDescriptor &b)
Returns true if a is not equal to b; otherwise false.
friend bool operator==(const QLowEnergyDescriptor &a, const QLowEnergyDescriptor &b)
Returns true if a is equal to b; otherwise false.
\inmodule QtBluetooth
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
quint16 QLowEnergyHandle
Definition qbluetooth.h:42
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
#define QT_DECL_METATYPE_EXTERN(TYPE, EXPORT)
Definition qmetatype.h:1388
GLboolean GLboolean GLboolean b
GLuint64 GLenum void * handle
GLboolean GLboolean GLboolean GLboolean a
[7]
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLenum type
GLuint name
GLfloat GLfloat p
[1]
QSharedPointer< T > other(t)
[5]