26 void _onSocketConnected();
27 void _onSocketDisconnected();
28 void _onSocketReadyRead();
29 void _onSocketBytesWritten(qint64 bytes);
30 void _onSocketErrorOccurred(QBluetoothSocket::SocketError socketError);
31 void _onClassicServiceDiscovered(
const QBluetoothServiceInfo &serviceInfo);
32 void _onClassicServiceDiscoveryFinished();
33 void _onClassicServiceDiscoveryCanceled();
34 void _onClassicServiceDiscoveryError(QBluetoothServiceDiscoveryAgent::Error
error);
37 void _setupClassicSocket();
38 void _startClassicServiceDiscovery();
39 void _writeClassicData(
const QByteArray &data);
41 QPointer<QBluetoothSocket> _socket;
42 QPointer<QBluetoothServiceDiscoveryAgent> _classicDiscovery;
43 QBluetoothServiceInfo _classicDiscoveredService;
45 static inline const QBluetoothUuid SPP_UUID{QBluetoothUuid::ServiceClassUuid::SerialPort};