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