diff options
author | Alex Blasche <alexander.blasche@theqtcompany.com> | 2016-05-03 14:01:44 +0200 |
---|---|---|
committer | Alex Blasche <alexander.blasche@theqtcompany.com> | 2016-05-04 10:24:25 +0000 |
commit | 54c9cd9e28bc6f0a2fa5118cfdbe922d71db6623 (patch) | |
tree | 1ba7df8f14b91139e756121bfe7bb270a5c100c2 /src/bluetooth/qbluetoothtransfermanager.cpp | |
parent | 3e7befcd5801645fa4f7f84d5f1805ae615f28c3 (diff) |
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 <timur.pocheptsov@theqtcompany.com>
Diffstat (limited to 'src/bluetooth/qbluetoothtransfermanager.cpp')
-rw-r--r-- | src/bluetooth/qbluetoothtransfermanager.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bluetooth/qbluetoothtransfermanager.cpp b/src/bluetooth/qbluetoothtransfermanager.cpp index de7693d7..52cefdf8 100644 --- a/src/bluetooth/qbluetoothtransfermanager.cpp +++ b/src/bluetooth/qbluetoothtransfermanager.cpp @@ -38,6 +38,8 @@ #include "qbluetoothtransferreply_bluez_p.h" #elif QT_OSX_BLUETOOTH #include "qbluetoothtransferreply_osx_p.h" +#else +#include "dummy/dummy_helper_p.h" #endif QT_BEGIN_NAMESPACE @@ -111,6 +113,10 @@ QBluetoothTransferReply *QBluetoothTransferManager::put(const QBluetoothTransfer connect(reply, SIGNAL(finished(QBluetoothTransferReply*)), this, SIGNAL(finished(QBluetoothTransferReply*))); return reply; #else + // Android and iOS have no implementation +#if !defined(QT_ANDROID_BLUETOOTH) && !defined(QT_IOS_BLUETOOTH) + printDummyWarning(); +#endif Q_UNUSED(request); Q_UNUSED(data); return 0; |