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 "options.h"
|
---|
10 | #include "pppClient.h"
|
---|
11 |
|
---|
12 | namespace BNC {
|
---|
13 |
|
---|
14 | class t_pppEpoData {
|
---|
15 | public:
|
---|
16 | t_pppEpoData() {}
|
---|
17 | ~t_pppEpoData() {
|
---|
18 | for (unsigned ii = 0; ii < _pppSatObs.size(); ii++) {
|
---|
19 | delete _pppSatObs[ii];
|
---|
20 | }
|
---|
21 | }
|
---|
22 | bncTime _time;
|
---|
23 | std::vector<t_pppSatObs*> _pppSatObs;
|
---|
24 | };
|
---|
25 |
|
---|
26 | class t_pppRun : public QObject {
|
---|
27 | Q_OBJECT
|
---|
28 | public:
|
---|
29 | t_pppRun(const t_options* opt);
|
---|
30 | ~t_pppRun();
|
---|
31 |
|
---|
32 | signals:
|
---|
33 | void newMessage(QByteArray msg, bool showOnScreen);
|
---|
34 |
|
---|
35 | public slots:
|
---|
36 | void slotNewEphGPS(gpsephemeris gpseph);
|
---|
37 | void slotNewEphGlonass(glonassephemeris gloeph);
|
---|
38 | void slotNewEphGalileo(galileoephemeris galeph);
|
---|
39 | void slotNewCorrections(QStringList corrList);
|
---|
40 | void slotNewObs(QByteArray staID, QList<t_obs> obsList);
|
---|
41 |
|
---|
42 | private:
|
---|
43 | QMutex _mutex;
|
---|
44 | const t_options* _opt;
|
---|
45 | t_pppClient* _pppClient;
|
---|
46 | std::deque<t_pppEpoData*> _pppEpochs;
|
---|
47 | };
|
---|
48 |
|
---|
49 | class t_pppThread : public QThread {
|
---|
50 | Q_OBJECT
|
---|
51 | public:
|
---|
52 | t_pppThread(const t_options* opt);
|
---|
53 | ~t_pppThread();
|
---|
54 | virtual void run();
|
---|
55 |
|
---|
56 | signals:
|
---|
57 | void newMessage(QByteArray msg, bool showOnScreen);
|
---|
58 |
|
---|
59 | private:
|
---|
60 | const t_options* _opt;
|
---|
61 | t_pppRun* _pppRun;
|
---|
62 | };
|
---|
63 |
|
---|
64 | }
|
---|
65 |
|
---|
66 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.