Changeset 15 in flair-src for trunk/tools/FlairGCS/src/ConnectionLayout.h


Ignore:
Timestamp:
Apr 8, 2016, 3:40:57 PM (5 years ago)
Author:
Bayard Gildas
Message:

sources reformatted with flair-format-dir script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/FlairGCS/src/ConnectionLayout.h

    r10 r15  
    1111class DataRemote;
    1212
    13 class ConnectionLayout:  public Layout
    14 {
    15     Q_OBJECT
     13class ConnectionLayout : public Layout {
     14  Q_OBJECT
    1615
    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();
     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();
    2524
    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;
     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;
    3435
    35     private slots:
    36         void receive(char* buf,int size);
     36private slots:
     37  void receive(char *buf, int size);
    3738
    38     signals:
    39         void setRemoteName(QString name);
     39signals:
     40  void setRemoteName(QString name);
    4041};
    4142
Note: See TracChangeset for help on using the changeset viewer.