Changeset 2966 in ntrip for trunk/BNC


Ignore:
Timestamp:
Feb 4, 2011, 11:48:02 AM (14 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncpppclient.cpp

    r2911 r2966  
    8989  connect(_model, SIGNAL(newNMEAstr(QByteArray)),
    9090          this,   SIGNAL(newNMEAstr(QByteArray)));
     91
     92  _pppCorrMountpoint = settings.value("pppCorrMountpoint").toString();
    9193}
    9294
     
    260262void bncPPPclient::slotNewCorrections(QList<QString> corrList) {
    261263  QMutexLocker locker(&_mutex);
     264
     265  // Check the Mountpoint (source of corrections)
     266  // --------------------------------------------
     267  if (_pppCorrMountpoint.isEmpty() ) {
     268    QMutableListIterator<QString> itm(corrList);
     269    while (itm.hasNext()) {
     270      QStringList hlp = itm.next().split(" ");
     271      if (hlp.size() > 0) {
     272        QString mountpoint = hlp[hlp.size()-1];
     273        if (mountpoint != _pppCorrMountpoint) {
     274          itm.remove();     
     275        }
     276      }
     277    }
     278  }
    262279
    263280  if (corrList.size() == 0) {
  • trunk/BNC/bncpppclient.h

    r2905 r2966  
    154154  bool                    _pppMode;
    155155  QMap<QString, slipInfo> _slips;
     156  QString                 _pppCorrMountpoint;
    156157};
    157158
Note: See TracChangeset for help on using the changeset viewer.