Пример #1
0
	void peekNext() {
		if(downloads_.isEmpty()) {
			parent()->deleteLater();
			return;
		}

		Download dwd = downloads_.head();
		GetTuneUrlHelper* helper = new GetTuneUrlHelper(this, "urlFinished", this);
		helper->getTuneUrlAsynchronously(dwd.first);
	}
Пример #2
0
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());
}