diff options
author | Alex Blasche <alexander.blasche@theqtcompany.com> | 2016-04-26 14:19:22 +0200 |
---|---|---|
committer | Alex Blasche <alexander.blasche@theqtcompany.com> | 2016-04-27 10:33:32 +0000 |
commit | 5d0f3f8b1fa24936d8f193b680d7b7ea0237c366 (patch) | |
tree | 6b2b549bb4509daec3c69d2823ff52f1553a0975 | |
parent | 1e30c5b90a594a82e20bda765fe349390db04d4b (diff) | |
download | qtconnectivity-5d0f3f8b1fa24936d8f193b680d7b7ea0237c366.tar.gz |
Improve QBluetoothServiceDiscoveryAgent::setUuidFilter() docs
Better explains that the uuid filter is applied against two service
attributes rather than only one. The ServiceId and the ServiceClassIds
are used for matching purposes.
Change-Id: Ib301e438c27977288c56a2bb9dfe68e2d3f2a10d
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@theqtcompany.com>
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
-rw-r--r-- | src/bluetooth/qbluetoothservicediscoveryagent.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/bluetooth/qbluetoothservicediscoveryagent.cpp b/src/bluetooth/qbluetoothservicediscoveryagent.cpp index 9f2b87cc..0e478398 100644 --- a/src/bluetooth/qbluetoothservicediscoveryagent.cpp +++ b/src/bluetooth/qbluetoothservicediscoveryagent.cpp @@ -211,7 +211,9 @@ QList<QBluetoothServiceInfo> QBluetoothServiceDiscoveryAgent::discoveredServices } /*! Sets the UUID filter to \a uuids. Only services matching the UUIDs in \a uuids will be - returned. + returned. The matching applies to the service's + \l {QBluetoothServiceInfo::ServiceId}{ServiceId} and \l {QBluetoothServiceInfo::ServiceClassIds} {ServiceClassIds} + attributes. An empty UUID list is equivalent to a list containing only QBluetoothUuid::PublicBrowseGroup. @@ -228,6 +230,9 @@ void QBluetoothServiceDiscoveryAgent::setUuidFilter(const QList<QBluetoothUuid> This is an overloaded member function, provided for convenience. Sets the UUID filter to a list containing the single element \a uuid. + The matching applies to the service's \l {QBluetoothServiceInfo::ServiceId}{ServiceId} + and \l {QBluetoothServiceInfo::ServiceClassIds} {ServiceClassIds} + attributes. \sa uuidFilter() */ |