source: flair-src/trunk/tools/FlairGCS/src/ConnectionLayout.h@ 9

Last change on this file since 9 was 9, checked in by Sanahuja Guillaume, 8 years ago

gcs

File size: 1018 bytes
Line 
1#ifndef CONNECTIONLAYOUT_H
2#define CONNECTIONLAYOUT_H
3
4#include "Layout.h"
5
6class UdtSocket;
7class DataRemote;
8
9class ConnectionLayout: public Layout
10{
11 Q_OBJECT
12
13 public:
14 ConnectionLayout(UdtSocket* socket,QString name);
15 ~ConnectionLayout();
16 void XmlToSend(QDomDocument doc);
17 void addDataRemote(DataRemote* data);
18 void removeDataRemote(DataRemote* data);
19 void LoadXml(QDomDocument to_parse);
20 QString getRemoteName();
21
22 private:
23 static int uncompressBuffer(char *in, ssize_t in_size,char **out,ssize_t *out_size);
24 void handleUncompressedFrame(char *buf,ssize_t size);
25 void drawDatas(char* buf,int buf_size,uint16_t period,bool big_endian=false);
26 bool isRemoteNameDefined;
27 QString remoteName;
28 UdtSocket* socket;
29 QList<DataRemote*> dataremotes;
30
31 private slots:
32 void receive(char* buf,int size);
33
34 signals:
35 void setRemoteName(QString name);
36};
37
38#endif // CONNECTIONLAYOUT_H
Note: See TracBrowser for help on using the repository browser.