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