219 protocolDescriptorList);
236#if defined(QT_ANDROID_BLUETOOTH) || defined(QT_WINRT_BLUETOOTH) || defined(QT_OSX_BLUETOOTH)
237 return d->isListening();
252 return d->maxPendingConnections;
281 return d->serverType;
291 return d->m_lastError;
296#include "moc_qbluetoothserver.cpp"
int maxPendingConnections() const
Returns the maximum number of pending connections.
QBluetoothServer(QBluetoothServiceInfo::Protocol serverType, QObject *parent=nullptr)
Constructs a bluetooth server with parent and serverType.
Error
This enum describes Bluetooth server error types.
QBluetoothServerPrivate * d_ptr
bool isListening() const
Returns true if the server is listening for incoming connections, otherwise false.
bool listen(const QBluetoothAddress &address=QBluetoothAddress(), quint16 port=0)
Start listening for incoming connections to address on port.
void close()
Closes and resets the listening socket.
Error error() const
Returns the last error of the QBluetoothServer.
quint16 serverPort() const
Returns the server port number.
~QBluetoothServer()
Destroys the bluetooth server.
QBluetoothServiceInfo::Protocol serverType() const
Returns the type of the QBluetoothServer.
void setServiceUuid(const QBluetoothUuid &uuid)
This is a convenience function.
void setAttribute(quint16 attributeId, const QVariant &value)
Sets the attribute identified by attributeId to value.
Protocol
This enum describes the socket protocol used by the service.
@ BluetoothProfileDescriptorList
bool registerService(const QBluetoothAddress &localAdapter=QBluetoothAddress())
void append(parameter_type t)
\macro QT_RESTRICTED_CAST_FROM_ASCII
static auto fromValue(T &&value) noexcept(std::is_nothrow_copy_constructible_v< T > &&Private::CanUseInternalSpace< T >) -> std::enable_if_t< std::conjunction_v< std::is_copy_constructible< T >, std::is_destructible< T > >, QVariant >
Combined button and popup list for selecting options.
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent