6#ifndef QT_IOS_BLUETOOTH
7#include "dummy/dummy_helper_p.h"
13 : QBluetoothSocketBasePrivate{qq}
15 secFlags = QBluetooth::Security::NoSecurity;
16#ifndef QT_IOS_BLUETOOTH
39 const QBluetoothServiceInfo &service, QIODevice::OpenMode openMode)
44 Q_Q(QBluetoothSocket);
46 qWarning() <<
"Using non-functional QBluetoothSocketPrivateDummy";
47 errorString = QBluetoothSocket::tr(
"Socket type not supported");
48 q->setSocketError(QBluetoothSocket::SocketError::UnsupportedProtocolError);
52 const QBluetoothAddress &address,
const QBluetoothUuid &uuid, QIODevice::OpenMode openMode)
58 Q_Q(QBluetoothSocket);
60 qWarning() <<
"Using non-functional QBluetoothSocketPrivateDummy";
61 errorString = QBluetoothSocket::tr(
"Socket type not supported");
62 q->setSocketError(QBluetoothSocket::SocketError::UnsupportedProtocolError);
66 const QBluetoothAddress &address, quint16 port, QIODevice::OpenMode openMode)
72 Q_Q(QBluetoothSocket);
74 qWarning() <<
"Using non-functional QBluetoothSocketPrivateDummy";
75 errorString = QBluetoothSocket::tr(
"Socket type not supported");
76 q->setSocketError(QBluetoothSocket::SocketError::UnsupportedProtocolError);
90 return QBluetoothAddress();
105 return QBluetoothAddress();
118 Q_Q(QBluetoothSocket);
120 if (state != QBluetoothSocket::SocketState::ConnectedState) {
121 errorString = QBluetoothSocket::tr(
"Cannot write while not connected");
122 q->setSocketError(QBluetoothSocket::SocketError::OperationError);
133 Q_Q(QBluetoothSocket);
135 if (state != QBluetoothSocket::SocketState::ConnectedState) {
136 errorString = QBluetoothSocket::tr(
"Cannot read while not connected");
137 q->setSocketError(QBluetoothSocket::SocketError::OperationError);
149 QBluetoothSocket::SocketState socketState, QBluetoothSocket::OpenMode openMode)
151 Q_UNUSED(socketDescriptor);
152 Q_UNUSED(socketType);
153 Q_UNUSED(socketState);
QString peerName() const override
~QBluetoothSocketPrivateDummy() override
QBluetoothAddress localAddress() const override
void connectToService(const QBluetoothServiceInfo &service, QIODevice::OpenMode openMode) override
void connectToServiceHelper(const QBluetoothAddress &address, quint16 port, QIODevice::OpenMode openMode) override
bool canReadLine() const override
qint64 bytesAvailable() const override
friend class QBluetoothServerPrivate
QBluetoothAddress peerAddress() const override
void connectToService(const QBluetoothAddress &address, const QBluetoothUuid &uuid, QIODevice::OpenMode openMode) override
qint64 writeData(const char *data, qint64 maxSize) override
quint16 peerPort() const override
bool setSocketDescriptor(int socketDescriptor, QBluetoothServiceInfo::Protocol socketType, QBluetoothSocket::SocketState socketState=QBluetoothSocket::SocketState::ConnectedState, QBluetoothSocket::OpenMode openMode=QBluetoothSocket::ReadWrite) override
quint16 localPort() const override
void connectToService(const QBluetoothAddress &address, quint16 port, QIODevice::OpenMode openMode) override
qint64 readData(char *data, qint64 maxSize) override
QString localName() const override
qint64 bytesToWrite() const override
Combined button and popup list for selecting options.