NYBOT::NYBOT () { pluginName = "NYBOT"; helpFile = "nybot.html"; cancelFlag = FALSE; connect(this, SIGNAL(signalGetFileDone(bool)), this, SLOT(fileDone(bool))); connect(this, SIGNAL(signalTimeout()), this, SLOT(timeoutError())); buildGui(); loadSettings(); qInitNetworkProtocols(); resize(400, 400); }
Yahoo::Yahoo () { pluginName = "Yahoo"; helpFile = "yahoo.html"; url.setAutoDelete(TRUE); currentUrl = 0; fileCount = 0; fileCounter = 0; config.getData(Config::DataPath, dataPath); dataPath.append("/Stocks/Yahoo"); config.getData(Config::Home, file); file.append("/yahooDownload"); q3InitNetworkProtocols(); buildGui(); loadSettings(); connect(this, SIGNAL(signalGetFileDone(bool)), this, SLOT(fileDone(bool))); connect(this, SIGNAL(signalTimeout()), this, SLOT(timeoutError())); monthList.append("Jan"); monthList.append("Feb"); monthList.append("Mar"); monthList.append("Apr"); monthList.append("May"); monthList.append("Jun"); monthList.append("Jul"); monthList.append("Aug"); monthList.append("Sep"); monthList.append("Oct"); monthList.append("Nov"); monthList.append("Dec"); resize(640, 480); }
/*# Create a new radio device and attach it to \a parent. */ RadioBandManager::RadioBandManager( QObject *parent ) : QObject( parent ) { d = new RadioBandManagerPrivate( this ); d->scanTimer = new QTimer( this ); connect( d->scanTimer, SIGNAL(timeout()), this, SLOT(scanTimeout()) ); d->signalTimer = new QTimer( this ); connect( d->signalTimer, SIGNAL(timeout()), this, SLOT(signalTimeout()) ); d->signalBackoffTimer = new QTimer( this ); d->signalBackoffTimer->setSingleShot( true ); connect( d->signalBackoffTimer, SIGNAL(timeout()), this, SLOT(backoffSignalCheck()) ); // Unmute and activate the first band. if ( d->currentBand >= 0 ) { RadioBand *band = currentBand(); band->setMuted( false ); band->setActive( true ); startSignalCheck(); } }
void Timer::timerFired(int /*id*/) { signalTimeout(this); }