- Timestamp:
- Dec 16, 2007, 6:57:42 PM (17 years ago)
- Location:
- trunk/BNC
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bnccaster.cpp
r624 r628 178 178 qRegisterMetaType<p_obs>("p_obs"); 179 179 180 connect(getThread, SIGNAL(newObs( constQByteArray, bool, p_obs)),181 this, SLOT(newObs( constQByteArray, bool, p_obs)));182 183 connect(getThread, SIGNAL(error( constQByteArray)),184 this, SLOT(slotGetThreadError( constQByteArray)));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))); 185 185 186 186 _staIDs.push_back(getThread->staID()); … … 190 190 // Error in get thread 191 191 //////////////////////////////////////////////////////////////////////////// 192 void bncCaster::slotGetThreadError( constQByteArray staID) {192 void bncCaster::slotGetThreadError(QByteArray staID) { 193 193 QMutexLocker locker(&_mutex); 194 194 _staIDs.removeAll(staID); -
trunk/BNC/bnccaster.h
r622 r628 44 44 45 45 public slots: 46 void newObs( constQByteArray staID, bool firstObs, p_obs obs);46 void newObs(QByteArray staID, bool firstObs, p_obs obs); 47 47 48 48 signals: 49 49 void getThreadErrors(); 50 void newMessage( const QByteArray&msg);50 void newMessage(QByteArray msg); 51 51 52 52 private slots: 53 53 void slotNewConnection(); 54 void slotGetThreadError( constQByteArray staID);54 void slotGetThreadError(QByteArray staID); 55 55 56 56 private: -
trunk/BNC/bncgetthread.h
r622 r628 51 51 52 52 signals: 53 void newBytes( constQByteArray staID, double nbyte);54 void newObs( constQByteArray staID, bool firstObs, p_obs obs);55 void error( constQByteArray staID);56 void newMessage( constQByteArray 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); 57 57 58 58 protected: -
trunk/BNC/bncmain.cpp
r624 r628 123 123 124 124 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))); 127 127 128 128 ((bncApp*)qApp)->slotMessage("============ Start BNC ============"); … … 140 140 QByteArray nmea = hlp[4].toAscii(); 141 141 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))); 144 144 145 145 caster->addGetThread(getThread); -
trunk/BNC/bncwindow.cpp
r609 r628 523 523 this, SLOT(slotGetThreadErrors())); 524 524 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))); 529 529 530 530 slotMessage("============ Start BNC ============"); … … 543 543 bncGetThread* getThread = new bncGetThread(url, format, latitude, longitude, nmea, iRow); 544 544 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( constQByteArray, 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)), 551 551 (bncTableItem*) _mountPointsTable->item(iRow, 6), 552 SLOT(slotNewBytes( constQByteArray, double)));552 SLOT(slotNewBytes(QByteArray, double))); 553 553 554 554 _caster->addGetThread(getThread);
Note:
See TracChangeset
for help on using the changeset viewer.