From a48a42efe07273d042bde4a806771409a0f227b3 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 15 Oct 2017 21:43:38 -0400 Subject: [PATCH] Make sure we can still build without BT_SUPPORT Signed-off-by: Dirk Hohndel --- mobile-widgets/qmlmanager.cpp | 5 +++++ mobile-widgets/qmlmanager.h | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index 5fbe61614..2f99ff41b 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -12,7 +12,10 @@ #include #include #include + +#if defined(BT_SUPPORT) #include +#endif #include "qt-models/divelistmodel.h" #include "qt-models/gpslistmodel.h" @@ -78,6 +81,7 @@ extern "C" int gitProgressCB(const char *text) return 0; } +#if defined(BT_SUPPOR) void QMLManager::btHostModeChange(QBluetoothLocalDevice::HostMode state) { BTDiscovery *btDiscovery = BTDiscovery::instance(); @@ -94,6 +98,7 @@ void QMLManager::btHostModeChange(QBluetoothLocalDevice::HostMode state) } emit btEnabledChanged(); } +#endif QMLManager::QMLManager() : m_locationServiceEnabled(false), m_verboseEnabled(false), diff --git a/mobile-widgets/qmlmanager.h b/mobile-widgets/qmlmanager.h index 45851dfdf..d89c1e27d 100644 --- a/mobile-widgets/qmlmanager.h +++ b/mobile-widgets/qmlmanager.h @@ -9,7 +9,7 @@ #include #include -#if BT_SUPPORT +#if defined(BT_SUPPORT) #include "core/btdiscovery.h" #endif #include "core/gpslocation.h" @@ -138,7 +138,9 @@ public: bool showPin() const; void setShowPin(bool enable); Q_INVOKABLE void setStatusbarColor(QColor color); +#if defined(BT_SUPPORT) void btHostModeChange(QBluetoothLocalDevice::HostMode state); +#endif #if defined(Q_OS_ANDROID) void writeToAppLogFile(QString logText);