Changeset 3644 in ntrip for trunk/BNC/bncpostprocess.cpp


Ignore:
Timestamp:
Jan 24, 2012, 11:56:41 AM (12 years ago)
Author:
mervart
Message:
 
File:
1 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
Note: See TracChangeset for help on using the changeset viewer.