source:
ntrip/trunk/BNC/src/PPP/pppThread.h@
5768
| Last change on this file since 5768 was 5766, checked in by , 12 years ago | |
|---|---|
| File size: 974 bytes | |
| Rev | Line | |
|---|---|---|
| [5680] | 1 | #ifndef PPPTHREAD_H |
| 2 | #define PPPTHREAD_H | |
| [4757] | 3 | |
| 4 | #include <vector> | |
| [5719] | 5 | #include <QtCore> |
| [4757] | 6 | |
| [5738] | 7 | #include "GPSDecoder.h" |
| [5719] | 8 | #include "options.h" |
| [5742] | 9 | #include "pppClient.h" |
| [4757] | 10 | |
| [5719] | 11 | namespace BNC { |
| 12 | ||
| [5731] | 13 | class t_pppRun : public QObject { |
| [4757] | 14 | Q_OBJECT |
| 15 | public: | |
| [5736] | 16 | t_pppRun(const t_options* opt); |
| [5731] | 17 | ~t_pppRun(); |
| [4757] | 18 | |
| [5766] | 19 | signals: |
| 20 | void newMessage(QByteArray msg, bool showOnScreen); | |
| 21 | ||
| [4757] | 22 | public slots: |
| 23 | void slotNewEphGPS(gpsephemeris gpseph); | |
| 24 | void slotNewEphGlonass(glonassephemeris gloeph); | |
| 25 | void slotNewEphGalileo(galileoephemeris galeph); | |
| [5732] | 26 | void slotNewCorrections(QStringList corrList); |
| [5525] | 27 | void slotNewObs(QByteArray staID, QList<t_obs> obsList); |
| [4757] | 28 | |
| 29 | private: | |
| [5736] | 30 | QMutex _mutex; |
| 31 | const t_options* _opt; | |
| [5742] | 32 | t_pppClient* _pppClient; |
| [4757] | 33 | }; |
| 34 | ||
| [5731] | 35 | class t_pppThread : public QThread { |
| [5766] | 36 | Q_OBJECT |
| [5731] | 37 | public: |
| 38 | t_pppThread(const t_options* opt); | |
| 39 | ~t_pppThread(); | |
| 40 | virtual void run(); | |
| 41 | ||
| [5766] | 42 | signals: |
| 43 | void newMessage(QByteArray msg, bool showOnScreen); | |
| 44 | ||
| [5731] | 45 | private: |
| [5736] | 46 | const t_options* _opt; |
| 47 | t_pppRun* _pppRun; | |
| [5731] | 48 | }; |
| 49 | ||
| [5719] | 50 | } |
| 51 | ||
| [4757] | 52 | #endif |
Note:
See TracBrowser
for help on using the repository browser.
