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


Ignore:
Timestamp:
Oct 13, 2006, 9:41:15 AM (18 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncwindow.cpp

    r240 r243  
    221221  layout->addWidget(_logFileLineEdit,                           10, 2, 1, 3);
    222222  layout->addWidget(_log,                                       11, 0, 1, 5);
    223 
    224   _bncCaster = 0;
    225223}
    226224
     
    369367  _actStop->setEnabled(true);
    370368
    371   _bncCaster = new bncCaster(_outFileLineEdit->text(),
     369  _global_caster = new bncCaster(_outFileLineEdit->text(),
    372370                             _outPortLineEdit->text().toInt());
    373371
    374   connect(_bncCaster, SIGNAL(getThreadErrors()),
     372  connect(_global_caster, SIGNAL(getThreadErrors()),
    375373          this, SLOT(slotGetThreadErrors()));
    376374
    377   connect(_bncCaster, SIGNAL(newMessage(const QByteArray&)),
     375  connect(_global_caster, SIGNAL(newMessage(const QByteArray&)),
    378376          this, SLOT(slotMessage(const QByteArray&)));
    379   connect(_bncCaster, SIGNAL(newMessage(const QByteArray&)),
     377  connect(_global_caster, SIGNAL(newMessage(const QByteArray&)),
    380378          (bncApp*)qApp, SLOT(slotMessage(const QByteArray&)));
    381 
    382   _bncCaster->start();
    383379
    384380  for (int iRow = 0; iRow < _mountPointsTable->rowCount(); iRow++) {
     
    399395            SLOT(slotNewObs(const QByteArray&, Observation*)));
    400396
    401     _bncCaster->addGetThread(getThread);
     397    _global_caster->addGetThread(getThread);
    402398
    403399    getThread->start();
     
    412408                                   QMessageBox::NoButton);
    413409  if (iRet == QMessageBox::Yes) {
    414     _bncCaster->terminate();
    415     _bncCaster->wait();
    416     delete _bncCaster;
    417     _bncCaster = 0;
     410    delete _global_caster; _global_caster = 0;
    418411    _actGetData->setEnabled(true);
    419412    _actStop->setEnabled(false);
Note: See TracChangeset for help on using the changeset viewer.