Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qbluetoothutils_winrt_p.h
Go to the documentation of this file.
1// Copyright (C) 2021 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QBLUETOOTHUTILS_WINRT_P_H
5#define QBLUETOOTHUTILS_WINRT_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18// Workaround for Windows SDK bug.
19// See https://github.com/microsoft/Windows.UI.Composition-Win32-Samples/issues/47
20 #include <winrt/base.h>
21#include <QtCore/private/qfactorycacheregistration_p.h>
22namespace winrt::impl
23{
24 template <typename Async>
25 auto wait_for(Async const& async, Windows::Foundation::TimeSpan const& timeout);
26}
27
28#include <QtCore/QtGlobal>
29#include <QtCore/private/qglobal_p.h>
30
31#include <wrl/client.h>
32
33namespace ABI {
34 namespace Windows {
35 namespace Storage {
36 namespace Streams {
37 struct IBuffer;
38 }
39 }
40 }
41}
42
44
45using NativeBuffer = ABI::Windows::Storage::Streams::IBuffer;
47 bool isWCharString = false);
48
49// The calls to Co(Un)init must be balanced
50void mainThreadCoInit(void* caller);
51void mainThreadCoUninit(void* caller);
52
54
55#endif // QBLUETOOTHSOCKET_WINRT_P_H
\inmodule QtCore
Definition qbytearray.h:57
Combined button and popup list for selecting options.
auto wait_for(Async const &async, Windows::Foundation::TimeSpan const &timeout)
void mainThreadCoInit(void *caller)
QByteArray byteArrayFromBuffer(const Microsoft::WRL::ComPtr< NativeBuffer > &buffer, bool isWCharString=false)
ABI::Windows::Storage::Streams::IBuffer NativeBuffer
void mainThreadCoUninit(void *caller)
GLbitfield GLuint64 timeout
[4]
GLenum GLuint buffer