Changeset 5583 in ntrip


Ignore:
Timestamp:
Nov 27, 2013, 5:55:26 PM (11 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src/combination
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/combination/bnccomb.cpp

    r5576 r5583  
    164164  connect(this, SIGNAL(newMessage(QByteArray,bool)),
    165165          BNC_CORE, SLOT(slotMessage(const QByteArray,bool)));
     166
     167  connect(BNC_CORE, SIGNAL(providerIDChanged(QString)),
     168          this, SLOT(slotProviderIDChanged(QString)));
    166169
    167170  // Combination Method
     
    11321135  return success;
    11331136}
     1137
     1138//
     1139////////////////////////////////////////////////////////////////////////////
     1140void bncComb::slotProviderIDChanged(QString mountPoint) {
     1141  QMutexLocker locker(&_mutex);
     1142
     1143  // Find the AC Name
     1144  // ----------------
     1145  QString acName;
     1146  QListIterator<cmbAC*> icAC(_ACs);
     1147  while (icAC.hasNext()) {
     1148    cmbAC* AC = icAC.next();
     1149    if (AC->mountPoint == mountPoint) {
     1150      acName = AC->name;
     1151      break;
     1152    }
     1153  }
     1154  if (acName.isEmpty()) {
     1155    return;
     1156  }
     1157
     1158  // Remove all corrections of the corresponding AC
     1159  // ----------------------------------------------
     1160  QListIterator<bncTime> itTime(_buffer.keys());
     1161  while (itTime.hasNext()) {
     1162    bncTime epoTime = itTime.next();
     1163    QVector<cmbCorr*>& corrVec = _buffer[epoTime].corrs;
     1164
     1165    QVectorIterator<cmbCorr*> it(corrVec);
     1166    while (it.hasNext()) {
     1167      cmbCorr* corr = it.next();
     1168      if (acName == corr->acName) {
     1169
     1170      }
     1171    }
     1172  }
     1173}
  • trunk/BNC/src/combination/bnccomb.h

    r4183 r5583  
    3737  void processCorrLine(const QString& staID, const QString& line);
    3838  int  nStreams() const {return _ACs.size();}
     39
     40 public slots:
     41  void slotProviderIDChanged(QString mountPoint);
    3942
    4043 signals:
Note: See TracChangeset for help on using the changeset viewer.