##// END OF EJS Templates
Sync
Jeandet Alexis -
r23:c8236d174134 default
parent child
Show More
@@ -1,33 +1,38
1 #include "gr_esb_bridge.h"
1 #include "gr_esb_bridge.h"
2 #include "gr_esb_ui.h"
2 #include "gr_esb_ui.h"
3
3
4 GR_ESB_bridge::GR_ESB_bridge(socexplorerplugin *parent) :
4 GR_ESB_bridge::GR_ESB_bridge(socexplorerplugin *parent) :
5 abstractSpwBridge(parent)
5 abstractSpwBridge(parent)
6 {
6 {
7 this->p_GUI = new GR_ESB_ui();
7 this->p_GUI = new GR_ESB_ui();
8 this->soc = new QTcpSocket(this);
9 }
10
11 GR_ESB_bridge::~GR_ESB_bridge()
12 {
8 }
13 }
9
14
10 bool GR_ESB_bridge::connectBridge()
15 bool GR_ESB_bridge::connectBridge()
11 {
16 {
12
17
13 }
18 }
14
19
15 bool GR_ESB_bridge::disconnectBridge()
20 bool GR_ESB_bridge::disconnectBridge()
16 {
21 {
17
22
18 }
23 }
19
24
20 unsigned int GR_ESB_bridge::Write(unsigned int *Value, unsigned int count, unsigned int address)
25 unsigned int GR_ESB_bridge::Write(unsigned int *Value, unsigned int count, unsigned int address)
21 {
26 {
22
27
23 }
28 }
24
29
25 unsigned int GR_ESB_bridge::Read(unsigned int *Value, unsigned int count, unsigned int address)
30 unsigned int GR_ESB_bridge::Read(unsigned int *Value, unsigned int count, unsigned int address)
26 {
31 {
27
32
28 }
33 }
29
34
30 int GR_ESB_bridge::pushRMAPPacket(char *packet, int size)
35 int GR_ESB_bridge::pushRMAPPacket(char *packet, int size)
31 {
36 {
32
37
33 }
38 }
@@ -1,24 +1,27
1 #ifndef GR_ESB_BRIDGE_H
1 #ifndef GR_ESB_BRIDGE_H
2 #define GR_ESB_BRIDGE_H
2 #define GR_ESB_BRIDGE_H
3 #include "abstractspwbridge.h"
3 #include "abstractspwbridge.h"
4 #include <QTcpSocket>
4
5
5 class GR_ESB_bridge : public abstractSpwBridge
6 class GR_ESB_bridge : public abstractSpwBridge
6 {
7 {
7 Q_OBJECT
8 Q_OBJECT
8 public:
9 public:
9 explicit GR_ESB_bridge(socexplorerplugin *parent = 0);
10 explicit GR_ESB_bridge(socexplorerplugin *parent = 0);
10
11 ~GR_ESB_bridge();
11 signals:
12 signals:
12
13
13
14
14 public slots:
15 public slots:
15 bool connectBridge();
16 bool connectBridge();
16 bool disconnectBridge();
17 bool disconnectBridge();
17 unsigned int Write(unsigned int *Value,unsigned int count, unsigned int address=0);
18 unsigned int Write(unsigned int *Value,unsigned int count, unsigned int address=0);
18 unsigned int Read(unsigned int *Value,unsigned int count, unsigned int address=0);
19 unsigned int Read(unsigned int *Value,unsigned int count, unsigned int address=0);
19 int pushRMAPPacket(char* packet,int size);
20 int pushRMAPPacket(char* packet,int size);
21 void packetReceived();
20
22
23 QTcpSocket* soc;
21
24
22 };
25 };
23
26
24 #endif // GR_ESB_BRIDGE_H
27 #endif // GR_ESB_BRIDGE_H
General Comments 0
You need to be logged in to leave comments. Login now