Rev | 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 |
|
---|
| 10 | class UdtSocket;
|
---|
| 11 | class DataRemote;
|
---|
| 12 |
|
---|
| 13 | class 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.