Changeset 1171 in ntrip


Ignore:
Timestamp:
Oct 27, 2008, 3:57:29 PM (15 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncapp.cpp

    r1166 r1171  
    152152
    153153  messagePrivate(msg);
     154  emit newMessage(msg);
    154155}
    155156
  • trunk/BNC/bnccaster.cpp

    r1170 r1171  
    9292
    9393  _confTimer = 0;
     94
     95  connect(this, SIGNAL(newMessage(QByteArray)),
     96          (bncApp*) qApp, SLOT(slotMessage(const QByteArray)));
    9497}
    9598
     
    358361      app->connect(getThread, SIGNAL(newMessage(QByteArray)),
    359362                   app, SLOT(slotMessage(const QByteArray)));
    360 
    361       std::cout << "newThread "  << getThread->staID().data() << std::endl;
    362      
    363363      addGetThread(getThread);
    364364    }
     
    385385
    386386    if (!existFlg) {
    387       std::cout << "old Thread "  << thread->staID().data() << std::endl;
    388387      disconnect(thread, 0, 0, 0);
    389388      _staIDs.removeAll(thread->staID());
  • trunk/BNC/bncwindow.cpp

    r1170 r1171  
    6363
    6464  setWindowTitle(tr("BKG Ntrip Client (BNC) Version 1.6"));
     65
     66  connect((bncApp*)qApp, SIGNAL(newMessage(QByteArray)),
     67          this, SLOT(slotMessage(QByteArray)));
    6568
    6669  // Create Actions
     
    654657////////////////////////////////////////////////////////////////////////////
    655658void bncWindow::slotGetThreadErrors() {
    656   slotMessage("All Get Threads Terminated");
    657659  ((bncApp*)qApp)->slotMessage("All Get Threads Terminated");
    658660  _actAddMountPoints->setEnabled(true);
     
    679681          this, SLOT(slotGetThreadErrors()));
    680682
    681   connect(_caster, SIGNAL(newMessage(QByteArray)),
    682           this, SLOT(slotMessage(QByteArray)));
    683   connect(_caster, SIGNAL(newMessage(QByteArray)),
    684           (bncApp*)qApp, SLOT(slotMessage(QByteArray)));
    685   connect((bncApp*)qApp, SIGNAL(newMessage(QByteArray)),
    686           this, SLOT(slotMessage(QByteArray)));
    687 
    688683  _caster->slotReadMountpoints();
    689684
    690   slotMessage                 ("============ Start BNC ============");
    691685  ((bncApp*)qApp)->slotMessage("============ Start BNC ============");
    692686}
  • trunk/BNC/bncwindow.h

    r1170 r1171  
    5858 
    5959  public slots: 
    60     void slotMessage(const QByteArray msg);
    6160
    6261  private slots:
     62    void slotMessage(const QByteArray msg);
    6363    void slotHelp();
    6464    void slotAbout();
Note: See TracChangeset for help on using the changeset viewer.