diff options
author | Alex Blasche <alexander.blasche@digia.com> | 2014-10-10 10:57:37 +0200 |
---|---|---|
committer | Alex Blasche <alexander.blasche@digia.com> | 2014-10-10 11:39:02 +0200 |
commit | 413d98ef936e86edc46fac41ece31e15f94c53ce (patch) | |
tree | 47e356a88c7aa178506e5eee12321461c5fabcef | |
parent | 8c7dd769fc26f21b79c89f6cf93cad36cae4da0e (diff) |
Improve QBluetoothSocket::close() documentation
The disconnected() and stateChanged() signals are delayed which
may easily overlooked by API users. This change specifically points out
this behavior difference.
Change-Id: I3a9e9c656da50c9efe455cd2dbf903a2849e36da
Task-number: QTBUG-41770
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
-rw-r--r-- | src/bluetooth/qbluetoothsocket.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/bluetooth/qbluetoothsocket.cpp b/src/bluetooth/qbluetoothsocket.cpp index be099622..9c3890aa 100644 --- a/src/bluetooth/qbluetoothsocket.cpp +++ b/src/bluetooth/qbluetoothsocket.cpp @@ -144,6 +144,10 @@ Q_DECLARE_LOGGING_CATEGORY(QT_BT_QNX) Aborts the current connection and resets the socket. Unlike disconnectFromService(), this function immediately closes the socket, discarding any pending data in the write buffer. + \note On Android, aborting the socket requires asynchronous interaction with Android threads. + Therefore the associated \l disconnected() and \l stateChanged() signals are delayed + until the threads have finished the closure. + \sa disconnectFromService(), close() */ @@ -151,6 +155,11 @@ Q_DECLARE_LOGGING_CATEGORY(QT_BT_QNX) \fn void QBluetoothSocket::close() Disconnects the socket's connection with the device. + + \note On Android, closing the socket requires asynchronous interaction with Android threads. + Therefore the associated \l disconnected() and \l stateChanged() signals are delayed + until the threads have finished the closure. + */ /*! |