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 |
|
---|
9 | namespace GnssCenter {
|
---|
10 | class t_worldPlot;
|
---|
11 | class t_thriftClient;
|
---|
12 | class t_thriftResult;
|
---|
13 | }
|
---|
14 |
|
---|
15 | namespace GnssCenter {
|
---|
16 |
|
---|
17 | class t_monitor : public QMainWindow {
|
---|
18 | Q_OBJECT
|
---|
19 | public:
|
---|
20 | t_monitor();
|
---|
21 | ~t_monitor();
|
---|
22 |
|
---|
23 | void putThriftResults(std::vector<t_thriftResult*>* results);
|
---|
24 |
|
---|
25 | private slots:
|
---|
26 | void slotConfig();
|
---|
27 | void slotStartThrift();
|
---|
28 | void slotStopThrift();
|
---|
29 | void slotThriftFinished();
|
---|
30 | void slotPlotResults();
|
---|
31 | void slotMessage(QByteArray msg);
|
---|
32 |
|
---|
33 | private:
|
---|
34 | void readSettings();
|
---|
35 | void setTitle();
|
---|
36 | void enableActions();
|
---|
37 | QMutex _mutex;
|
---|
38 | QTabWidget* _tabWidget;
|
---|
39 | QAction* _actConfig;
|
---|
40 | QAction* _actStartThrift;
|
---|
41 | QAction* _actStopThrift;
|
---|
42 | QString _host;
|
---|
43 | QString _port;
|
---|
44 | t_thriftClient* _thriftClient;
|
---|
45 | t_worldPlot* _plotStations;
|
---|
46 | t_worldPlot* _plotSatellites;
|
---|
47 | std::vector<t_thriftResult*>* _results;
|
---|
48 | };
|
---|
49 |
|
---|
50 | class t_monitorFactory : public QObject, public t_pluginFactoryInterface {
|
---|
51 | Q_OBJECT
|
---|
52 | Q_INTERFACES(GnssCenter::t_pluginFactoryInterface)
|
---|
53 | public:
|
---|
54 | virtual QWidget* create() {return new t_monitor();}
|
---|
55 | virtual QString getName() const {return pluginName;}
|
---|
56 | };
|
---|
57 |
|
---|
58 | } // namespace GnssCenter
|
---|
59 |
|
---|
60 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.