Changeset 1175 in ntrip


Ignore:
Timestamp:
Oct 27, 2008, 4:53:11 PM (15 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncwindow.cpp

    r1174 r1175  
    3838 *
    3939 * -----------------------------------------------------------------------*/
     40
     41#include <iostream>
    4042
    4143#include <unistd.h>
     
    788790////////////////////////////////////////////////////////////////////////////
    789791void bncWindow::slotNewGetThread(bncGetThread* thread) {
    790 
    791 
    792 //  connect(thread, SIGNAL(newBytes(QByteArray, double)),
    793 //          (bncTableItem*) _mountPointsTable->item(iRow, 6),
    794 //          SLOT(slotNewBytes(QByteArray, double)));
     792  for (int iRow = 0; iRow < _mountPointsTable->rowCount(); iRow++) {
     793    QUrl url( "//" + _mountPointsTable->item(iRow, 0)->text() +
     794              "@"  + _mountPointsTable->item(iRow, 1)->text() );
     795    if (url                                      == thread->mountPoint() &&
     796        _mountPointsTable->item(iRow, 3)->text() == thread->latitude()   &&
     797        _mountPointsTable->item(iRow, 4)->text() == thread->longitude() ) {
     798
     799      connect(thread, SIGNAL(newBytes(QByteArray, double)),
     800              (bncTableItem*) _mountPointsTable->item(iRow, 6),
     801              SLOT(slotNewBytes(QByteArray, double)));
     802      break;
     803    }
     804  }
    795805}
    796806
Note: See TracChangeset for help on using the changeset viewer.