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
qlowenergyconnectionparameters.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 QLOWENERGYCONNECTIONPARAMETERS_H
5#define QLOWENERGYCONNECTIONPARAMETERS_H
6
7#include <QtBluetooth/qtbluetoothglobal.h>
8#include <QtCore/qmetatype.h>
9#include <QtCore/qshareddata.h>
10
12
14
15class Q_BLUETOOTH_EXPORT QLowEnergyConnectionParameters
16{
17public:
21
25 {
26 return equals(a, b);
27 }
30 {
31 return !equals(a, b);
32 }
33
34 void setIntervalRange(double minimum, double maximum);
35 double minimumInterval() const;
36 double maximumInterval() const;
37
38 void setLatency(int latency);
39 int latency() const;
40
41 void setSupervisionTimeout(int timeout);
42 int supervisionTimeout() const;
43
44 void swap(QLowEnergyConnectionParameters &other) noexcept { d.swap(other.d); }
45
46private:
47 static bool equals(const QLowEnergyConnectionParameters &a,
49 QSharedDataPointer<QLowEnergyConnectionParametersPrivate> d;
50};
51
52Q_DECLARE_SHARED(QLowEnergyConnectionParameters)
53
55
57
58#endif // Include guard
The QLowEnergyConnectionParameters class is used when requesting or reporting an update of the parame...
friend bool operator==(const QLowEnergyConnectionParameters &a, const QLowEnergyConnectionParameters &b)
Returns true if p1 and p2 are equal with respect to their public state, otherwise returns false.
friend bool operator!=(const QLowEnergyConnectionParameters &a, const QLowEnergyConnectionParameters &b)
Returns true if p1 and p2 are not equal with respect to their public state, otherwise returns false.
void swap(QLowEnergyConnectionParameters &other) noexcept
Swaps this object with other.
Combined button and popup list for selecting options.
#define QT_DECL_METATYPE_EXTERN(TYPE, EXPORT)
Definition qmetatype.h:1388
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
[7]
GLbitfield GLuint64 timeout
[4]
QSharedPointer< T > other(t)
[5]