close Warning: Can't use blame annotator:
svn blame failed on trunk/tools/FlairGCS/src/ConnectionLayout.h: 28 - Can't close file '/tmp/svn-G4qBAm': No space left on device

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

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

show rx rate in GCS

File size: 1.2 KB
RevLine 
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 <QTimer>
9#include "Layout.h"
10
11class UdtSocket;
12class DataRemote;
13
14class ConnectionLayout : public Layout {
15 Q_OBJECT
16
17public:
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
26private:
27 static int uncompressBuffer(char *in, ssize_t in_size, char **out,
28 ssize_t *out_size);
29 void handleUncompressedFrame(char *buf, ssize_t size);
30 void drawDatas(char *buf, int buf_size, uint16_t period,
31 bool big_endian = false);
32 bool isRemoteNameDefined;
33 QString remoteName;
34 UdtSocket *socket;
35 QList<DataRemote *> dataremotes;
36 unsigned int total_received;
37 QTimer *receive_timer;
38
39private slots:
40 void receive(char *buf, int size);
41 void computeRxRate(void);
42
43signals:
44 void setRemoteName(QString name);
45 void computedRxRate(float rxRate);
46};
47
48#endif // CONNECTIONLAYOUT_H
Note: See TracBrowser for help on using the repository browser.