![]() |
API Documentation
|
A ConnectionBackend that provides logic for interfacing with a QBluetooth connection. More...
#include <BluetoothConnection.h>
Public Member Functions | |
| BluetoothConnection (ProgressInfo *log) | |
| virtual uint04 | bytesAvailable () const override |
| virtual void | close () override |
| void | handleBluetoothError (int error) |
| virtual bool | isOpen () const override |
| virtual TranslatedString | lastError () const override |
| virtual bool | open (const ConnectionInfo &request) override |
| virtual bool | openInMainThread (const ConnectionInfo &request) |
| virtual uint04 | peek (char *, uint04 size=Constant< uint04 >::Max) const override |
| virtual uint04 | rx (char *s, uint04 size=Constant< uint04 >::Max) override |
| virtual bool | setBluetoothPort (QBluetoothSocket *bluetooth_port, const ConnectionInfo &info) |
| virtual void | tx (const String &command) override |
| virtual bool | waitForReadyRead (const TimeSpan &span) override |
| ~BluetoothConnection () | |
Public Member Functions inherited from ConnectionBackend | |
| ConnectionBackend (ProgressInfo *log) | |
| virtual String | threadID () const |
Protected Attributes | |
| TranslatedString | m_last_error |
| QBluetoothSocket * | m_socket = nullptr |
Protected Attributes inherited from ConnectionBackend | |
| ProgressInfo * | m_log |
Additional Inherited Members | |
Signals inherited from ConnectionBackend | |
| void | connectionStateChangedSignal (ConnectionState state) |
| void | dataAvailableSignal () |
A ConnectionBackend that provides logic for interfacing with a QBluetooth connection.
| BluetoothConnection | ( | ProgressInfo * | log | ) |
| ~BluetoothConnection | ( | ) |
|
overridevirtual |
Implements ConnectionBackend.
|
overridevirtual |
Implements ConnectionBackend.
| void handleBluetoothError | ( | int | error | ) |
|
overridevirtual |
Implements ConnectionBackend.
|
overridevirtual |
Implements ConnectionBackend.
|
overridevirtual |
Implements ConnectionBackend.
|
virtual |
Implements ConnectionBackend.
Implements ConnectionBackend.
|
virtual |
|
overridevirtual |
Implements ConnectionBackend.
|
overridevirtual |
Implements ConnectionBackend.
|
protected |
|
protected |