source:
ntrip/trunk/GnssCenter/monitor/monitor.h@
7420
| Last change on this file since 7420 was 5486, checked in by , 12 years ago | |
|---|---|
| File size: 1.6 KB | |
| Rev | Line | |
|---|---|---|
| [5445] | 1 | #ifndef GnssCenter_MONITOR_H |
| 2 | #define GnssCenter_MONITOR_H | |
| [4836] | 3 | |
| 4 | #include <QtGui> | |
| 5 | #include <QWhatsThis> | |
| [5011] | 6 | #include "plugininterface.h" |
| [5456] | 7 | #include "const.h" |
| [4836] | 8 | |
| [5420] | 9 | namespace GnssCenter { |
| [5447] | 10 | class t_worldPlot; |
| 11 | class t_thriftClient; | |
| 12 | class t_thriftResult; | |
| [5486] | 13 | class t_thriftSatellite; |
| [5420] | 14 | } |
| 15 | ||
| [5001] | 16 | namespace GnssCenter { |
| [4858] | 17 | |
| [5445] | 18 | class t_monitor : public QMainWindow { |
| [4836] | 19 | Q_OBJECT |
| 20 | public: | |
| [5445] | 21 | t_monitor(); |
| 22 | ~t_monitor(); | |
| [5012] | 23 | |
| [5427] | 24 | void putThriftResults(std::vector<t_thriftResult*>* results); |
| [5486] | 25 | void putThriftSatellites(std::vector<t_thriftSatellite*>* satellites); |
| [4836] | 26 | |
| [5422] | 27 | private slots: |
| [5455] | 28 | void slotConfig(); |
| [5422] | 29 | void slotStartThrift(); |
| [5430] | 30 | void slotStopThrift(); |
| [5431] | 31 | void slotThriftFinished(); |
| [5486] | 32 | void slotPlot(); |
| [5480] | 33 | void slotMessage(QByteArray msg); |
| [5422] | 34 | |
| [4836] | 35 | private: |
| [5474] | 36 | void readSettings(); |
| [5457] | 37 | void setTitle(); |
| [5474] | 38 | void enableActions(); |
| [5486] | 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; | |
| [4836] | 53 | }; |
| 54 | ||
| [5445] | 55 | class t_monitorFactory : public QObject, public t_pluginFactoryInterface { |
| [5053] | 56 | Q_OBJECT |
| 57 | Q_INTERFACES(GnssCenter::t_pluginFactoryInterface) | |
| 58 | public: | |
| [5445] | 59 | virtual QWidget* create() {return new t_monitor();} |
| [5452] | 60 | virtual QString getName() const {return pluginName;} |
| [5053] | 61 | }; |
| 62 | ||
| [5001] | 63 | } // namespace GnssCenter |
| [4858] | 64 | |
| [4836] | 65 | #endif |
Note:
See TracBrowser
for help on using the repository browser.
