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

Last change on this file since 245 was 234, checked in by Sanahuja Guillaume, 7 years ago

create file oscket only when necessary

File size: 961 bytes
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 getName();
24 QString getUDTStats();
25 static QString getDocRootName(char* buf, int size);
26
27private:
28 void drawDatas(char *buf, int buf_size, uint16_t period,
29 bool big_endian = false);
30 QString name;
31 UdtSocket *socket;
32 QList<DataRemote *> dataremotes;
33
34private slots:
35 void receive(char *buf, int size);
36
37signals:
38 void UDTStats(QString stats);
39};
40
41#endif // CONNECTIONLAYOUT_H
Note: See TracBrowser for help on using the repository browser.