Changeset 3644 in ntrip


Ignore:
Timestamp:
Jan 24, 2012, 11:56:41 AM (12 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncpostprocess.cpp

    r3643 r3644  
    6161}
    6262
     63// Write a Program Message
     64////////////////////////////////////////////////////////////////////////////
     65void t_postProcessing::slotMessage(QByteArray msg, bool /* showOnScreen */) {
     66  cout << msg.data();
     67}
     68
    6369// 
    6470////////////////////////////////////////////////////////////////////////////
    6571void t_postProcessing::run() {
    6672
    67   if (!_pppClient) {
     73  if (_pppClient) {
     74    return;
     75  }
     76  else {
    6877    _pppClient = new bncPPPclient("POST", _opt, false);
     78
     79    connect(this, SIGNAL(newEphGPS(gpsephemeris)),
     80            _pppClient, SLOT(slotNewEphGPS(gpsephemeris)), Qt::DirectConnection);
     81   
     82    connect(this, SIGNAL(newEphGlonass(glonassephemeris)),
     83            _pppClient, SLOT(slotNewEphGlonass(glonassephemeris)), Qt::DirectConnection);
     84   
     85    connect(this, SIGNAL(newEphGalileo(galileoephemeris)),
     86            _pppClient, SLOT(slotNewEphGalileo(galileoephemeris)), Qt::DirectConnection);
     87
     88    connect(this, SIGNAL(newCorrections(QList<QString>)),
     89            _pppClient, SLOT(slotNewCorrections(QList<QString>)));
     90
     91    connect(_pppClient, SIGNAL(newMessage(QByteArray,bool)),
     92            this, SLOT(slotMessage(const QByteArray,bool)));
    6993  }
    7094
  • trunk/BNC/bncpostprocess.h

    r3643 r3644  
    2828#include <QtCore>
    2929#include "bncconst.h"
     30extern "C" {
     31#include "rtcm3torinex.h"
     32}
    3033
    3134class t_pppOpt;
     
    4447  void progress(float);
    4548  void finished();
     49  void newEphGPS(gpsephemeris gpseph);
     50  void newEphGlonass(glonassephemeris glonasseph);
     51  void newEphGalileo(galileoephemeris galileoeph);
     52  void newCorrections(QList<QString>);
    4653   
     54 public slots:
     55  void slotMessage(QByteArray msg, bool showOnScreen);
     56
    4757 public:
    4858  virtual void run();
Note: See TracChangeset for help on using the changeset viewer.