6 #ifndef REALTIMESOURCE_H_
7 #define REALTIMESOURCE_H_
9 #include "ocurvesconfig.h"
24 virtual QString
name()
const = 0;
35 virtual int send(
const QByteArray &buffer) = 0;
39 virtual int read(QByteArray &buffer) = 0;
43 #endif // REALTIMESOURCE_H_
virtual ~RealTimeConnection()
Virtual destructor.
Definition: realtimeconnection.h:20
virtual QString name() const =0
The source/connection name.
virtual bool isConnected() const =0
Returns true if the source is connected.
virtual int send(const QByteArray &buffer)=0
Send the given buffer to the source.
virtual int read(QByteArray &buffer)=0
Read data into the given buffer.
This is the base class for data source which provides data in real time.
Definition: realtimeconnection.h:16
virtual void disconnect()=0
Request to disconnect the source.