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

Last change on this file since 10492 was 5486, checked in by mervart, 11 years ago
File size: 1.6 KB
Line 
1#ifndef GnssCenter_MONITOR_H
2#define GnssCenter_MONITOR_H
3
4#include <QtGui>
5#include <QWhatsThis>
6#include "plugininterface.h"
7#include "const.h"
8
9namespace GnssCenter {
10 class t_worldPlot;
11 class t_thriftClient;
12 class t_thriftResult;
13 class t_thriftSatellite;
14}
15
16namespace GnssCenter {
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 void putThriftSatellites(std::vector<t_thriftSatellite*>* satellites);
26
27 private slots:
28 void slotConfig();
29 void slotStartThrift();
30 void slotStopThrift();
31 void slotThriftFinished();
32 void slotPlot();
33 void slotMessage(QByteArray msg);
34
35 private:
36 void readSettings();
37 void setTitle();
38 void enableActions();
39 void plotResults();
40 void plotSatellites();
41 QMutex _mutex;
42 QTabWidget* _tabWidget;
43 QAction* _actConfig;
44 QAction* _actStartThrift;
45 QAction* _actStopThrift;
46 QString _host;
47 QString _port;
48 t_thriftClient* _thriftClient;
49 t_worldPlot* _plotStations;
50 t_worldPlot* _plotSatellites;
51 std::vector<t_thriftResult*>* _results;
52 std::vector<t_thriftSatellite*>* _satellites;
53};
54
55class t_monitorFactory : public QObject, public t_pluginFactoryInterface {
56 Q_OBJECT
57 Q_INTERFACES(GnssCenter::t_pluginFactoryInterface)
58 public:
59 virtual QWidget* create() {return new t_monitor();}
60 virtual QString getName() const {return pluginName;}
61};
62
63} // namespace GnssCenter
64
65#endif
Note: See TracBrowser for help on using the repository browser.