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