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

Last change on this file since 5482 was 5482, checked in by mervart, 11 years ago
File size: 1.4 KB
RevLine 
[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]9namespace GnssCenter {
[5447]10 class t_worldPlot;
11 class t_thriftClient;
12 class t_thriftResult;
[5420]13}
14
[5001]15namespace GnssCenter {
[4858]16
[5445]17class t_monitor : public QMainWindow {
[4836]18 Q_OBJECT
19 public:
[5445]20 t_monitor();
21 ~t_monitor();
[5012]22
[5427]23 void putThriftResults(std::vector<t_thriftResult*>* results);
[4836]24
[5422]25 private slots:
[5455]26 void slotConfig();
[5422]27 void slotStartThrift();
[5430]28 void slotStopThrift();
[5431]29 void slotThriftFinished();
[5429]30 void slotPlotResults();
[5480]31 void slotMessage(QByteArray msg);
[5422]32
[4836]33 private:
[5474]34 void readSettings();
[5457]35 void setTitle();
[5474]36 void enableActions();
[5429]37 QMutex _mutex;
[5449]38 QTabWidget* _tabWidget;
[5455]39 QAction* _actConfig;
40 QAction* _actStartThrift;
41 QAction* _actStopThrift;
[5474]42 QString _host;
43 QString _port;
[5427]44 t_thriftClient* _thriftClient;
[5482]45 t_worldPlot* _plotStations;
46 t_worldPlot* _plotSatellites;
[5427]47 std::vector<t_thriftResult*>* _results;
[4836]48};
49
[5445]50class t_monitorFactory : public QObject, public t_pluginFactoryInterface {
[5053]51 Q_OBJECT
52 Q_INTERFACES(GnssCenter::t_pluginFactoryInterface)
53 public:
[5445]54 virtual QWidget* create() {return new t_monitor();}
[5452]55 virtual QString getName() const {return pluginName;}
[5053]56};
57
[5001]58} // namespace GnssCenter
[4858]59
[4836]60#endif
Note: See TracBrowser for help on using the repository browser.