- Timestamp:
- Nov 8, 2006, 10:35:12 AM (18 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncapp.cpp
r261 r275 59 59 expandEnvVar(logFileName); 60 60 _logFile = new QFile(logFileName); 61 _logFile->open(QIODevice::WriteOnly); 61 if ( Qt::CheckState(settings.value("rnxAppend").toInt()) == Qt::Checked) { 62 _logFile->open(QIODevice::WriteOnly | QIODevice::Append); 63 } 64 else { 65 _logFile->open(QIODevice::WriteOnly); 66 } 62 67 _logStream = new QTextStream(); 63 68 _logStream->setDevice(_logFile); -
trunk/BNC/bnccaster.cpp
r273 r275 27 27 bncCaster::bncCaster(const QString& outFileName, int port) { 28 28 29 QSettings settings; 30 29 31 if ( !outFileName.isEmpty() ) { 30 32 QString lName = outFileName; 31 33 expandEnvVar(lName); 32 34 _outFile = new QFile(lName); 33 _outFile->open(QIODevice::WriteOnly); 35 if ( Qt::CheckState(settings.value("rnxAppend").toInt()) == Qt::Checked) { 36 _outFile->open(QIODevice::WriteOnly | QIODevice::Append); 37 } 38 else { 39 _outFile->open(QIODevice::WriteOnly); 40 } 34 41 _out = new QTextStream(_outFile); 35 42 _out->setRealNumberNotation(QTextStream::FixedNotation); … … 58 65 _lastDumpSec = 0; 59 66 60 QSettings settings;61 67 _samplingRate = settings.value("rnxSampl").toInt(); 62 68 _waitTime = settings.value("waitTime").toInt();
Note:
See TracChangeset
for help on using the changeset viewer.