From 54c9cd9e28bc6f0a2fa5118cfdbe922d71db6623 Mon Sep 17 00:00:00 2001 From: Alex Blasche Date: Tue, 3 May 2016 14:01:44 +0200 Subject: Add a runtime warning when dummy QtBluetooth backend is running There have been plenty of bugs where QtBluetooth was compiled with the dummy backend and the API user reported bugs against it. So far debug output was not able to identify the dummy backend which made debugging of customer code more difficult. This patch prints the name of the backend once shortly after the application startup. The other backends like Bluez do that already. Change-Id: I86353ef3c9c99cafac38805f253e20a3ad3e10a5 Reviewed-by: Timur Pocheptsov --- src/bluetooth/qlowenergycontroller_p.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/bluetooth/qlowenergycontroller_p.cpp') diff --git a/src/bluetooth/qlowenergycontroller_p.cpp b/src/bluetooth/qlowenergycontroller_p.cpp index c16e2733..9cbc6633 100644 --- a/src/bluetooth/qlowenergycontroller_p.cpp +++ b/src/bluetooth/qlowenergycontroller_p.cpp @@ -32,6 +32,7 @@ ****************************************************************************/ #include "qlowenergycontroller_p.h" +#include "dummy/dummy_helper_p.h" QT_BEGIN_NAMESPACE @@ -40,6 +41,7 @@ QLowEnergyControllerPrivate::QLowEnergyControllerPrivate() state(QLowEnergyController::UnconnectedState), error(QLowEnergyController::NoError) { + printDummyWarning(); registerQLowEnergyControllerMetaType(); } -- cgit v1.2.3