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

Last change on this file since 18 was 15, checked in by Bayard Gildas, 9 years ago

sources reformatted with flair-format-dir script

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 Q_OBJECT
15
16public:
17 ConnectionLayout(UdtSocket *socket, QString name);
18 ~ConnectionLayout();
19 void XmlToSend(QDomDocument doc);
20 void addDataRemote(DataRemote *data);
21 void removeDataRemote(DataRemote *data);
22 void LoadXml(QDomDocument to_parse);
23 QString getRemoteName();
24
25private:
26 static int uncompressBuffer(char *in, ssize_t in_size, char **out,
27 ssize_t *out_size);
28 void handleUncompressedFrame(char *buf, ssize_t size);
29 void drawDatas(char *buf, int buf_size, uint16_t period,
30 bool big_endian = false);
31 bool isRemoteNameDefined;
32 QString remoteName;
33 UdtSocket *socket;
34 QList<DataRemote *> dataremotes;
35
36private slots:
37 void receive(char *buf, int size);
38
39signals:
40 void setRemoteName(QString name);
41};
42
43#endif // CONNECTIONLAYOUT_H
Note: See TracBrowser for help on using the repository browser.