コード例 #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
ファイル: pluginview.cpp プロジェクト: marxoft/musikloud2
void PluginView::search(const QString &query, const QString &type, const QString &order) {
    if (type == Resources::PLAYLIST) {
        PluginPlaylistsWindow *window = new PluginPlaylistsWindow(StackedWindow::currentWindow());
        window->setWindowTitle(QString("%1 ('%2')").arg(tr("Search")).arg(query));
        window->search(m_model->service(), query, order);
        window->show();
    }
    else if (type == Resources::ARTIST) {
        PluginArtistsWindow *window = new PluginArtistsWindow(StackedWindow::currentWindow());
        window->setWindowTitle(QString("%1 ('%2')").arg(tr("Search")).arg(query));
        window->search(m_model->service(), query, order);
        window->show();
    }
    else {
        PluginTracksWindow *window = new PluginTracksWindow(StackedWindow::currentWindow());
        window->setWindowTitle(QString("%1 ('%2')").arg(tr("Search")).arg(query));
        window->search(m_model->service(), query, order);
        window->show();
    }
}
コード例 #3
0
ファイル: pluginview.cpp プロジェクト: marxoft/musikloud2
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();
}