summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qbluetoothsocket_winrt_p.h
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@qt.io>2018-08-01 12:48:32 +0200
committerAlex Blasche <alexander.blasche@qt.io>2018-08-09 08:55:08 +0000
commit45c843ceca9fac1aa1246043730eaeeb3ed23235 (patch)
tree81e7e35b768ffa5443a3477fb4943df9f7fc5ec1 /src/bluetooth/qbluetoothsocket_winrt_p.h
parent80bea1f32b92c70c21c96762e31c726cb49e180f (diff)
Shift close/abort signaling from QBluetoothSocket to private implementations
The private implementation can much more easily determine whether the socket closure is already done or not. On Bluez DBus, this avoids disconnected() being emitted twice. Another platform that is still delayed is Android. The patch permits the removal of Android specific ifdefs. Last but not least the patch cleans up missing signals in WinRT. Task-number: QTBUG-68550 Change-Id: I189e1dbc9f6d410522da1a82113fdf4fe79a4cbd Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'src/bluetooth/qbluetoothsocket_winrt_p.h')
-rw-r--r--src/bluetooth/qbluetoothsocket_winrt_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bluetooth/qbluetoothsocket_winrt_p.h b/src/bluetooth/qbluetoothsocket_winrt_p.h
index 6a740206..40e87f01 100644
--- a/src/bluetooth/qbluetoothsocket_winrt_p.h
+++ b/src/bluetooth/qbluetoothsocket_winrt_p.h
@@ -127,6 +127,8 @@ private slots:
private:
HRESULT handleConnectOpFinished(ABI::Windows::Foundation::IAsyncAction *action,
ABI::Windows::Foundation::AsyncStatus status);
+
+ QIODevice::OpenMode requestedOpenMode = QIODevice::NotOpen;
};
QT_END_NAMESPACE