Changeset 149 in ntrip
- Timestamp:
- Sep 8, 2006, 9:04:28 PM (18 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncapp.cpp
r109 r149 17 17 18 18 #include <iostream> 19 #include <QSettings> 19 20 20 21 #include "bncapp.h" … … 29 30 _logFile = 0; 30 31 _logStream = 0; 31 for (int ii = 1; ii < argc; ii++) {32 if (QString(argv[ii]) == "-o" && ii+1 < argc) {33 _logFile = new QFile(argv[ii+1]);34 _logFile->open(QIODevice::WriteOnly);35 _logStream = new QTextStream();36 _logStream->setDevice(_logFile);37 }32 QSettings settings; 33 QString logFileName = settings.value("logFile").toString(); 34 if ( !logFileName.isEmpty() ) { 35 _logFile = new QFile(logFileName); 36 _logFile->open(QIODevice::WriteOnly); 37 _logStream = new QTextStream(); 38 _logStream->setDevice(_logFile); 38 39 } 39 40 } -
trunk/BNC/bncwindow.cpp
r143 r149 17 17 18 18 #include "bncwindow.h" 19 #include "bncapp.h" 19 20 #include "bncgetthread.h" 20 21 #include "bnctabledlg.h" … … 326 327 void bncWindow::slotGetThreadErrors() { 327 328 slotMessage("All Get Threads Terminated"); 329 ((bncApp*)qApp)->slotMessage("All Get Threads Terminated"); 328 330 _actAddMountPoints->setEnabled(true); 329 331 _actGetData->setEnabled(true); … … 347 349 connect(_bncCaster, SIGNAL(newMessage(const QByteArray&)), 348 350 this, SLOT(slotMessage(const QByteArray&))); 351 connect(_bncCaster, SIGNAL(newMessage(const QByteArray&)), 352 (bncApp*)qApp, SLOT(slotMessage(const QByteArray&))); 349 353 350 354 _bncCaster->start(); … … 360 364 connect(getThread, SIGNAL(newMessage(const QByteArray&)), 361 365 this, SLOT(slotMessage(const QByteArray&))); 366 connect(getThread, SIGNAL(newMessage(const QByteArray&)), 367 (bncApp*)qApp, SLOT(slotMessage(const QByteArray&))); 362 368 363 369 _bncCaster->addGetThread(getThread);
Note:
See TracChangeset
for help on using the changeset viewer.