API Documentation
Loading...
Searching...
No Matches
ConnectionBackend Class Referenceabstract

#include <Connection.h>

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

Signals

void dataAvailableSignal ()
 
void connectionStateChangedSignal (ConnectionState state)
 

Public Member Functions

 ConnectionBackend (ProgressInfo *log)
 
virtual uint04 peek (char *s, uint04 size=Constant< uint04 >::Max) const =0
 
virtual uint04 rx (char *s, uint04 max_size=Constant< uint04 >::Max)=0
 
virtual void tx (const String &command)=0
 
virtual bool open (const ConnectionInfo &request)=0
 
virtual void close ()=0
 
virtual bool isOpen () const =0
 
virtual bool waitForReadyRead (const TimeSpan &span)=0
 
virtual TranslatedString lastError () const =0
 
virtual uint04 bytesAvailable () const =0
 
virtual String threadID () const
 

Protected Attributes

ProgressInfom_log
 

Constructor & Destructor Documentation

◆ ConnectionBackend()

Member Function Documentation

◆ bytesAvailable()

virtual uint04 bytesAvailable ( ) const
pure virtual

◆ close()

virtual void close ( )
pure virtual

◆ connectionStateChangedSignal

void connectionStateChangedSignal ( ConnectionState state)
signal

◆ dataAvailableSignal

void dataAvailableSignal ( )
signal

◆ isOpen()

virtual bool isOpen ( ) const
pure virtual

◆ lastError()

virtual TranslatedString lastError ( ) const
pure virtual

◆ open()

virtual bool open ( const ConnectionInfo & request)
pure virtual

◆ peek()

virtual uint04 peek ( char * s,
uint04 size = Constantuint04 >::Max ) const
pure virtual

◆ rx()

virtual uint04 rx ( char * s,
uint04 max_size = Constantuint04 >::Max )
pure virtual

◆ threadID()

virtual String threadID ( ) const
inlinevirtual

Reimplemented in SerialPortConnection.

◆ tx()

virtual void tx ( const String & command)
pure virtual

◆ waitForReadyRead()

virtual bool waitForReadyRead ( const TimeSpan & span)
pure virtual

Member Data Documentation

◆ m_log

ProgressInfo* m_log
protected

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