void peekNext() { if(downloads_.isEmpty()) { parent()->deleteLater(); return; } Download dwd = downloads_.head(); GetTuneUrlHelper* helper = new GetTuneUrlHelper(this, "urlFinished", this); helper->getTuneUrlAsynchronously(dwd.first); }
void QompQtMultimediaPlayer::doSetTune() { #ifdef DEBUG_OUTPUT qDebug() << "QompQtMultimediaPlayer::doSetTune()"; #endif if(!player_->media().isNull()) { player_->blockSignals(true); player_->setMedia(QMediaContent()); player_->blockSignals(false); } if(watcher_) { watcher_->parent()->setProperty("blocked", true); } GetTuneUrlHelper* helper = new GetTuneUrlHelper(this, "tuneUrlReady", this); watcher_ = helper->getTuneUrlAsynchronously(currentTune()); }