Changeset 149 in ntrip


Ignore:
Timestamp:
Sep 8, 2006, 9:04:28 PM (18 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncapp.cpp

    r109 r149  
    1717
    1818#include <iostream>
     19#include <QSettings>
    1920
    2021#include "bncapp.h"
     
    2930  _logFile   = 0;
    3031  _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);
    3839  }
    3940}
  • trunk/BNC/bncwindow.cpp

    r143 r149  
    1717
    1818#include "bncwindow.h"
     19#include "bncapp.h"
    1920#include "bncgetthread.h"
    2021#include "bnctabledlg.h"
     
    326327void bncWindow::slotGetThreadErrors() {
    327328  slotMessage("All Get Threads Terminated");
     329  ((bncApp*)qApp)->slotMessage("All Get Threads Terminated");
    328330  _actAddMountPoints->setEnabled(true);
    329331  _actGetData->setEnabled(true);
     
    347349  connect(_bncCaster, SIGNAL(newMessage(const QByteArray&)),
    348350          this, SLOT(slotMessage(const QByteArray&)));
     351  connect(_bncCaster, SIGNAL(newMessage(const QByteArray&)),
     352          (bncApp*)qApp, SLOT(slotMessage(const QByteArray&)));
    349353
    350354  _bncCaster->start();
     
    360364    connect(getThread, SIGNAL(newMessage(const QByteArray&)),
    361365            this, SLOT(slotMessage(const QByteArray&)));
     366    connect(getThread, SIGNAL(newMessage(const QByteArray&)),
     367            (bncApp*)qApp, SLOT(slotMessage(const QByteArray&)));
    362368
    363369    _bncCaster->addGetThread(getThread);
Note: See TracChangeset for help on using the changeset viewer.