From 97ad2ffecf6f5c18b71c52c5a7f4a5f8b679c0a6 Mon Sep 17 00:00:00 2001 From: Alex Blasche Date: Tue, 24 Sep 2013 10:36:48 +0200 Subject: Fixing small QBluetoothServer issues -extending documentation -emit error signal when setting a new error Task-number: QTBUG-32669 Change-Id: I16b8a149792ed5068a7bd76af874477084802aea Reviewed-by: Fabian Bumberger Reviewed-by: Alex Blasche --- src/bluetooth/qbluetoothserver.cpp | 3 ++- src/bluetooth/qbluetoothserver_bluez.cpp | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src/bluetooth') diff --git a/src/bluetooth/qbluetoothserver.cpp b/src/bluetooth/qbluetoothserver.cpp index 6cb9ba01..967d4e71 100644 --- a/src/bluetooth/qbluetoothserver.cpp +++ b/src/bluetooth/qbluetoothserver.cpp @@ -175,7 +175,8 @@ QBluetoothServer::~QBluetoothServer() which is returned can not be changed any more. Returns a registered QBluetoothServiceInfo instance if sucessful otherwise an - invalid QBluetoothServiceInfo. + invalid QBluetoothServiceInfo. This function always assumes that the default Bluetooth adapter + should be used. For an RFCOMM server this function is equivalent to following code snippet. diff --git a/src/bluetooth/qbluetoothserver_bluez.cpp b/src/bluetooth/qbluetoothserver_bluez.cpp index 83d0b073..e8457183 100644 --- a/src/bluetooth/qbluetoothserver_bluez.cpp +++ b/src/bluetooth/qbluetoothserver_bluez.cpp @@ -107,6 +107,7 @@ bool QBluetoothServer::listen(const QBluetoothAddress &address, quint16 port) int sock = d->socket->socketDescriptor(); if (sock < 0) { d->m_lastError = InputOutputError; + emit error(d->m_lastError); return false; } -- cgit v1.2.3