Changeset 1067 in ntrip for trunk/BNS/bns.cpp


Ignore:
Timestamp:
Aug 27, 2008, 12:40:43 PM (16 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNS/bns.cpp

    r1066 r1067  
    7373  // Socket and file for outputting the results
    7474  // -------------------------------------------
    75   _caster.push_back(new t_bnscaster(settings.value("mountpoint").toString()));
    76   connect(_caster.back(), SIGNAL(error(const QByteArray)),
    77           this, SLOT(slotError(const QByteArray)));
    78   connect(_caster.back(), SIGNAL(newMessage(const QByteArray)),
    79           this, SLOT(slotMessage(const QByteArray)));
     75  for (int ic = 1; ic <= 2; ic++) {
     76
     77    QString mountpoint  = settings.value("mountpoint_%1").toString().arg(ic);
     78    QString outFileName = settings.value("outFile_%1").toString().arg(ic);
     79    QString refSys      = settings.value("refSys_%1").toString().arg(ic);
     80
     81    _caster.push_back(new t_bnscaster(mountpoint, outFileName, refSys));
     82    connect(_caster.back(), SIGNAL(error(const QByteArray)),
     83            this, SLOT(slotError(const QByteArray)));
     84    connect(_caster.back(), SIGNAL(newMessage(const QByteArray)),
     85            this, SLOT(slotMessage(const QByteArray)));
     86  }
    8087
    8188  // Log File
Note: See TracChangeset for help on using the changeset viewer.