summaryrefslogtreecommitdiff
path: root/sapbtlistener.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2014-11-23 19:53:30 +0100
committerJavier <dev.git@javispedro.com>2014-11-23 19:53:30 +0100
commit9949c02b0f814ad94a27864a5c39689f090299b6 (patch)
tree90e2893d5aafc14a020754eaf72a2df99e373efb /sapbtlistener.h
parent5244f7909e04b23fbd5706dc6bcadafba21f7600 (diff)
downloadsapd-9949c02b0f814ad94a27864a5c39689f090299b6.tar.gz
sapd-9949c02b0f814ad94a27864a5c39689f090299b6.zip
port to sailfish with qt 5.2
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;
};