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
qlowenergycharacteristicdata.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#ifndef QLOWENERGYCHARACTERISTICDATA_H
4#define QLOWENERGYCHARACTERISTICDATA_H
5
6#include <QtBluetooth/qlowenergycharacteristic.h>
7#include <QtCore/qshareddata.h>
8
10
13class Q_BLUETOOTH_EXPORT QLowEnergyCharacteristicData
14{
15public:
19
23 {
24 return equals(a, b);
25 }
28 {
29 return !equals(a, b);
30 }
31
32 QBluetoothUuid uuid() const;
33 void setUuid(const QBluetoothUuid &uuid);
34
35 QByteArray value() const;
36 void setValue(const QByteArray &value);
37
38 QLowEnergyCharacteristic::PropertyTypes properties() const;
39 void setProperties(QLowEnergyCharacteristic::PropertyTypes properties);
40
41 QList<QLowEnergyDescriptorData> descriptors() const;
42 void setDescriptors(const QList<QLowEnergyDescriptorData> &descriptors);
43 void addDescriptor(const QLowEnergyDescriptorData &descriptor);
44
45 void setReadConstraints(QBluetooth::AttAccessConstraints constraints);
46 QBluetooth::AttAccessConstraints readConstraints() const;
47
48 void setWriteConstraints(QBluetooth::AttAccessConstraints constraints);
49 QBluetooth::AttAccessConstraints writeConstraints() const;
50
51 void setValueLength(int minimum, int maximum);
52 int minimumValueLength() const;
53 int maximumValueLength() const;
54
55 bool isValid() const;
56
57 void swap(QLowEnergyCharacteristicData &other) noexcept { d.swap(other.d); }
58
59private:
60 static bool equals(const QLowEnergyCharacteristicData &a,
62 QSharedDataPointer<QLowEnergyCharacteristicDataPrivate> d;
63};
64
65Q_DECLARE_SHARED(QLowEnergyCharacteristicData)
66
68
69#endif // Include guard.
\inmodule QtBluetooth
\inmodule QtCore
Definition qbytearray.h:57
The QLowEnergyCharacteristicData class is used to set up GATT service data. \inmodule QtBluetooth.
friend bool operator!=(const QLowEnergyCharacteristicData &a, const QLowEnergyCharacteristicData &b)
Returns true if a and b are not equal with respect to their public state, otherwise returns false.
void swap(QLowEnergyCharacteristicData &other) noexcept
Swaps this object with other.
friend bool operator==(const QLowEnergyCharacteristicData &a, const QLowEnergyCharacteristicData &b)
Returns true if a and b are equal with respect to their public state, otherwise returns false.
The QLowEnergyDescriptorData class is used to create GATT service data. \inmodule QtBluetooth.
Combined button and popup list for selecting options.
static const QCssKnownValue properties[NumProperties - 1]
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
[7]
static void setProperties(QQuick3DObject &obj, const QSSGSceneDesc::Node &node, const QString &workingDir={})
settings setValue("DataPump/bgcolor", color)
QSharedPointer< T > other(t)
[5]