void ImageArea::_connectSignals( ScreenBase * w ) { if ( w == NULL ) return; connect( w, SIGNAL(updateSignal()), this, SLOT(update()) ); connect( w, SIGNAL(closeOnTouch()), this, SLOT(passCloseOnTouch()) ); connect( w, SIGNAL(changeFullscreen()), this, SLOT(passChangeFullScreen()) ); connect( w, SIGNAL(loadFile()), this, SLOT(passLoadFile()) ); connect( w, SIGNAL(loadDir()), this, SLOT(passLoadDir()) ); connect( w, SIGNAL(config()), this, SLOT(passConfig()) ); connect( w, SIGNAL(startTimer()), this, SLOT(onStartTimer()) ); connect( w, SIGNAL(changeViewer()), this, SLOT(onChangeMode()) ); connect( w, SIGNAL(indexChanged(int)), this, SLOT(indexChanged(int)) ); }
AmptekSDD123ThreadedDataServerGroup::AmptekSDD123ThreadedDataServerGroup(QList<AmptekSDD123ConfigurationMap*> configurationMaps, QObject *parent) :QObject(parent) { amptekServerGroupThread_ = new QThread(); amptekServerGroup_ = new AmptekSDD123ServerGroup(configurationMaps); amptekServerGroup_->moveToThread(amptekServerGroupThread_); connect(amptekServerGroupThread_, SIGNAL(started()), amptekServerGroup_, SLOT(onStartTimer())); connect(amptekServerGroupThread_, SIGNAL(finished()), amptekServerGroup_, SLOT(deleteLater())); connect(amptekServerGroup_, SIGNAL(serverChangedToConfigurationState(int)), this, SIGNAL(serverChangedToConfigurationState(int))); connect(amptekServerGroup_, SIGNAL(serverChangedToDwellState(int)), this, SIGNAL(serverChangedToDwellState(int))); amptekServerGroupThread_->start(); }
void setupHeartBeat(IHeartbeat* b) { beat = b; onStartTimer(); }