summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qlowenergycontroller_p.h
diff options
context:
space:
mode:
authorOliver Wolff <oliver.wolff@qt.io>2016-05-20 13:40:16 +0200
committerOliver Wolff <oliver.wolff@qt.io>2016-05-26 05:37:30 +0000
commit00bd839244c5deedacdb5bd2fd76738add9f821c (patch)
tree09d31326423750aeedb4495730ab5f4565c250b5 /src/bluetooth/qlowenergycontroller_p.h
parentc664e448735a0b78ca23a167202f1943fa783338 (diff)
winrt: BTLE: Device (dis-)connection
Task-number: QTBUG-37779 Change-Id: I0f83e706a10d6c42543bd41aa012fde746f1a334 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src/bluetooth/qlowenergycontroller_p.h')
-rw-r--r--src/bluetooth/qlowenergycontroller_p.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/bluetooth/qlowenergycontroller_p.h b/src/bluetooth/qlowenergycontroller_p.h
index 2256025c..4ecdc7c9 100644
--- a/src/bluetooth/qlowenergycontroller_p.h
+++ b/src/bluetooth/qlowenergycontroller_p.h
@@ -82,6 +82,20 @@ QT_END_NAMESPACE
#elif defined(QT_ANDROID_BLUETOOTH)
#include <QtAndroidExtras/QAndroidJniObject>
#include "android/lowenergynotificationhub_p.h"
+#elif defined(QT_WINRT_BLUETOOTH)
+#include <wrl.h>
+
+namespace ABI {
+ namespace Windows {
+ namespace Devices {
+ namespace Bluetooth {
+ struct IBluetoothLEDevice;
+ }
+ }
+ }
+}
+
+class QWinRTLowEnergyServiceHandler;
#endif
#include <functional>
@@ -414,6 +428,10 @@ private slots:
QLowEnergyService::ServiceError errorCode);
void characteristicChanged(int charHandle, const QByteArray &data);
void serviceError(int attributeHandle, QLowEnergyService::ServiceError errorCode);
+#elif defined(QT_WINRT_BLUETOOTH)
+private:
+ Microsoft::WRL::ComPtr<ABI::Windows::Devices::Bluetooth::IBluetoothLEDevice> mDevice;
+ EventRegistrationToken mStatusChangedToken;
#endif
private:
QLowEnergyController *q_ptr;