Last change
on this file since 218 was 15, checked in by Bayard Gildas, 9 years ago |
sources reformatted with flair-format-dir script
|
File size:
974 bytes
|
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 |
|
---|
12 | class QMenu;
|
---|
13 | class QAction;
|
---|
14 |
|
---|
15 | class DataRemote : public XmlWidget {
|
---|
16 | public:
|
---|
17 | DataRemote(QString name, QString type, XmlWidget *parent, bool enabled,
|
---|
18 | 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,
|
---|
24 | bool big_endian) = 0;
|
---|
25 | void appendmenu(QMenu *menu);
|
---|
26 | QAction *execmenu(QWidget *parent, QMenu *menu, QPoint point);
|
---|
27 |
|
---|
28 | protected:
|
---|
29 | bool auto_refresh;
|
---|
30 | bool is_logging;
|
---|
31 | double refresh_rate; // en s
|
---|
32 | int receivesize;
|
---|
33 |
|
---|
34 | void XmlSetup(QDomElement dom);
|
---|
35 |
|
---|
36 | private:
|
---|
37 | void SendPeriod(int period, bool auto_refresh);
|
---|
38 | QAction *b, *c, *d;
|
---|
39 | };
|
---|
40 |
|
---|
41 | #endif // DATAREMOTE_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.