32 ServiceAlreadyRegisteredError,
33 UnsupportedProtocolError,
34 MissingPermissionsError
38 explicit QBluetoothServer(QBluetoothServiceInfo::Protocol serverType, QObject *parent =
nullptr);
43 bool listen(
const QBluetoothAddress &address = QBluetoothAddress(), quint16 port = 0);
44 [[nodiscard]] QBluetoothServiceInfo listen(
const QBluetoothUuid &uuid,
45 const QString &serviceName = QString());
46 bool isListening()
const;
48 void setMaxPendingConnections(
int numConnections);
49 int maxPendingConnections()
const;
51 bool hasPendingConnections()
const;
52 QBluetoothSocket *nextPendingConnection();
54 QBluetoothAddress serverAddress()
const;
55 quint16 serverPort()
const;
57 void setSecurityFlags(QBluetooth::SecurityFlags security);
58 QBluetooth::SecurityFlags securityFlags()
const;
60 QBluetoothServiceInfo::Protocol serverType()
const;
66 void errorOccurred(QBluetoothServer::Error error);
69 QBluetoothServerPrivate *d_ptr;
72 Q_DECLARE_PRIVATE(QBluetoothServer)