Changeset 1179 in ntrip
- Timestamp:
- Oct 27, 2008, 6:04:35 PM (16 years ago)
- Location:
- trunk/BNC
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bnccaster.cpp
r1178 r1179 313 313 // Reread configuration 314 314 //////////////////////////////////////////////////////////////////////////// 315 void bncCaster::slotReadMount points() {315 void bncCaster::slotReadMountPoints() { 316 316 317 317 QSettings settings; … … 394 394 } 395 395 396 emit mountPointsRead( );396 emit mountPointsRead(_threads); 397 397 emit( newMessage(QString("Table of Mountpoints (re-)read: new number = %1") 398 398 .arg(_threads.count()).toAscii()) ); … … 407 407 else { 408 408 _confTimer = new QTimer(); 409 connect(_confTimer, SIGNAL(timeout()), this, SLOT(slotReadMount points()));409 connect(_confTimer, SIGNAL(timeout()), this, SLOT(slotReadMountPoints())); 410 410 411 411 QTime currTime = currentDateAndTimeGPS().time(); -
trunk/BNC/bnccaster.h
r1178 r1179 45 45 public slots: 46 46 void newObs(QByteArray staID, bool firstObs, p_obs obs); 47 void slotReadMount points();47 void slotReadMountPoints(); 48 48 49 49 signals: 50 void mountPointsRead( );50 void mountPointsRead(QList<bncGetThread*>); 51 51 void getThreadErrors(); 52 52 void newMessage(QByteArray msg); -
trunk/BNC/bncmain.cpp
r1170 r1179 172 172 // -------------------------------- 173 173 if (!fileInput) { 174 caster->slotReadMount points();174 caster->slotReadMountPoints(); 175 175 if (caster->numStations() == 0) { 176 176 return 0; -
trunk/BNC/bncwindow.cpp
r1178 r1179 696 696 this, SLOT(slotGetThreadErrors())); 697 697 698 connect (_caster, SIGNAL(mountPointsRead( )),699 this, SLOT(slotMountPointsRead( )));700 701 _caster->slotReadMount points();698 connect (_caster, SIGNAL(mountPointsRead(QList<bncGetThread*>)), 699 this, SLOT(slotMountPointsRead(QList<bncGetThread*>))); 700 701 _caster->slotReadMountPoints(); 702 702 703 703 ((bncApp*)qApp)->slotMessage("============ Start BNC ============"); … … 802 802 // 803 803 //////////////////////////////////////////////////////////////////////////// 804 void bncWindow::slotMountPointsRead( ) {804 void bncWindow::slotMountPointsRead(QList<bncGetThread*> threads) { 805 805 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 } 806 820 } 807 821 -
trunk/BNC/bncwindow.h
r1178 r1179 58 58 59 59 public slots: 60 void slotMountPointsRead( );60 void slotMountPointsRead(QList<bncGetThread*>); 61 61 62 62 private slots:
Note:
See TracChangeset
for help on using the changeset viewer.