diff options
author | Fabian Bumberger <fbumberger@rim.com> | 2013-09-20 15:29:39 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-20 17:47:15 +0200 |
commit | c231e60cd3aa982b10512c5c23bbca04223ed407 (patch) | |
tree | fabf340c905e4237d466f28e17e7dd83e664f804 /src/bluetooth/qbluetoothserver_p.cpp | |
parent | ac2edceb02a61c1d670312385b1d709417961799 (diff) |
Error handling for QBluetoothServer
Task-number: QTBUG-32669
Change-Id: I0f12b19f7989972b7c8305f6e11a95f7f25a281d
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'src/bluetooth/qbluetoothserver_p.cpp')
-rw-r--r-- | src/bluetooth/qbluetoothserver_p.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bluetooth/qbluetoothserver_p.cpp b/src/bluetooth/qbluetoothserver_p.cpp index 1a123c4d..213d73f1 100644 --- a/src/bluetooth/qbluetoothserver_p.cpp +++ b/src/bluetooth/qbluetoothserver_p.cpp @@ -46,7 +46,7 @@ QT_BEGIN_NAMESPACE QBluetoothServerPrivate::QBluetoothServerPrivate(QBluetoothServiceInfo::Protocol sType) - : serverType(sType) + : serverType(sType), m_lastError(QBluetoothServer::NoError) { } @@ -62,6 +62,9 @@ bool QBluetoothServer::listen(const QBluetoothAddress &address, quint16 port) { Q_UNUSED(address); Q_UNUSED(port); + Q_D(QBluetoothServer); + d->m_lastError = UnsupportedProtocolError; + emit error(d->m_lastError); return false; } |