Changeset 1179 in ntrip


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

* empty log message *

Location:
trunk/BNC
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bnccaster.cpp

    r1178 r1179  
    313313// Reread configuration
    314314////////////////////////////////////////////////////////////////////////////
    315 void bncCaster::slotReadMountpoints() {
     315void bncCaster::slotReadMountPoints() {
    316316
    317317  QSettings settings;
     
    394394  }
    395395
    396   emit mountPointsRead();
     396  emit mountPointsRead(_threads);
    397397  emit( newMessage(QString("Table of Mountpoints (re-)read: new number = %1")
    398398                            .arg(_threads.count()).toAscii()) );
     
    407407  else {
    408408    _confTimer = new QTimer();
    409     connect(_confTimer, SIGNAL(timeout()), this, SLOT(slotReadMountpoints()));
     409    connect(_confTimer, SIGNAL(timeout()), this, SLOT(slotReadMountPoints()));
    410410
    411411    QTime currTime = currentDateAndTimeGPS().time();
  • trunk/BNC/bnccaster.h

    r1178 r1179  
    4545 public slots:
    4646   void newObs(QByteArray staID, bool firstObs, p_obs obs);
    47    void slotReadMountpoints();
     47   void slotReadMountPoints();
    4848
    4949 signals:
    50    void mountPointsRead();
     50   void mountPointsRead(QList<bncGetThread*>);
    5151   void getThreadErrors();   
    5252   void newMessage(QByteArray msg);
  • trunk/BNC/bncmain.cpp

    r1170 r1179  
    172172    // --------------------------------
    173173    if (!fileInput) {
    174       caster->slotReadMountpoints();
     174      caster->slotReadMountPoints();
    175175      if (caster->numStations() == 0) {
    176176        return 0;
  • 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
  • trunk/BNC/bncwindow.h

    r1178 r1179  
    5858 
    5959  public slots: 
    60     void slotMountPointsRead();
     60    void slotMountPointsRead(QList<bncGetThread*>);
    6161
    6262  private slots:
Note: See TracChangeset for help on using the changeset viewer.