Changeset 3640 in ntrip for trunk/BNC/bncephuser.cpp


Ignore:
Timestamp:
Jan 24, 2012, 11:25:59 AM (13 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncephuser.cpp

    r3576 r3640  
    4848// Constructor
    4949////////////////////////////////////////////////////////////////////////////
    50 bncEphUser::bncEphUser() {
    51 
    52   connect(((bncApp*)qApp), SIGNAL(newEphGPS(gpsephemeris)),
    53           this, SLOT(slotNewEphGPS(gpsephemeris)), Qt::DirectConnection);
    54 
    55   connect(((bncApp*)qApp), SIGNAL(newEphGlonass(glonassephemeris)),
    56           this, SLOT(slotNewEphGlonass(glonassephemeris)), Qt::DirectConnection);
    57 
    58   connect(((bncApp*)qApp), SIGNAL(newEphGalileo(galileoephemeris)),
    59           this, SLOT(slotNewEphGalileo(galileoephemeris)), Qt::DirectConnection);
     50bncEphUser::bncEphUser(bool connectSlots) {
     51
     52  if (connectSlots) {
     53    connect(((bncApp*)qApp), SIGNAL(newEphGPS(gpsephemeris)),
     54            this, SLOT(slotNewEphGPS(gpsephemeris)), Qt::DirectConnection);
     55   
     56    connect(((bncApp*)qApp), SIGNAL(newEphGlonass(glonassephemeris)),
     57            this, SLOT(slotNewEphGlonass(glonassephemeris)), Qt::DirectConnection);
     58   
     59    connect(((bncApp*)qApp), SIGNAL(newEphGalileo(galileoephemeris)),
     60            this, SLOT(slotNewEphGalileo(galileoephemeris)), Qt::DirectConnection);
     61  }
    6062}
    6163
Note: See TracChangeset for help on using the changeset viewer.