summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@theqtcompany.com>2015-02-17 15:24:22 +0100
committerAlex Blasche <alexander.blasche@theqtcompany.com>2015-02-17 14:36:01 +0000
commitdbf0bd93096f8ef54ebcf550ff104237742778dd (patch)
tree03d6bb38daa553624888c57b6b9873be253802f9
parent6ea1e538b79a08d370660b1237c6ed6baaf82bce (diff)
Improve QBluetoothServiceInfo documentation
serviceUuid() may be null and is not the same as the service class uuid. Task-number: QTBUG-44442 Change-Id: I200db4e2a403fabb8d1b5814b9d615dfc76a627d Reviewed-by: Timur Pocheptsov <Timur.Pocheptsov@digia.com> Reviewed-by: Andy Shaw <andy.shaw@digia.com>
-rw-r--r--src/bluetooth/qbluetoothserviceinfo.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/bluetooth/qbluetoothserviceinfo.cpp b/src/bluetooth/qbluetoothserviceinfo.cpp
index f0926d9c..7b9460a1 100644
--- a/src/bluetooth/qbluetoothserviceinfo.cpp
+++ b/src/bluetooth/qbluetoothserviceinfo.cpp
@@ -313,7 +313,8 @@ bool QBluetoothServiceInfo::unregisterService()
This is a convenience function. It is equivalent to calling
setAttribute(QBluetoothServiceInfo::ServiceId, uuid).
- Sets the service UUID to \a uuid.
+ Sets the custom service UUID to \a uuid. This function should not be used
+ to set a standardized service UUID.
\sa serviceUuid(), setAttribute()
*/
@@ -324,7 +325,9 @@ bool QBluetoothServiceInfo::unregisterService()
This is a convenience function. It is equivalent to calling
attribute(QBluetoothServiceInfo::ServiceId).value<QBluetoothUuid>().
- Returns the UUID of the service.
+ Returns the custom UUID of the service. This UUID may be null.
+ UUIDs based on \l{https://bluetooth.org}{Bluetooth SIG standards}
+ should be retrieved via \l serviceClassUuids().
\sa setServiceUuid(), attribute()
*/