summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qbluetoothdevicediscoveryagent_p.h
diff options
context:
space:
mode:
authorOliver Wolff <oliver.wolff@theqtcompany.com>2015-07-21 11:24:56 +0200
committerAlex Blasche <alexander.blasche@theqtcompany.com>2015-09-22 09:22:01 +0000
commit03e956dc8f80d7131f89f8e6088c5dfc68eaf94d (patch)
treee366e96c6ae8754ed594530653353f2d33a4d09a /src/bluetooth/qbluetoothdevicediscoveryagent_p.h
parent44453809c5c1ca0885499536617c9b3d0d2519d6 (diff)
winphone: Added bluetooth device discovery
Change-Id: I1086ffb05b7a632a9329822c150169a3482c6655 Reviewed-by: Samuel Nevala <samuel.nevala@intopalo.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src/bluetooth/qbluetoothdevicediscoveryagent_p.h')
-rw-r--r--src/bluetooth/qbluetoothdevicediscoveryagent_p.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/bluetooth/qbluetoothdevicediscoveryagent_p.h b/src/bluetooth/qbluetoothdevicediscoveryagent_p.h
index a068e227..e089ae13 100644
--- a/src/bluetooth/qbluetoothdevicediscoveryagent_p.h
+++ b/src/bluetooth/qbluetoothdevicediscoveryagent_p.h
@@ -72,10 +72,14 @@ class QDBusVariant;
QT_END_NAMESPACE
#endif
+#ifdef QT_WINRT_BLUETOOTH
+class QWinRTBluetoothDeviceDiscoveryWorker;
+#endif
+
QT_BEGIN_NAMESPACE
class QBluetoothDeviceDiscoveryAgentPrivate
-#if defined(QT_ANDROID_BLUETOOTH)
+#if defined(QT_ANDROID_BLUETOOTH) || defined(QT_WINRT_BLUETOOTH)
: public QObject
{
Q_OBJECT
@@ -149,6 +153,15 @@ private:
QTimer extendedDiscoveryTimer;
#endif
+#ifdef QT_WINRT_BLUETOOTH
+private slots:
+ void onListInitializationCompleted();
+
+private:
+ void disconnectAndClearWorker();
+ QPointer<QWinRTBluetoothDeviceDiscoveryWorker> worker;
+#endif
+
QBluetoothDeviceDiscoveryAgent *q_ptr;
};