source: ntrip/trunk/BNC/src/PPP/pppThread.h@ 5850

Last change on this file since 5850 was 5850, checked in by mervart, 10 years ago
File size: 1.4 KB
Line 
1#ifndef PPPTHREAD_H
2#define PPPTHREAD_H
3
4#include <deque>
5#include <vector>
6#include <QtCore>
7
8#include "GPSDecoder.h"
9#include "pppOptions.h"
10#include "pppClient.h"
11
12namespace BNC_PPP {
13
14class t_pppRun : public QObject {
15 Q_OBJECT
16 public:
17 t_pppRun(const t_pppOptions* opt);
18 ~t_pppRun();
19
20 signals:
21 void newMessage(QByteArray msg, bool showOnScreen);
22
23 public slots:
24 void slotNewEphGPS(gpsephemeris gpseph);
25 void slotNewEphGlonass(glonassephemeris gloeph);
26 void slotNewEphGalileo(galileoephemeris galeph);
27 void slotNewCorrections(QStringList corrList);
28 void slotNewObs(QByteArray staID, QList<t_obs> obsList);
29
30 private:
31 class t_epoData {
32 public:
33 t_epoData() {}
34 ~t_epoData() {
35 for (unsigned ii = 0; ii < _satObs.size(); ii++) {
36 delete _satObs[ii];
37 }
38 }
39 bncTime _time;
40 std::vector<t_satObs*> _satObs;
41 };
42
43 QMutex _mutex;
44 const t_pppOptions* _opt;
45 t_pppClient* _pppClient;
46 std::deque<t_epoData*> _epoData;
47 int _lastOrbCorrIOD[t_prn::MAXPRN+1];
48 double _lastClkCorrValue[t_prn::MAXPRN+1];
49 bncTime _lastClkCorrTime;
50};
51
52class t_pppThread : public QThread {
53 Q_OBJECT
54 public:
55 t_pppThread(const t_pppOptions* opt);
56 ~t_pppThread();
57 virtual void run();
58
59 signals:
60 void newMessage(QByteArray msg, bool showOnScreen);
61
62 private:
63 const t_pppOptions* _opt;
64 t_pppRun* _pppRun;
65};
66
67}
68
69#endif
Note: See TracBrowser for help on using the repository browser.