summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qbluetoothdeviceinfo.cpp
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@digia.com>2014-05-26 14:56:49 +0200
committerAlex Blasche <alexander.blasche@digia.com>2014-05-26 14:56:49 +0200
commitf334ea4b196950c4074e7513626aabeef3d99d7f (patch)
treeccb07d59afbb60a92b80a061645c8013aab9b96c /src/bluetooth/qbluetoothdeviceinfo.cpp
parent3910d9ffcc11db7b3beb7f2b6f0c1754103cfacb (diff)
parent552f1a164d627720942414915fb56ae7d3b7ef22 (diff)
Merge branch 'dev' into btle
Conflicts: examples/bluetooth/bluetooth.pro src/bluetooth/bluez/bluez.pri src/bluetooth/doc/src/bluetooth-index.qdoc src/bluetooth/qbluetoothdevicediscoveryagent_bluez.cpp src/bluetooth/qbluetoothdeviceinfo.cpp src/bluetooth/qbluetoothservicediscoveryagent_bluez.cpp src/bluetooth/qbluetoothservicediscoveryagent_p.h src/bluetooth/qbluetoothservicediscoveryagent_qnx.cpp Change-Id: I88b22c51a4ee95b067ef8d2b2fddb5cbff4566f8
Diffstat (limited to 'src/bluetooth/qbluetoothdeviceinfo.cpp')
-rw-r--r--src/bluetooth/qbluetoothdeviceinfo.cpp36
1 files changed, 19 insertions, 17 deletions
diff --git a/src/bluetooth/qbluetoothdeviceinfo.cpp b/src/bluetooth/qbluetoothdeviceinfo.cpp
index 58d45e3b..1dd100e0 100644
--- a/src/bluetooth/qbluetoothdeviceinfo.cpp
+++ b/src/bluetooth/qbluetoothdeviceinfo.cpp
@@ -216,7 +216,6 @@ QT_BEGIN_NAMESPACE
\value HealthStepCounter A pedometer.
*/
-
/*!
\enum QBluetoothDeviceInfo::ServiceClass
@@ -257,22 +256,23 @@ QT_BEGIN_NAMESPACE
for standard and Low Energy device.
\value LowEnergyCoreCOnfiguration The device is a Bluetooth Low Energy device.
*/
-
-QBluetoothDeviceInfoPrivate::QBluetoothDeviceInfoPrivate()
- : valid(false), cached(false), rssi(1),
- serviceClasses(QBluetoothDeviceInfo::NoService),
- majorDeviceClass(QBluetoothDeviceInfo::MiscellaneousDevice),
- minorDeviceClass(0),
- serviceUuidsCompleteness(QBluetoothDeviceInfo::DataUnavailable),
- deviceCoreConfiguration(QBluetoothDeviceInfo::BaseRateCoreConfiguration)
+QBluetoothDeviceInfoPrivate::QBluetoothDeviceInfoPrivate() :
+ valid(false),
+ cached(false),
+ rssi(1),
+ serviceClasses(QBluetoothDeviceInfo::NoService),
+ majorDeviceClass(QBluetoothDeviceInfo::MiscellaneousDevice),
+ minorDeviceClass(0),
+ serviceUuidsCompleteness(QBluetoothDeviceInfo::DataUnavailable),
+ deviceCoreConfiguration(QBluetoothDeviceInfo::BaseRateCoreConfiguration)
{
}
/*!
Constructs an invalid QBluetoothDeviceInfo object.
*/
-QBluetoothDeviceInfo::QBluetoothDeviceInfo()
-: d_ptr(new QBluetoothDeviceInfoPrivate)
+QBluetoothDeviceInfo::QBluetoothDeviceInfo() :
+ d_ptr(new QBluetoothDeviceInfoPrivate)
{
}
@@ -290,8 +290,9 @@ QBluetoothDeviceInfo::QBluetoothDeviceInfo()
\row \li 13 - 23 \li 11 \li Service class.
\endtable
*/
-QBluetoothDeviceInfo::QBluetoothDeviceInfo(const QBluetoothAddress &address, const QString &name, quint32 classOfDevice)
-: d_ptr(new QBluetoothDeviceInfoPrivate)
+QBluetoothDeviceInfo::QBluetoothDeviceInfo(const QBluetoothAddress &address, const QString &name,
+ quint32 classOfDevice) :
+ d_ptr(new QBluetoothDeviceInfoPrivate)
{
Q_D(QBluetoothDeviceInfo);
@@ -312,8 +313,8 @@ QBluetoothDeviceInfo::QBluetoothDeviceInfo(const QBluetoothAddress &address, con
/*!
Constructs a QBluetoothDeviceInfo that is a copy of \a other.
*/
-QBluetoothDeviceInfo::QBluetoothDeviceInfo(const QBluetoothDeviceInfo &other)
-: d_ptr(new QBluetoothDeviceInfoPrivate)
+QBluetoothDeviceInfo::QBluetoothDeviceInfo(const QBluetoothDeviceInfo &other) :
+ d_ptr(new QBluetoothDeviceInfoPrivate)
{
*this = other;
}
@@ -335,6 +336,7 @@ bool QBluetoothDeviceInfo::isValid() const
return d->valid;
}
+
/*!
Returns the signal strength when the device was last scanned
*/
@@ -407,7 +409,6 @@ bool QBluetoothDeviceInfo::operator==(const QBluetoothDeviceInfo &other) const
return false;
return true;
-
}
/*!
@@ -473,7 +474,8 @@ quint8 QBluetoothDeviceInfo::minorDeviceClass() const
/*!
Sets the list of service UUIDs to \a uuids and the completeness of the data to \a completeness.
*/
-void QBluetoothDeviceInfo::setServiceUuids(const QList<QBluetoothUuid> &uuids, DataCompleteness completeness)
+void QBluetoothDeviceInfo::setServiceUuids(const QList<QBluetoothUuid> &uuids,
+ DataCompleteness completeness)
{
Q_D(QBluetoothDeviceInfo);