Changeset 243 in ntrip for trunk/BNC/bncmain.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/bncmain.cpp

    r180 r243  
    2424
    2525using namespace std;
     26
     27bncCaster* _global_caster = 0;
    2628
    2729// Main Program
     
    7577  // ----------------------------
    7678  else {
    77     bncCaster* caster = new bncCaster(settings.value("outFile").toString(),
    78                                       settings.value("outPort").toInt());
     79    _global_caster = new bncCaster(settings.value("outFile").toString(),
     80                                   settings.value("outPort").toInt());
    7981
    80     app.connect(caster, SIGNAL(getThreadErrors()), &app, SLOT(quit()));
    81     app.connect(caster, SIGNAL(newMessage(const QByteArray&)),
     82    app.connect(_global_caster, SIGNAL(getThreadErrors()), &app, SLOT(quit()));
     83    app.connect(_global_caster, SIGNAL(newMessage(const QByteArray&)),
    8284                &app, SLOT(slotMessage(const QByteArray&)));
    8385
    84     caster->start();
    85    
    8686    QListIterator<QString> it(settings.value("mountPoints").toStringList());
    8787    while (it.hasNext()) {
     
    9494                  &app, SLOT(slotMessage(const QByteArray&)));
    9595
    96       caster->addGetThread(getThread);
     96      _global_caster->addGetThread(getThread);
    9797
    9898      getThread->start();
    9999    }
    100     if (caster->numStations() == 0) {
     100    if (_global_caster->numStations() == 0) {
    101101      return 0;
    102102    }
Note: See TracChangeset for help on using the changeset viewer.