diff options
Diffstat (limited to 'sapbtlistener.h')
-rw-r--r-- | sapbtlistener.h | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/sapbtlistener.h b/sapbtlistener.h index 3fe821d..398eb1a 100644 --- a/sapbtlistener.h +++ b/sapbtlistener.h @@ -2,19 +2,8 @@ #define SAPBTLISTENER_H #include <QtCore/QObject> - -#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 -#else -#include <QtConnectivity/QRfcommServer> -#include <QtConnectivity/QBluetoothServiceInfo> -QTM_USE_NAMESPACE -#endif class SAPBTListener : public QObject { @@ -35,15 +24,11 @@ private: private slots: void acceptConnection(); + void handleNudgeConnected(); void handleNudgeError(QBluetoothSocket::SocketError error); - private: -#if QT_VERSION >= QT_VERSION_CHECK(5,2,0) QBluetoothServer *_server; -#else - QRfcommServer *_server; -#endif QBluetoothServiceInfo _service; }; |