Changeset 3235 in ntrip


Ignore:
Timestamp:
Apr 1, 2011, 2:12:30 PM (13 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/upload/bncuploadcaster.cpp

    r3234 r3235  
    1919#include "bncversion.h"
    2020#include "bncapp.h"
     21#include "bnctableitem.h"
    2122
    2223using namespace std;
     
    2728                                 const QString& outHost, int outPort,
    2829                                 const QString& password, int iRow) {
    29 
    30   connect(this, SIGNAL(newMessage(QByteArray,bool)),
    31           ((bncApp*)qApp), SLOT(slotMessage(const QByteArray,bool)));
    32 
    3330  _mountpoint    = mountpoint;
    3431  _outHost       = outHost;
     
    3936  _iRow          = iRow;
    4037  _isToBeDeleted = false;
     38
     39  bncApp* app = (bncApp*) qApp;
     40  connect(this, SIGNAL(newMessage(QByteArray,bool)),
     41          app, SLOT(slotMessage(const QByteArray,bool)));
     42
     43  if (app->_uploadTableItems.find(_iRow) != app->_uploadTableItems.end()){
     44    connect(this, SIGNAL(newBytes(QByteArray,double)),
     45            app->_uploadTableItems.value(iRow),
     46            SLOT(newBytes(const QByteArray,double)));
     47  }
    4148}
    4249
Note: See TracChangeset for help on using the changeset viewer.