diff options
author | Eric Lemanissier <eric.lemanissier@gmail.com> | 2015-10-22 16:39:10 +0200 |
---|---|---|
committer | Eric Lemanissier <eric.lemanissier@gmail.com> | 2015-10-29 18:51:47 +0000 |
commit | 3e6f15d111984536b0299a8b47caf0779ea52730 (patch) | |
tree | 09a469bea53d391ba574e58cc0ec3c55ced4dac7 /src/bluetooth/qbluetoothservicediscoveryagent_p.h | |
parent | c7c4fa2823de1fc6795e95efd49a0c7ed6248b42 (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.h | 20 |
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; }; |