Changeset 243 in ntrip for trunk/BNC/bncmain.cpp
- Timestamp:
- Oct 13, 2006, 9:41:15 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncmain.cpp
r180 r243 24 24 25 25 using namespace std; 26 27 bncCaster* _global_caster = 0; 26 28 27 29 // Main Program … … 75 77 // ---------------------------- 76 78 else { 77 bncCaster*caster = new bncCaster(settings.value("outFile").toString(),78 79 _global_caster = new bncCaster(settings.value("outFile").toString(), 80 settings.value("outPort").toInt()); 79 81 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&)), 82 84 &app, SLOT(slotMessage(const QByteArray&))); 83 85 84 caster->start();85 86 86 QListIterator<QString> it(settings.value("mountPoints").toStringList()); 87 87 while (it.hasNext()) { … … 94 94 &app, SLOT(slotMessage(const QByteArray&))); 95 95 96 caster->addGetThread(getThread);96 _global_caster->addGetThread(getThread); 97 97 98 98 getThread->start(); 99 99 } 100 if ( caster->numStations() == 0) {100 if (_global_caster->numStations() == 0) { 101 101 return 0; 102 102 }
Note:
See TracChangeset
for help on using the changeset viewer.