7#ifndef QT_IOS_BLUETOOTH
8#include "dummy/dummy_helper_p.h"
13QBluetoothServerPrivate::QBluetoothServerPrivate(QBluetoothServiceInfo::Protocol sType,
14 QBluetoothServer *parent)
18#ifndef QT_IOS_BLUETOOTH
21 if (sType == QBluetoothServiceInfo::RfcommProtocol)
22 socket =
new QBluetoothSocket(QBluetoothServiceInfo::RfcommProtocol);
24 socket =
new QBluetoothSocket(QBluetoothServiceInfo::L2capProtocol);
32void QBluetoothServer::close()
36bool QBluetoothServer::listen(
const QBluetoothAddress &address, quint16 port)
40 Q_D(QBluetoothServer);
41 d->m_lastError = UnsupportedProtocolError;
42 emit errorOccurred(d->m_lastError);
46void QBluetoothServer::setMaxPendingConnections(
int numConnections)
48 Q_UNUSED(numConnections);
51bool QBluetoothServer::hasPendingConnections()
const
56QBluetoothSocket *QBluetoothServer::nextPendingConnection()
61QBluetoothAddress QBluetoothServer::serverAddress()
const
63 return QBluetoothAddress();
66quint16 QBluetoothServer::serverPort()
const
71void QBluetoothServer::setSecurityFlags(QBluetooth::SecurityFlags security)
76QBluetooth::SecurityFlags QBluetoothServer::securityFlags()
const
78 return QBluetooth::Security::NoSecurity;
~QBluetoothServerPrivate()
QBluetoothSocket * socket