Changeset 1556 in ntrip


Ignore:
Timestamp:
Feb 2, 2009, 12:53:29 PM (16 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bnc.pro

    r1555 r1556  
    22# Switch to debug configuration
    33# -----------------------------
    4 CONFIG += debug
    5 CONFIG -= release
     4CONFIG -= debug
     5CONFIG += release
    66
    77DEFINES += NO_RTCM3_MAIN
  • trunk/BNC/bnccaster.cpp

    r1542 r1556  
    237237          this,      SLOT(newObs(QByteArray, bool, p_obs)));
    238238
    239   connect(getThread, SIGNAL(error(QByteArray)),
    240           this, SLOT(slotGetThreadError(QByteArray)));
     239  connect(getThread, SIGNAL(getThreadFinished(QByteArray)),
     240          this, SLOT(slotGetThreadFinished(QByteArray)));
    241241
    242242  _staIDs.push_back(getThread->staID());
     
    246246}
    247247
    248 // Error in get thread
    249 ////////////////////////////////////////////////////////////////////////////
    250 void bncCaster::slotGetThreadError(QByteArray staID) {
     248// Get Thread destroyed
     249////////////////////////////////////////////////////////////////////////////
     250void bncCaster::slotGetThreadFinished(QByteArray staID) {
    251251  QMutexLocker locker(&_mutex);
    252252  _staIDs.removeAll(staID);
     
    255255  if (_staIDs.size() == 0) {
    256256    emit(newMessage("bncCaster: Last get thread terminated", true));
    257     emit getThreadErrors();
     257    emit getThreadsFinished();
    258258  }
    259259}
  • trunk/BNC/bnccaster.h

    r1299 r1556  
    4949 signals:
    5050   void mountPointsRead(QList<bncGetThread*>);
    51    void getThreadErrors();   
     51   void getThreadsFinished();   
    5252   void newMessage(QByteArray msg, bool showOnScreen);
    5353
     
    5555   void slotNewConnection();
    5656   void slotNewUConnection();
    57    void slotGetThreadError(QByteArray staID);
     57   void slotGetThreadFinished(QByteArray staID);
    5858
    5959 private:
  • trunk/BNC/bncgetthread.cpp

    r1555 r1556  
    292292  delete _rawOutFile;
    293293  delete _serialPort;
     294  emit getThreadFinished(_staID);
    294295}
    295296
  • trunk/BNC/bncgetthread.h

    r1555 r1556  
    6868   void newAntCrd(QByteArray staID, double xx, double yy, double zz, QByteArray antType);
    6969   void newMessage(QByteArray msg, bool showOnScreen);
     70   void getThreadFinished(QByteArray staID);
    7071
    7172 protected:
  • trunk/BNC/bncmain.cpp

    r1553 r1556  
    137137    app.setPortCorr(settings.value("corrPort").toInt());
    138138
    139     app.connect(caster, SIGNAL(getThreadErrors()), &app, SLOT(quit()));
     139    app.connect(caster, SIGNAL(getThreadsFinished()), &app, SLOT(quit()));
    140140 
    141141    ((bncApp*)qApp)->slotMessage("============ Start BNC ============", true);
  • trunk/BNC/bncwindow.cpp

    r1551 r1556  
    924924// All get slots terminated
    925925////////////////////////////////////////////////////////////////////////////
    926 void bncWindow::slotGetThreadErrors() {
     926void bncWindow::slotGetThreadsFinished() {
    927927  ((bncApp*)qApp)->slotMessage("All Get Threads Terminated", true);
    928928  if (!_actStop->isEnabled()) {
     
    946946  ((bncApp*)qApp)->setPortCorr(_corrPortLineEdit->text().toInt());
    947947
    948   connect(_caster, SIGNAL(getThreadErrors()),
    949           this, SLOT(slotGetThreadErrors()));
     948  connect(_caster, SIGNAL(getThreadsFinished()),
     949          this, SLOT(slotGetThreadsFinished()));
    950950
    951951  connect (_caster, SIGNAL(mountPointsRead(QList<bncGetThread*>)),
  • trunk/BNC/bncwindow.h

    r1541 r1556  
    7373    void slotNewMountPoints(QStringList* mountPoints);
    7474    void slotDeleteMountPoints();
    75     void slotGetThreadErrors();
     75    void slotGetThreadsFinished();
    7676    void slotSelectionChanged();
    7777    void slotWhatsThis();
Note: See TracChangeset for help on using the changeset viewer.