summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qbluetoothserver_osx.mm
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@qt.io>2018-10-12 13:30:48 +0200
committerAlex Blasche <alexander.blasche@qt.io>2018-10-16 07:47:34 +0000
commit97dc04e0d74687b4cafab3676d3582f758a0a4cc (patch)
tree6f0ff85e522d8329f8b9c4832b3a2b43961f5a4b /src/bluetooth/qbluetoothserver_osx.mm
parentdfee9aa22f2dbaae3476770d0ab65f26494fe451 (diff)
Fix SDP BrowseGroupList entry
A BrowseGroupList is defined as sequence in which each element is a UUID that represents a browse group to which the service record belongs. Except for the QBluetoothServer::listen() implementation every other implementation did not use the sequence pattern. This patch unifies all BrowseGroupList entries through QtBluetooth and its examples/tests. Change-Id: I37640ae0500c557d79350359883abc6a66a46346 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'src/bluetooth/qbluetoothserver_osx.mm')
-rw-r--r--src/bluetooth/qbluetoothserver_osx.mm5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bluetooth/qbluetoothserver_osx.mm b/src/bluetooth/qbluetoothserver_osx.mm
index a6768432..eefaf4da 100644
--- a/src/bluetooth/qbluetoothserver_osx.mm
+++ b/src/bluetooth/qbluetoothserver_osx.mm
@@ -377,8 +377,9 @@ QBluetoothServiceInfo QBluetoothServer::listen(const QBluetoothUuid &uuid, const
QBluetoothServiceInfo serviceInfo;
serviceInfo.setAttribute(QSInfo::ServiceName, serviceName);
- serviceInfo.setAttribute(QSInfo::BrowseGroupList,
- QBluetoothUuid(QBluetoothUuid::PublicBrowseGroup));
+ QBluetoothServiceInfo::Sequence publicBrowse;
+ publicBrowse << QVariant::fromValue(QBluetoothUuid(QBluetoothUuid::PublicBrowseGroup));
+ serviceInfo.setAttribute(QSInfo::BrowseGroupList, publicBrowse);
QSInfo::Sequence profileSequence;
QSInfo::Sequence classId;