source: ntrip/trunk/GnssCenter/monitor/monitor.h@ 5452

Last change on this file since 5452 was 5452, checked in by mervart, 11 years ago
File size: 1.1 KB
Line 
1#ifndef GnssCenter_MONITOR_H
2#define GnssCenter_MONITOR_H
3
4#include <QtGui>
5#include <QWhatsThis>
6#include "plugininterface.h"
7
8namespace GnssCenter {
9 class t_worldPlot;
10 class t_thriftClient;
11 class t_thriftResult;
12}
13
14namespace GnssCenter {
15
16const static QString pluginName = "RTNet Monitor";
17
18class t_monitor : public QMainWindow {
19 Q_OBJECT
20 public:
21 t_monitor();
22 ~t_monitor();
23
24 void putThriftResults(std::vector<t_thriftResult*>* results);
25
26 private slots:
27 void slotStartThrift();
28 void slotStopThrift();
29 void slotThriftFinished();
30 void slotPlotResults();
31
32 private:
33 QMutex _mutex;
34 QTabWidget* _tabWidget;
35 t_worldPlot* _plot;
36 t_thriftClient* _thriftClient;
37 std::vector<t_thriftResult*>* _results;
38};
39
40class t_monitorFactory : public QObject, public t_pluginFactoryInterface {
41 Q_OBJECT
42 Q_INTERFACES(GnssCenter::t_pluginFactoryInterface)
43 public:
44 virtual QWidget* create() {return new t_monitor();}
45 virtual QString getName() const {return pluginName;}
46};
47
48} // namespace GnssCenter
49
50#endif
Note: See TracBrowser for help on using the repository browser.