summaryrefslogtreecommitdiffstats
path: root/src/imports/bluetooth/qdeclarativebluetoothsocket.cpp
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@digia.com>2013-06-21 10:51:48 +0200
committerAlex <alexander.blasche@digia.com>2013-06-21 18:41:05 +0200
commit3a68fd3957bd02f417d83bbc113e1a9db82f7684 (patch)
tree22def076338dd230647f2933ee661285a860befa /src/imports/bluetooth/qdeclarativebluetoothsocket.cpp
parent09d188e570812a370a54c4ad9821221b26948e3f (diff)
Fix QtBluetooth documentation
Task-number: QTBUG-31913 Change-Id: Ia466c40801994f402b7d6a739d5d43df145c432d Reviewed-by: Jerome Pasion <jerome.pasion@digia.com> Reviewed-by: Alex <alexander.blasche@digia.com>
Diffstat (limited to 'src/imports/bluetooth/qdeclarativebluetoothsocket.cpp')
-rw-r--r--src/imports/bluetooth/qdeclarativebluetoothsocket.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/imports/bluetooth/qdeclarativebluetoothsocket.cpp b/src/imports/bluetooth/qdeclarativebluetoothsocket.cpp
index 78a837f0..15b733aa 100644
--- a/src/imports/bluetooth/qdeclarativebluetoothsocket.cpp
+++ b/src/imports/bluetooth/qdeclarativebluetoothsocket.cpp
@@ -308,6 +308,25 @@ void QDeclarativeBluetoothSocket::socket_state(QBluetoothSocket::SocketState sta
emit stateChanged();
}
+/*!
+ \qmlproperty string BluetoothSocket::state
+
+ This property holds the current state of the socket. The property can be one
+ of the following strings:
+
+ \list
+ \li \c{No Service Set}
+ \li \c{Unconnected}
+ \li \c{Service Lookup}
+ \li \c{Connecting}
+ \li \c{Connected}
+ \li \c{Closing}
+ \li \c{Listening}
+ \li \c{Bound}
+ \endlist
+
+ The states are derived from QBluetoothSocket::SocketState. This property is read-only.
+*/
QString QDeclarativeBluetoothSocket::state()
{
return d->m_state;