Make sure we can still build without BT_SUPPORT

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2017-10-15 21:43:38 -04:00
parent 8f6827ab12
commit a48a42efe0
2 changed files with 8 additions and 1 deletions

View file

@ -12,7 +12,10 @@
#include <QElapsedTimer>
#include <QTimer>
#include <QDateTime>
#if defined(BT_SUPPORT)
#include <QBluetoothLocalDevice>
#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),

View file

@ -9,7 +9,7 @@
#include <QElapsedTimer>
#include <QColor>
#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);