API Documentation
|
#include <BluetoothConnection.h>
Public Member Functions | |
BluetoothConnection (ProgressInfo *log) | |
~BluetoothConnection () | |
virtual uint04 | peek (char *, uint04 size=Constant< uint04 >::Max) const override |
virtual uint04 | rx (char *s, uint04 size=Constant< uint04 >::Max) override |
virtual void | tx (const String &command) override |
virtual bool | open (const ConnectionInfo &request) override |
virtual bool | openInMainThread (const ConnectionInfo &request) |
virtual void | close () override |
virtual bool | isOpen () const override |
virtual uint04 | bytesAvailable () const override |
virtual TranslatedString | lastError () const override |
virtual bool | setBluetoothPort (QBluetoothSocket *bluetooth_port, const ConnectionInfo &info) |
virtual bool | waitForReadyRead (const TimeSpan &span) override |
void | handleBluetoothError (int error) |
Public Member Functions inherited from ConnectionBackend | |
ConnectionBackend (ProgressInfo *log) | |
virtual String | threadID () const |
Protected Attributes | |
QBluetoothSocket * | m_socket = nullptr |
TranslatedString | m_last_error |
Protected Attributes inherited from ConnectionBackend | |
ProgressInfo * | m_log |
Additional Inherited Members | |
Signals inherited from ConnectionBackend | |
void | dataAvailableSignal () |
void | connectionStateChangedSignal (ConnectionState state) |
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 |