summaryrefslogtreecommitdiffstats
path: root/examples/bluetooth/heartrate-game/connectionhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/bluetooth/heartrate-game/connectionhandler.cpp')
-rw-r--r--examples/bluetooth/heartrate-game/connectionhandler.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/examples/bluetooth/heartrate-game/connectionhandler.cpp b/examples/bluetooth/heartrate-game/connectionhandler.cpp
index d5084179..c9c14818 100644
--- a/examples/bluetooth/heartrate-game/connectionhandler.cpp
+++ b/examples/bluetooth/heartrate-game/connectionhandler.cpp
@@ -41,6 +41,7 @@
#include "heartrate-global.h"
#include "connectionhandler.h"
#include <QtDebug>
+#include <QtBluetooth/qtbluetooth-config.h>
ConnectionHandler::ConnectionHandler(QObject *parent) : QObject(parent)
{
@@ -56,6 +57,16 @@ bool ConnectionHandler::alive() const
return m_localDevice.isValid() && m_localDevice.hostMode() != QBluetoothLocalDevice::HostPoweredOff;
#endif
}
+
+bool ConnectionHandler::requiresAddressType() const
+{
+#if QT_CONFIG(bluez)
+ return true;
+#else
+ return false;
+#endif
+}
+
QString ConnectionHandler::name() const
{
return m_localDevice.name();