Changeset 1179 in ntrip for trunk/BNC/bncwindow.cpp


Ignore:
Timestamp:
Oct 27, 2008, 6:04:35 PM (16 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncwindow.cpp

    r1178 r1179  
    696696          this, SLOT(slotGetThreadErrors()));
    697697
    698   connect (_caster, SIGNAL(mountPointsRead()),
    699            this, SLOT(slotMountPointsRead()));
    700 
    701   _caster->slotReadMountpoints();
     698  connect (_caster, SIGNAL(mountPointsRead(QList<bncGetThread*>)),
     699           this, SLOT(slotMountPointsRead(QList<bncGetThread*>)));
     700
     701  _caster->slotReadMountPoints();
    702702
    703703  ((bncApp*)qApp)->slotMessage("============ Start BNC ============");
     
    802802//
    803803////////////////////////////////////////////////////////////////////////////
    804 void bncWindow::slotMountPointsRead() {
     804void bncWindow::slotMountPointsRead(QList<bncGetThread*> threads) {
    805805  populateMountPointsTable();
     806  QListIterator<bncGetThread*> iTh(threads);
     807  while (iTh.hasNext()) {
     808    bncGetThread* thread = iTh.next();
     809    for (int iRow = 0; iRow < _mountPointsTable->rowCount(); iRow++) {
     810      QUrl url( "//" + _mountPointsTable->item(iRow, 0)->text() +
     811                "@"  + _mountPointsTable->item(iRow, 1)->text() );
     812      if (url                                      == thread->mountPoint() &&
     813          _mountPointsTable->item(iRow, 3)->text() == thread->latitude()   &&
     814          _mountPointsTable->item(iRow, 4)->text() == thread->longitude() ) {
     815        ((bncTableItem*) _mountPointsTable->item(iRow, 6))->setGetThread(thread);
     816        break;
     817      }
     818    }
     819  }
    806820}
    807821
Note: See TracChangeset for help on using the changeset viewer.