summaryrefslogtreecommitdiff
path: root/sapbtlistener.h
diff options
context:
space:
mode:
Diffstat (limited to 'sapbtlistener.h')
-rw-r--r--sapbtlistener.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/sapbtlistener.h b/sapbtlistener.h
index a59a5e1..3fe821d 100644
--- a/sapbtlistener.h
+++ b/sapbtlistener.h
@@ -3,7 +3,10 @@
#include <QtCore/QObject>
-#if QT_VERSION >= QT_VERSION_CHECK(5,0,0)
+#if QT_VERSION >= QT_VERSION_CHECK(5,2,0)
+#include <QtBluetooth/QBluetoothServer>
+#include <QtBluetooth/QBluetoothServiceInfo>
+#elif QT_VERSION >= QT_VERSION_CHECK(5,0,0)
#include <QtBluetooth/QRfcommServer>
#include <QtBluetooth/QBluetoothServiceInfo>
QT_USE_NAMESPACE_BLUETOOTH
@@ -36,7 +39,11 @@ private slots:
private:
+#if QT_VERSION >= QT_VERSION_CHECK(5,2,0)
+ QBluetoothServer *_server;
+#else
QRfcommServer *_server;
+#endif
QBluetoothServiceInfo _service;
};