summaryrefslogtreecommitdiffstats
path: root/src/imports/bluetooth/qdeclarativebluetoothdiscoverymodel.cpp
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@digia.com>2013-10-10 13:53:04 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-11 15:57:06 +0200
commit07520e4b650e0a6b4c5039bc0fdc7687df009d15 (patch)
tree5b983f2351144213af12e86a1689c2d9f1e8e9a1 /src/imports/bluetooth/qdeclarativebluetoothdiscoverymodel.cpp
parentaa5f17bda3c6c958563c75bf74553c20cd18d6df (diff)
Document the data roles offered by the BluetoothDiscoveryModel.
Change-Id: Ifba68d1980f6eedd030db38836be5a2d62a224b2 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com> Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Diffstat (limited to 'src/imports/bluetooth/qdeclarativebluetoothdiscoverymodel.cpp')
-rw-r--r--src/imports/bluetooth/qdeclarativebluetoothdiscoverymodel.cpp28
1 files changed, 25 insertions, 3 deletions
diff --git a/src/imports/bluetooth/qdeclarativebluetoothdiscoverymodel.cpp b/src/imports/bluetooth/qdeclarativebluetoothdiscoverymodel.cpp
index 8ec78f85..c2623ba0 100644
--- a/src/imports/bluetooth/qdeclarativebluetoothdiscoverymodel.cpp
+++ b/src/imports/bluetooth/qdeclarativebluetoothdiscoverymodel.cpp
@@ -63,11 +63,33 @@
limited to a single service such as a game.
The model roles provided by BluetoothDiscoveryModel are
- \c service, \c name, \c remoteAddress and \c deviceName.
- Through the \c service role the BluetoothService can be accessed for more details.
+ \c service, \c name, \c remoteAddress and \c deviceName. The meaning of the roles
+ changes based on the current \l discoveryMode.
- \sa QBluetoothServiceDiscoveryAgent
+ \table
+ \header
+ \li Model role
+ \li Device Discovery
+ \li Service Discovery
+ \row
+ \li \c name
+ \li The device's name and address.
+ \li The service name and the name of the device offering the service. If the device name is empty the devices address will be used.
+ \row
+ \li \c deviceName
+ \li The name of the device.
+ \li The name of the device offering the service.
+ \row
+ \li \c service
+ \li The role is undefined in this mode.
+ \li The \l BluetoothService object describing the discovered service.
+ \row
+ \li \c remoteAddress
+ \li The address of the found device.
+ \li The address of the device offering the service.
+ \endtable
+ \sa QBluetoothServiceDiscoveryAgent
*/
class QDeclarativeBluetoothDiscoveryModelPrivate