void PluginArtistWindow::showTracks() { if (!ResourcesPlugins::instance()->resourceTypeIsSupported(m_artist->service(), Resources::TRACK)) { QMaemo5InformationBox::information(this, tr("This artist does not have any tracks")); return; } PluginTracksWindow *window = new PluginTracksWindow(this); window->setWindowTitle(tr("%1's tracks").arg(m_artist->name())); window->list(m_artist->service(), m_artist->id()); window->show(); }
void PluginView::showTracks(const QString &name, const QString &id) { PluginTracksWindow *window = new PluginTracksWindow(StackedWindow::currentWindow()); window->setWindowTitle(name); window->list(m_model->service(), id); window->show(); }