summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qbluetoothlocaldevice_p.h
diff options
context:
space:
mode:
authorOliver Wolff <oliver.wolff@qt.io>2017-01-17 13:27:42 +0100
committerOliver Wolff <oliver.wolff@qt.io>2017-01-19 12:19:11 +0000
commit9ee0c3c36b039367bcac3e2bc116a97efcbc3d3f (patch)
tree3c4e8359f9841631e1826692ca7ae47cc05a1590 /src/bluetooth/qbluetoothlocaldevice_p.h
parent09b287e98fab38f9c6e9e76e185d5662d9a14a6c (diff)
winrt: Minor adjustments to QBluetoothLocalDevice
The WinRT API does not provide functionality to obtain the state of the devices host mode. In order to make the examples (for example btscanner) work in winrt, the hostMode defaults to HostConnectable and the local device is always valid on this platform. Additionally the API only enables us to discover paired devices, so every device that is found, has to be in "Paired" state. Change-Id: I32359d0defdb9f8e1cc1a629d32da1214a669aff Reviewed-by: Alex Blasche <alexander.blasche@qt.io> Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
Diffstat (limited to 'src/bluetooth/qbluetoothlocaldevice_p.h')
-rw-r--r--src/bluetooth/qbluetoothlocaldevice_p.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/bluetooth/qbluetoothlocaldevice_p.h b/src/bluetooth/qbluetoothlocaldevice_p.h
index 1848a073..ca6a119b 100644
--- a/src/bluetooth/qbluetoothlocaldevice_p.h
+++ b/src/bluetooth/qbluetoothlocaldevice_p.h
@@ -206,6 +206,30 @@ private:
void initializeAdapter();
void initializeAdapterBluez5();
};
+#elif defined(QT_WINRT_BLUETOOTH)
+class QBluetoothLocalDevicePrivate : public QObject
+{
+public:
+ QBluetoothLocalDevicePrivate(QBluetoothLocalDevice *q,
+ QBluetoothAddress localAddress = QBluetoothAddress())
+ : q_ptr(q)
+ {
+ Q_UNUSED(localAddress);
+ }
+
+ ~QBluetoothLocalDevicePrivate()
+ {
+ }
+
+
+ bool isValid() const
+ {
+ return true;
+ }
+
+private:
+ QBluetoothLocalDevice *q_ptr;
+};
#elif !defined(QT_OSX_BLUETOOTH)
class QBluetoothLocalDevicePrivate : public QObject
{