summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qbluetoothutils_winrt_p.h
diff options
context:
space:
mode:
authorOliver Wolff <oliver.wolff@qt.io>2019-08-05 11:28:30 +0200
committerOliver Wolff <oliver.wolff@qt.io>2019-08-07 10:44:32 +0200
commit99db6526341e6f0f2a4798088c1f954cff013b7b (patch)
treeda49c1c9717a03cdc2e69970ad4848e989e6bb8c /src/bluetooth/qbluetoothutils_winrt_p.h
parent8b7b52d66f2616040ca4aaae3f2732be96e19ab8 (diff)
parentf2f9da656fd77330cce44dfe0721b3f68f1d809d (diff)
Merge remote-tracking branch 'origin/dev' into wip/win
Diffstat (limited to 'src/bluetooth/qbluetoothutils_winrt_p.h')
-rw-r--r--src/bluetooth/qbluetoothutils_winrt_p.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/bluetooth/qbluetoothutils_winrt_p.h b/src/bluetooth/qbluetoothutils_winrt_p.h
index c272bae1..93950fc9 100644
--- a/src/bluetooth/qbluetoothutils_winrt_p.h
+++ b/src/bluetooth/qbluetoothutils_winrt_p.h
@@ -53,10 +53,26 @@
#include <QtCore/QtGlobal>
+#include <wrl/client.h>
+
+namespace ABI {
+ namespace Windows {
+ namespace Storage {
+ namespace Streams {
+ struct IBuffer;
+ }
+ }
+ }
+}
+
QT_BEGIN_NAMESPACE
bool supportsNewLEApi();
+using NativeBuffer = ABI::Windows::Storage::Streams::IBuffer;
+QByteArray byteArrayFromBuffer(const Microsoft::WRL::ComPtr<NativeBuffer> &buffer,
+ bool isWCharString = false);
+
QT_END_NAMESPACE
#endif // QBLUETOOTHSOCKET_WINRT_P_H