+void MainWindow::addUrl()
+{
+#ifdef AVOID_INPUT_DIALOG
+ QString url = "http://war.str3am.com:7970";
+#else
+ QString url = QInputDialog::getText(this, "Get URL", "Please type in the stream URL");
+#endif
+ int index = sources.size();
+ if (!url.isEmpty())
+ {
+ Phonon::MediaSource source(url);
+ sources.append(source);
+ }
+ if (!sources.isEmpty())
+ metaInformationResolver->setCurrentSource(sources.at(index));
+ setupShuffleList();
+}
+
+void MainWindow::addStringList(const QStringList& list)
+{
+ int index = sources.size();
+ foreach (QString string, list)
+ {
+ Phonon::MediaSource source(string);
+ sources.append(source);
+ }
+ if (!sources.isEmpty())
+ metaInformationResolver->setCurrentSource(sources.at(index));
+ setupShuffleList();
+}