diff --git a/spwplugin/GR-ESB/gr_esb_bridge.cpp b/spwplugin/GR-ESB/gr_esb_bridge.cpp --- a/spwplugin/GR-ESB/gr_esb_bridge.cpp +++ b/spwplugin/GR-ESB/gr_esb_bridge.cpp @@ -5,6 +5,11 @@ GR_ESB_bridge::GR_ESB_bridge(socexplorer abstractSpwBridge(parent) { this->p_GUI = new GR_ESB_ui(); + this->soc = new QTcpSocket(this); +} + +GR_ESB_bridge::~GR_ESB_bridge() +{ } bool GR_ESB_bridge::connectBridge() diff --git a/spwplugin/GR-ESB/gr_esb_bridge.h b/spwplugin/GR-ESB/gr_esb_bridge.h --- a/spwplugin/GR-ESB/gr_esb_bridge.h +++ b/spwplugin/GR-ESB/gr_esb_bridge.h @@ -1,13 +1,14 @@ #ifndef GR_ESB_BRIDGE_H #define GR_ESB_BRIDGE_H #include "abstractspwbridge.h" +#include class GR_ESB_bridge : public abstractSpwBridge { Q_OBJECT public: explicit GR_ESB_bridge(socexplorerplugin *parent = 0); - + ~GR_ESB_bridge(); signals: @@ -17,7 +18,9 @@ public slots: unsigned int Write(unsigned int *Value,unsigned int count, unsigned int address=0); unsigned int Read(unsigned int *Value,unsigned int count, unsigned int address=0); int pushRMAPPacket(char* packet,int size); + void packetReceived(); + QTcpSocket* soc; };