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

Last change on this file since 10 was 10, checked in by Sanahuja Guillaume, 5 years ago

lic

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