summaryrefslogtreecommitdiffstats
path: root/src/bluetooth
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@digia.com>2014-02-15 17:00:16 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-15 17:00:16 +0100
commitecf09a9da8685c0d6917cac0bfbae959a30754d0 (patch)
treea90a13c3bb269ae6e389b6b0e41042b55f3ff59e /src/bluetooth
parente7f2578c612cac7532fd75111c87c71abc3c3f48 (diff)
parentbcc26fb35caab3a00e9968e70cc98080a517a2f1 (diff)
Merge "Merge remote-tracking branch 'gerrit/stable' into dev" into refs/staging/dev
Diffstat (limited to 'src/bluetooth')
-rw-r--r--src/bluetooth/qbluetoothserver.cpp3
-rw-r--r--src/bluetooth/qbluetoothserver.h2
-rw-r--r--src/bluetooth/qbluetoothserviceinfo_bluez.cpp2
-rw-r--r--src/bluetooth/qbluetoothsocket.cpp1
4 files changed, 3 insertions, 5 deletions
diff --git a/src/bluetooth/qbluetoothserver.cpp b/src/bluetooth/qbluetoothserver.cpp
index 670b522f..3a7e495f 100644
--- a/src/bluetooth/qbluetoothserver.cpp
+++ b/src/bluetooth/qbluetoothserver.cpp
@@ -216,10 +216,9 @@ QBluetoothServiceInfo QBluetoothServer::listen(const QBluetoothUuid &uuid, const
serviceInfo.setAttribute(QBluetoothServiceInfo::BluetoothProfileDescriptorList,
classId);
- //Android requires custom uuid to be set as service class and not as service uuid
+ //Android requires custom uuid to be set as service class
classId.prepend(QVariant::fromValue(uuid));
serviceInfo.setAttribute(QBluetoothServiceInfo::ServiceClassIds, classId);
-
serviceInfo.setServiceUuid(uuid);
QBluetoothServiceInfo::Sequence protocolDescriptorList;
diff --git a/src/bluetooth/qbluetoothserver.h b/src/bluetooth/qbluetoothserver.h
index 9b1d54c4..61573843 100644
--- a/src/bluetooth/qbluetoothserver.h
+++ b/src/bluetooth/qbluetoothserver.h
@@ -97,7 +97,7 @@ public:
Q_SIGNALS:
void newConnection();
- void error(QBluetoothServer::Error);
+ void error(QBluetoothServer::Error error);
protected:
QBluetoothServerPrivate *d_ptr;
diff --git a/src/bluetooth/qbluetoothserviceinfo_bluez.cpp b/src/bluetooth/qbluetoothserviceinfo_bluez.cpp
index b9120c07..bde3e264 100644
--- a/src/bluetooth/qbluetoothserviceinfo_bluez.cpp
+++ b/src/bluetooth/qbluetoothserviceinfo_bluez.cpp
@@ -266,8 +266,6 @@ bool QBluetoothServiceInfoPrivate::registerService(const QBluetoothAddress &loca
stream.writeEndDocument();
- qCDebug(QT_BT_BLUEZ) << xmlServiceRecord;
-
if (!registered) {
QDBusPendingReply<uint> reply = service->AddRecord(xmlServiceRecord);
reply.waitForFinished();
diff --git a/src/bluetooth/qbluetoothsocket.cpp b/src/bluetooth/qbluetoothsocket.cpp
index bd4b43fb..c7aea0b7 100644
--- a/src/bluetooth/qbluetoothsocket.cpp
+++ b/src/bluetooth/qbluetoothsocket.cpp
@@ -587,6 +587,7 @@ void QBluetoothSocket::discoveryFinished()
qCDebug(QT_BT) << "Didn't find any";
d->errorString = tr("Service cannot be found");
setSocketError(ServiceNotFoundError);
+ setSocketState(QBluetoothSocket::UnconnectedState);
d->discoveryAgent->deleteLater();
d->discoveryAgent = 0;
}