diff options
author | Andre de la Rocha <andre.rocha@qt.io> | 2018-11-23 18:04:40 +0100 |
---|---|---|
committer | Andre de la Rocha <andre.rocha@qt.io> | 2019-08-05 09:16:09 +0200 |
commit | 8b7b52d66f2616040ca4aaae3f2732be96e19ab8 (patch) | |
tree | bfc38942bd95718030a142540821f28911a611ef /src/bluetooth/qbluetoothserver_winrt.cpp | |
parent | 5a2c8a39d76d634161e87b1c55d36cbbcc778289 (diff) |
Enable the use of the Win32 Bluetooth backend
This change enables the optional use of the Win32-based Bluetooth
backend on Windows. By default, the WinRT backend is used, if
supported by the platform. The use of the Win32 backend must be
selected by the -native-win32-bluetooth configuration option.
Task-number: QTBUG-40698
Change-Id: I6904bf077467d826e3ff5ad026ebae5f955f2e37
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/bluetooth/qbluetoothserver_winrt.cpp')
-rw-r--r-- | src/bluetooth/qbluetoothserver_winrt.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/bluetooth/qbluetoothserver_winrt.cpp b/src/bluetooth/qbluetoothserver_winrt.cpp index 3bcd6b33..b9d98eb7 100644 --- a/src/bluetooth/qbluetoothserver_winrt.cpp +++ b/src/bluetooth/qbluetoothserver_winrt.cpp @@ -70,8 +70,10 @@ Q_DECLARE_LOGGING_CATEGORY(QT_BT_WINRT) QHash<QBluetoothServerPrivate *, int> __fakeServerPorts; -QBluetoothServerPrivate::QBluetoothServerPrivate(QBluetoothServiceInfo::Protocol sType) - : maxPendingConnections(1), serverType(sType), m_lastError(QBluetoothServer::NoError), socket(0) +QBluetoothServerPrivate::QBluetoothServerPrivate(QBluetoothServiceInfo::Protocol sType, + QBluetoothServer *parent) + : maxPendingConnections(1), serverType(sType), m_lastError(QBluetoothServer::NoError), + socket(0), q_ptr(parent) { #ifdef CLASSIC_APP_BUILD CoInitialize(NULL); |