summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qbluetoothdevicediscoveryagent_p.cpp
diff options
context:
space:
mode:
authorFabian Bumberger <fbumberger@rim.com>2013-09-19 20:27:00 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-20 13:36:35 +0200
commitac2edceb02a61c1d670312385b1d709417961799 (patch)
tree3195e852c3ba79890ca187fce2373d5fe9f76a99 /src/bluetooth/qbluetoothdevicediscoveryagent_p.cpp
parent559c648e41a5a3b33127fd3a786934bff7ecf828 (diff)
Refactor device and service discovery errors
- Make them more consistent with other Qt modules - Propagate the error during device discovery to the QBluetoothServiceDiscoveryAgent Change-Id: Idcd3e0e6061b85e8b6adad248625740f3b91289a Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'src/bluetooth/qbluetoothdevicediscoveryagent_p.cpp')
-rw-r--r--src/bluetooth/qbluetoothdevicediscoveryagent_p.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bluetooth/qbluetoothdevicediscoveryagent_p.cpp b/src/bluetooth/qbluetoothdevicediscoveryagent_p.cpp
index b7184eeb..41920dbe 100644
--- a/src/bluetooth/qbluetoothdevicediscoveryagent_p.cpp
+++ b/src/bluetooth/qbluetoothdevicediscoveryagent_p.cpp
@@ -67,9 +67,9 @@ bool QBluetoothDeviceDiscoveryAgentPrivate::isActive() const
void QBluetoothDeviceDiscoveryAgentPrivate::start()
{
Q_Q(QBluetoothDeviceDiscoveryAgent);
- lastError = QBluetoothDeviceDiscoveryAgent::IOFailure;
+ lastError = QBluetoothDeviceDiscoveryAgent::InputOutputError;
errorString = QStringLiteral("No Bluetooth device available");
- emit q->error(QBluetoothDeviceDiscoveryAgent::IOFailure);
+ emit q->error(QBluetoothDeviceDiscoveryAgent::InputOutputError);
}
void QBluetoothDeviceDiscoveryAgentPrivate::stop()