Changeset 1299 in ntrip for trunk/BNC/bnccaster.cpp
- Timestamp:
- Dec 12, 2008, 5:58:00 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bnccaster.cpp
r1246 r1299 54 54 QSettings settings; 55 55 56 connect(this, SIGNAL(newMessage(QByteArray )),57 (bncApp*) qApp, SLOT(slotMessage(const QByteArray )));56 connect(this, SIGNAL(newMessage(QByteArray,bool)), 57 (bncApp*) qApp, SLOT(slotMessage(const QByteArray,bool))); 58 58 59 59 if ( !outFileName.isEmpty() ) { … … 80 80 _server = new QTcpServer; 81 81 if ( !_server->listen(QHostAddress::Any, _port) ) { 82 emit newMessage("bncCaster: cannot listen on sync port" );82 emit newMessage("bncCaster: cannot listen on sync port", true); 83 83 } 84 84 connect(_server, SIGNAL(newConnection()), this, SLOT(slotNewConnection())); … … 94 94 _uServer = new QTcpServer; 95 95 if ( !_uServer->listen(QHostAddress::Any, uPort) ) { 96 emit newMessage("bncCaster: cannot listen on usync port" );96 emit newMessage("bncCaster: cannot listen on usync port", true); 97 97 } 98 98 connect(_uServer, SIGNAL(newConnection()), this, SLOT(slotNewUConnection())); … … 196 196 !settings.value("outPort").toString().isEmpty() ) { 197 197 emit( newMessage(QString("Station %1: old epoch %2 thrown away") 198 .arg(staID.data()).arg(iSec).toAscii() ) );198 .arg(staID.data()).arg(iSec).toAscii(), true) ); 199 199 } 200 200 } … … 220 220 _sockets->push_back( _server->nextPendingConnection() ); 221 221 emit( newMessage(QString("New Connection # %1") 222 .arg(_sockets->size()).toAscii() ) );222 .arg(_sockets->size()).toAscii(), true) ); 223 223 } 224 224 … … 226 226 _uSockets->push_back( _uServer->nextPendingConnection() ); 227 227 emit( newMessage(QString("New Connection (usync) # %1") 228 .arg(_uSockets->size()).toAscii() ) );228 .arg(_uSockets->size()).toAscii(), true) ); 229 229 } 230 230 … … 253 253 _staIDs.removeAll(staID); 254 254 emit( newMessage( 255 QString("Mountpoint size %1").arg(_staIDs.size()).toAscii() ) );255 QString("Mountpoint size %1").arg(_staIDs.size()).toAscii(), true) ); 256 256 if (_staIDs.size() == 0) { 257 emit(newMessage("bncCaster:: last get thread terminated" ));257 emit(newMessage("bncCaster:: last get thread terminated", true)); 258 258 emit getThreadErrors(); 259 259 } … … 442 442 emit mountPointsRead(_threads); 443 443 emit( newMessage(QString("Configuration read: %1 stream(s)") 444 .arg(_threads.count()).toAscii() ) );444 .arg(_threads.count()).toAscii(), true) ); 445 445 446 446 // (Re-) Start the configuration timer
Note:
See TracChangeset
for help on using the changeset viewer.