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

Last change on this file since 10 was 10, checked in by Sanahuja Guillaume, 6 years ago

lic

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