summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qbluetoothsocket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/bluetooth/qbluetoothsocket.cpp')
-rw-r--r--src/bluetooth/qbluetoothsocket.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/bluetooth/qbluetoothsocket.cpp b/src/bluetooth/qbluetoothsocket.cpp
index 62633bb1..92983de8 100644
--- a/src/bluetooth/qbluetoothsocket.cpp
+++ b/src/bluetooth/qbluetoothsocket.cpp
@@ -296,6 +296,27 @@ QBluetoothSocket::QBluetoothSocket(QObject *parent)
setOpenMode(QIODevice::NotOpen);
}
+#if QT_CONFIG(bluez)
+
+/*!
+ \internal
+*/
+QBluetoothSocket::QBluetoothSocket(QBluetoothSocketBasePrivate *dPrivate,
+ QBluetoothServiceInfo::Protocol socketType,
+ QObject *parent)
+ : QIODevice(parent)
+{
+ d_ptr = dPrivate;
+ d_ptr->q_ptr = this;
+
+ Q_D(QBluetoothSocketBase);
+ d->ensureNativeSocket(socketType);
+
+ setOpenMode(QIODevice::NotOpen);
+}
+
+#endif
+
/*!
Destroys the Bluetooth socket.
*/