diff --git a/spwplugin/spwplugin.cpp b/spwplugin/spwplugin.cpp --- a/spwplugin/spwplugin.cpp +++ b/spwplugin/spwplugin.cpp @@ -5,12 +5,13 @@ ----------------------------------------------------------------------------*/ #include "spwplugin.h" #include "stardundeespw_usb.h" - +#include spwplugin::spwplugin(QWidget *parent):socexplorerplugin(parent,true) { Q_UNUSED(parent) this->bridge = new stardundeeSPW_USB(this); + this->scanDone = false; if(this->bridge->connectBridge()) { this->Connected = true; @@ -35,6 +36,8 @@ unsigned int spwplugin::Read(unsigned in return 0; } + + unsigned int spwplugin::Write(unsigned int *Value,unsigned int count, unsigned int address) { if(Connected) diff --git a/spwplugin/spwplugin.h b/spwplugin/spwplugin.h --- a/spwplugin/spwplugin.h +++ b/spwplugin/spwplugin.h @@ -34,10 +34,12 @@ public: 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); + signals: private: abstractSpwBridge* bridge; + bool scanDone; };