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

Last change on this file since 5810 was 5810, checked in by mervart, 10 years ago
File size: 1.3 KB
RevLine 
[5680]1#ifndef PPPTHREAD_H
2#define PPPTHREAD_H
[4757]3
[5791]4#include <deque>
[4757]5#include <vector>
[5719]6#include <QtCore>
[4757]7
[5738]8#include "GPSDecoder.h"
[5810]9#include "pppOptions.h"
[5742]10#include "pppClient.h"
[4757]11
[5719]12namespace BNC {
13
[5791]14class 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
[5731]26class t_pppRun : public QObject {
[4757]27 Q_OBJECT
28 public:
[5810]29 t_pppRun(const t_pppOptions* opt);
[5731]30 ~t_pppRun();
[4757]31
[5766]32 signals:
33 void newMessage(QByteArray msg, bool showOnScreen);
34
[4757]35 public slots:
36 void slotNewEphGPS(gpsephemeris gpseph);
37 void slotNewEphGlonass(glonassephemeris gloeph);
38 void slotNewEphGalileo(galileoephemeris galeph);
[5732]39 void slotNewCorrections(QStringList corrList);
[5525]40 void slotNewObs(QByteArray staID, QList<t_obs> obsList);
[4757]41
42 private:
[5791]43 QMutex _mutex;
[5810]44 const t_pppOptions* _opt;
[5791]45 t_pppClient* _pppClient;
46 std::deque<t_pppEpoData*> _pppEpochs;
[4757]47};
48
[5810]49class t_pppInclude.hread : public QThread {
[5766]50 Q_OBJECT
[5731]51 public:
[5810]52 t_pppInclude.hread(const t_pppOptions* opt);
53 ~t_pppInclude.hread();
[5731]54 virtual void run();
55
[5766]56 signals:
57 void newMessage(QByteArray msg, bool showOnScreen);
58
[5731]59 private:
[5810]60 const t_pppOptions* _opt;
[5736]61 t_pppRun* _pppRun;
[5731]62};
63
[5719]64}
65
[4757]66#endif
Note: See TracBrowser for help on using the repository browser.