NDEVR
API Documentation
BluetoothConnectionFactory

A ConnectionFactory that enables the creation of a BluetoothConnection for interfacing with a QBluetoothSocket. More...

Inheritance diagram for BluetoothConnectionFactory:
[legend]
Collaboration diagram for BluetoothConnectionFactory:
[legend]

Public Member Functions

virtual Buffer< ConnectionCategoryavailableConnectionCategories () override
 Returns the categories of connections this factory can provide.
virtual Buffer< ConnectionInfoavailableConnections (const ConnectionSearchParameters &params) override
 Discovers available Bluetooth connections matching the search parameters.
virtual ConnectionBackendcreateConnection (const ConnectionInfo &request) override
 Creates a new BluetoothConnection backend for the given connection info.
virtual bool handlesType (const StringView &request) const override
 Checks whether this factory handles the given connection type string.
Public Member Functions inherited from ConnectionFactory
virtual bool canConnectTo (const ConnectionInfo &request) const
 Checks whether this factory can establish a connection with the given info.

Additional Inherited Members

Static Public Member Functions inherited from ConnectionFactory
static Buffer< ConnectionCategoryAvailableConnectionCategories ()
 Returns all connection categories from all registered factories.
static Buffer< ConnectionInfoAvailableConnections (const ConnectionSearchParameters &params)
 Discovers available connections across all registered factories.
static ConnectionBackendCreateConnection (const ConnectionInfo &request)
 Creates a ConnectionBackend by searching all registered factories for one that handles the request.
static void RegisterConnectionFactory (ConnectionFactory *factory)
 Registers a ConnectionFactory so it can be used to create connections.
Static Protected Attributes inherited from ConnectionFactory
static Buffer< ConnectionFactory * > s_registered_factories
 All registered connection factories.

Detailed Description

A ConnectionFactory that enables the creation of a BluetoothConnection for interfacing with a QBluetoothSocket.


Definition at line 101 of file BluetoothConnection.h.

Member Function Documentation

◆ availableConnectionCategories()

virtual Buffer< ConnectionCategory > BluetoothConnectionFactory::availableConnectionCategories ( )
overridevirtual

Returns the categories of connections this factory can provide.

Returns
A buffer of ConnectionCategory values supported by this factory.

Implements ConnectionFactory.

◆ availableConnections()

virtual Buffer< ConnectionInfo > BluetoothConnectionFactory::availableConnections ( const ConnectionSearchParameters & params)
overridevirtual

Discovers available Bluetooth connections matching the search parameters.

Parameters
[in]paramsThe search criteria for filtering available connections.
Returns
A buffer of ConnectionInfo objects describing available Bluetooth devices.

Implements ConnectionFactory.

◆ createConnection()

virtual ConnectionBackend * BluetoothConnectionFactory::createConnection ( const ConnectionInfo & request)
overridevirtual

Creates a new BluetoothConnection backend for the given connection info.

Parameters
[in]requestThe connection parameters for the new Bluetooth connection.
Returns
A pointer to the newly created BluetoothConnection.

Implements ConnectionFactory.

◆ handlesType()

virtual bool BluetoothConnectionFactory::handlesType ( const StringView & request) const
overridevirtual

Checks whether this factory handles the given connection type string.

Parameters
[in]requestThe connection type identifier to check.
Returns
True if this factory can create connections of the specified type.

Implements ConnectionFactory.


The documentation for this class was generated from the following file: