source: flair-src/trunk/tools/FlairGCS/src/DataRemote.h@ 9

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

gcs

File size: 886 bytes
Line 
1#ifndef DATAREMOTE_H
2#define DATAREMOTE_H
3
4#include <stdint.h>
5#include "XmlWidget.h"
6#include <QPoint>
7
8class QMenu;
9class QAction;
10
11class DataRemote: public XmlWidget
12{
13 public:
14 DataRemote(QString name,QString type,XmlWidget* parent,bool enabled,int period);
15 ~DataRemote();
16 uint16_t RefreshRate_ms(void);
17 bool IsEnabled(void);
18 int ReceiveSize(void);
19 virtual void BufEvent(char** buf,int *buf_size,uint16_t period,bool big_endian)=0;
20 void appendmenu(QMenu * menu);
21 QAction* execmenu(QWidget* parent,QMenu * menu,QPoint point);
22
23 protected:
24 bool auto_refresh;
25 bool is_logging;
26 double refresh_rate;//en s
27 int receivesize;
28
29 void XmlSetup(QDomElement dom);
30
31 private:
32 void SendPeriod(int period,bool auto_refresh);
33 QAction *b,*c,*d;
34};
35
36#endif // DATAREMOTE_H
Note: See TracBrowser for help on using the repository browser.