Changeset 628 in ntrip


Ignore:
Timestamp:
Dec 16, 2007, 6:57:42 PM (16 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bnccaster.cpp

    r624 r628  
    178178  qRegisterMetaType<p_obs>("p_obs");
    179179
    180   connect(getThread, SIGNAL(newObs(const QByteArray, bool, p_obs)),
    181           this,      SLOT(newObs(const QByteArray, bool, p_obs)));
    182 
    183   connect(getThread, SIGNAL(error(const QByteArray)),
    184           this, SLOT(slotGetThreadError(const QByteArray)));
     180  connect(getThread, SIGNAL(newObs(QByteArray, bool, p_obs)),
     181          this,      SLOT(newObs(QByteArray, bool, p_obs)));
     182
     183  connect(getThread, SIGNAL(error(QByteArray)),
     184          this, SLOT(slotGetThreadError(QByteArray)));
    185185
    186186  _staIDs.push_back(getThread->staID());
     
    190190// Error in get thread
    191191////////////////////////////////////////////////////////////////////////////
    192 void bncCaster::slotGetThreadError(const QByteArray staID) {
     192void bncCaster::slotGetThreadError(QByteArray staID) {
    193193  QMutexLocker locker(&_mutex);
    194194  _staIDs.removeAll(staID);
  • trunk/BNC/bnccaster.h

    r622 r628  
    4444
    4545 public slots:
    46    void newObs(const QByteArray staID, bool firstObs, p_obs obs);
     46   void newObs(QByteArray staID, bool firstObs, p_obs obs);
    4747
    4848 signals:
    4949   void getThreadErrors();   
    50    void newMessage(const QByteArray& msg);
     50   void newMessage(QByteArray msg);
    5151
    5252 private slots:
    5353   void slotNewConnection();
    54    void slotGetThreadError(const QByteArray staID);
     54   void slotGetThreadError(QByteArray staID);
    5555
    5656 private:
  • trunk/BNC/bncgetthread.h

    r622 r628  
    5151
    5252 signals:
    53    void newBytes(const QByteArray staID, double nbyte);
    54    void newObs(const QByteArray staID, bool firstObs, p_obs obs);
    55    void error(const QByteArray staID);
    56    void newMessage(const QByteArray msg);
     53   void newBytes(QByteArray staID, double nbyte);
     54   void newObs(QByteArray staID, bool firstObs, p_obs obs);
     55   void error(QByteArray staID);
     56   void newMessage(QByteArray msg);
    5757
    5858 protected:
  • trunk/BNC/bncmain.cpp

    r624 r628  
    123123
    124124    app.connect(caster, SIGNAL(getThreadErrors()), &app, SLOT(quit()));
    125     app.connect(caster, SIGNAL(newMessage(const QByteArray&)),
    126                 &app, SLOT(slotMessage(const QByteArray&)));
     125    app.connect(caster, SIGNAL(newMessage(QByteArray)),
     126                &app, SLOT(slotMessage(QByteArray)));
    127127 
    128128    ((bncApp*)qApp)->slotMessage("============ Start BNC ============");
     
    140140      QByteArray nmea = hlp[4].toAscii();
    141141      bncGetThread* getThread = new bncGetThread(url, format, latitude, longitude, nmea, iMount);
    142       app.connect(getThread, SIGNAL(newMessage(const QByteArray&)),
    143                   &app, SLOT(slotMessage(const QByteArray&)));
     142      app.connect(getThread, SIGNAL(newMessage(QByteArray)),
     143                  &app, SLOT(slotMessage(const QByteArray)));
    144144
    145145      caster->addGetThread(getThread);
  • trunk/BNC/bncwindow.cpp

    r609 r628  
    523523          this, SLOT(slotGetThreadErrors()));
    524524
    525   connect(_caster, SIGNAL(newMessage(const QByteArray&)),
    526           this, SLOT(slotMessage(const QByteArray&)));
    527   connect(_caster, SIGNAL(newMessage(const QByteArray&)),
    528           (bncApp*)qApp, SLOT(slotMessage(const QByteArray&)));
     525  connect(_caster, SIGNAL(newMessage(QByteArray)),
     526          this, SLOT(slotMessage(QByteArray)));
     527  connect(_caster, SIGNAL(newMessage(QByteArray)),
     528          (bncApp*)qApp, SLOT(slotMessage(QByteArray)));
    529529
    530530  slotMessage("============ Start BNC ============");
     
    543543    bncGetThread* getThread = new bncGetThread(url, format, latitude, longitude, nmea, iRow);
    544544
    545     connect(getThread, SIGNAL(newMessage(const QByteArray&)),
    546             this, SLOT(slotMessage(const QByteArray&)));
    547     connect(getThread, SIGNAL(newMessage(const QByteArray&)),
    548             (bncApp*)qApp, SLOT(slotMessage(const QByteArray&)));
    549 
    550     connect(getThread, SIGNAL(newBytes(const QByteArray, double)),
     545    connect(getThread, SIGNAL(newMessage(QByteArray)),
     546            this, SLOT(slotMessage(QByteArray)));
     547    connect(getThread, SIGNAL(newMessage(QByteArray)),
     548            (bncApp*)qApp, SLOT(slotMessage(QByteArray)));
     549
     550    connect(getThread, SIGNAL(newBytes(QByteArray, double)),
    551551            (bncTableItem*) _mountPointsTable->item(iRow, 6),
    552             SLOT(slotNewBytes(const QByteArray, double)));
     552            SLOT(slotNewBytes(QByteArray, double)));
    553553
    554554    _caster->addGetThread(getThread);
Note: See TracChangeset for help on using the changeset viewer.