summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qbluetoothservicediscoveryagent_p.h
diff options
context:
space:
mode:
authorEric Lemanissier <eric.lemanissier@gmail.com>2015-10-22 16:39:10 +0200
committerEric Lemanissier <eric.lemanissier@gmail.com>2015-10-29 18:51:47 +0000
commit3e6f15d111984536b0299a8b47caf0779ea52730 (patch)
tree09a469bea53d391ba574e58cc0ec3c55ced4dac7 /src/bluetooth/qbluetoothservicediscoveryagent_p.h
parentc7c4fa2823de1fc6795e95efd49a0c7ed6248b42 (diff)
Bluetooth - service discovery on Windows
Based on previous change by Philip Schuchardt Change-Id: If27e1fce63f2a832d19965219f1a5567f76ab770 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src/bluetooth/qbluetoothservicediscoveryagent_p.h')
-rw-r--r--src/bluetooth/qbluetoothservicediscoveryagent_p.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/bluetooth/qbluetoothservicediscoveryagent_p.h b/src/bluetooth/qbluetoothservicediscoveryagent_p.h
index c4d5017a..c9620ffd 100644
--- a/src/bluetooth/qbluetoothservicediscoveryagent_p.h
+++ b/src/bluetooth/qbluetoothservicediscoveryagent_p.h
@@ -66,6 +66,10 @@ class QXmlStreamReader;
QT_END_NAMESPACE
#endif
+#ifdef QT_WIN_BLUETOOTH
+#include <QFutureWatcher>
+#endif
+
QT_BEGIN_NAMESPACE
class QBluetoothDeviceDiscoveryAgent;
@@ -128,6 +132,9 @@ public:
void _q_fetchUuidsTimeout();
void _q_hostModeStateChanged(QBluetoothLocalDevice::HostMode state);
#endif
+#ifdef QT_WIN_BLUETOOTH
+ void _q_nextSdpScan();
+#endif
private:
void start(const QBluetoothAddress &address);
@@ -179,6 +186,19 @@ private:
QMap<QBluetoothAddress,QPair<QBluetoothDeviceInfo,QList<QBluetoothUuid> > > sdpCache;
#endif
+#ifdef QT_WIN_BLUETOOTH
+public:
+ typedef void* SearchHandle;
+private:
+ int systemError;
+ bool pendingStop;
+ bool pendingFinish;
+
+ QFutureWatcher<QBluetoothServiceInfo> *searchWatcher;
+
+ SearchHandle hSearch;
+#endif
+
protected:
QBluetoothServiceDiscoveryAgent *q_ptr;
};