Changeset 11185 in ntrip for trunk/BNC/src/bnccaster.cpp
- Timestamp:
- Nov 9, 2026, 12:15:48 PM (12 hours ago)
- File:
-
- 1 edited
-
trunk/BNC/src/bnccaster.cpp (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bnccaster.cpp
r11021 r11185 64 64 bncSettings settings; 65 65 66 connect(this, SIGNAL(newMessage(QByteArray,bool)),67 BNC_CORE, SLOT(slotMessage(const QByteArray,bool)));66 BNC_CORE->connectMessages(this, "bnc"); 67 BNC_CORE->connectLogRecords(this, "bnc"); 68 68 69 69 _outFile = 0; … … 81 81 + QByteArray::number(port) + ": " 82 82 + _server->errorString(); 83 emit new Message(message.toLatin1(), true);83 emit newLogRecord(t_logRecord::message(t_logRecord::error, message.toLatin1()), true); 84 84 } 85 85 connect(_server, SIGNAL(newConnection()), this, SLOT(slotNewConnection())); … … 99 99 + QByteArray::number(uPort) + ": " 100 100 + _uServer->errorString(); 101 emit new Message(message.toLatin1(), true);101 emit newLogRecord(t_logRecord::message(t_logRecord::error, message.toLatin1()), true); 102 102 } 103 103 connect(_uServer, SIGNAL(newConnection()), this, SLOT(slotNewUConnection())); … … 128 128 + QByteArray::number(_miscPort) + ": " 129 129 + _miscServer->errorString(); 130 emit new Message(message.toLatin1(), true);130 emit newLogRecord(t_logRecord::message(t_logRecord::error, message.toLatin1()), true); 131 131 } 132 132 connect(_miscServer, SIGNAL(newConnection()), this, SLOT(slotNewMiscConnection())); … … 235 235 if ( !settings.value("outFile").toString().isEmpty() || 236 236 !settings.value("outPort").toString().isEmpty() ) { 237 emit ( newMessage(QString("%1: Old or erroneous observation epoch %2 thrown away from %3")237 emit newLogRecord(t_logRecord::message(t_logRecord::warning, QString("%1: Old or erroneous observation epoch %2 thrown away from %3") 238 238 .arg(staID.data()) 239 239 .arg(string(obs._time).c_str()) 240 240 .arg(obs._prn.toString().c_str()) 241 .toLatin1() , true));241 .toLatin1()), true); 242 242 } 243 243 } … … 262 262 void bncCaster::slotNewConnection() { 263 263 _sockets->push_back( _server->nextPendingConnection() ); 264 emit ( newMessage(QString("New client connection on sync port: # %1")265 .arg(_sockets->size()).toLatin1() , true));264 emit newLogRecord(t_logRecord::message(t_logRecord::info, QString("New client connection on sync port: # %1") 265 .arg(_sockets->size()).toLatin1()), true); 266 266 } 267 267 268 268 void bncCaster::slotNewUConnection() { 269 269 _uSockets->push_back( _uServer->nextPendingConnection() ); 270 emit ( newMessage(QString("New client connection on usync port: # %1")271 .arg(_uSockets->size()).toLatin1() , true));270 emit newLogRecord(t_logRecord::message(t_logRecord::info, QString("New client connection on usync port: # %1") 271 .arg(_uSockets->size()).toLatin1()), true); 272 272 } 273 273 … … 318 318 } 319 319 _staIDs.removeAll(staID); 320 emit( newMessage( 321 QString("Decoding %1 stream(s)").arg(_staIDs.size()).toLatin1(), true) ); 320 emit newLogRecord(t_logRecord::message(t_logRecord::info, QString("Decoding %1 stream(s)").arg(_staIDs.size()).toLatin1()), true); 322 321 if (_staIDs.size() == 0) { 323 322 emit getThreadsFinished(); … … 482 481 483 482 emit mountPointsRead(_threads); 484 emit (newMessage(QString("Configuration read: " + BNC_CORE->confFileName() + ", %1 stream(s)").arg(_threads.count()).toLatin1(), true));483 emit newLogRecord(t_logRecord::message(t_logRecord::info, QString("Configuration read: " + BNC_CORE->confFileName() + ", %1 stream(s)").arg(_threads.count()).toLatin1()), true); 485 484 486 485 // (Re-) Start the configuration timer … … 586 585 void bncCaster::slotNewMiscConnection() { 587 586 _miscSockets->push_back( _miscServer->nextPendingConnection() ); 588 emit ( newMessage(QString("New client connection on Miscellaneous Output Port: # %1")589 .arg(_miscSockets->size()).toLatin1() , true));587 emit newLogRecord(t_logRecord::message(t_logRecord::info, QString("New client connection on Miscellaneous Output Port: # %1") 588 .arg(_miscSockets->size()).toLatin1()), true); 590 589 } 591 590
Note:
See TracChangeset
for help on using the changeset viewer.
