diff options
author | Alex Blasche <alexander.blasche@digia.com> | 2014-06-16 12:27:55 +0200 |
---|---|---|
committer | Alex Blasche <alexander.blasche@digia.com> | 2014-06-16 14:17:42 +0200 |
commit | 50e7588d6d2b4a21b2c4aebc0417b5cfcd8a9c03 (patch) | |
tree | fdc93854fb3614f8557a4b53ce983ac9c09c78e0 /src/bluetooth/qlowenergycontroller_p.h | |
parent | 680537e519c859c79251da94fa15740d87b5ca35 (diff) |
Provide guarding against non-BTLE enabled versions of Bluez
This disables the gatttool based controller as well. While it might
compile on older systems they are likely to not have a
gatttool and why would a Bluez version without BTLE symbols ever
work anyway.
Change-Id: I761e482d3dd1e99008c5d170053e19a1a3a51e6c
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Diffstat (limited to 'src/bluetooth/qlowenergycontroller_p.h')
-rw-r--r-- | src/bluetooth/qlowenergycontroller_p.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bluetooth/qlowenergycontroller_p.h b/src/bluetooth/qlowenergycontroller_p.h index e5763103..92d06f36 100644 --- a/src/bluetooth/qlowenergycontroller_p.h +++ b/src/bluetooth/qlowenergycontroller_p.h @@ -74,7 +74,7 @@ public: void writeValue(const int &instance, QLowEnergyHandle handle, const QByteArray &value); #endif -#ifdef QT_BLUEZ_BLUETOOTH +#if defined(QT_BLUEZ_BLUETOOTH) && !defined(QT_BLUEZ_NO_BTLE) void connectToTerminal(); void setHandles(); void setCharacteristics(int); @@ -88,7 +88,7 @@ private: bool m_randomAddress; QLowEnergyProcess *process; QBluetoothAddress localAdapter; -#ifdef QT_BLUEZ_BLUETOOTH +#if defined(QT_BLUEZ_BLUETOOTH) && !defined(QT_BLUEZ_NO_BTLE) int m_step; bool m_deviceConnected; bool m_commandStarted; |