|
|
|
@ -13,6 +13,9 @@
@@ -13,6 +13,9 @@
|
|
|
|
|
#include "LinkManager.h" |
|
|
|
|
#include "MG.h" |
|
|
|
|
|
|
|
|
|
#include "errno.h" |
|
|
|
|
#include "OpalApi.h" |
|
|
|
|
|
|
|
|
|
class OpalLink : public LinkInterface |
|
|
|
|
{ |
|
|
|
|
Q_OBJECT |
|
|
|
@ -47,29 +50,11 @@ class OpalLink : public LinkInterface
@@ -47,29 +50,11 @@ class OpalLink : public LinkInterface
|
|
|
|
|
public slots: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
virtual void writeBytes(const char *bytes, qint64 length) = 0; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
virtual void readBytes(char *bytes, qint64 maxLength) = 0; |
|
|
|
|
|
|
|
|
|
signals: |
|
|
|
|
|
|
|
|
|
void bytesReady(LinkInterface* link); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void bytesReceived(LinkInterface* link, QByteArray data); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void connected(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void disconnected(); |
|
|
|
|
|
|
|
|
|
void writeBytes(const char *bytes, qint64 length); |
|
|
|
|
|
|
|
|
|
void connected(bool connected); |
|
|
|
|
|
|
|
|
|
void readBytes(char *bytes, qint64 maxLength); |
|
|
|
|
|
|
|
|
|
void nameChanged(QString name); |
|
|
|
|
|
|
|
|
|
public: |
|
|
|
|
OpalLink(); |
|
|
|
|