コード例 #1
0
ファイル: pluginartist.cpp プロジェクト: vakkov/musikloud2
void PluginArtist::onRequestFinished() {
    if (m_request->status() == ResourcesRequest::Ready) {
        loadArtist(m_request->service(), m_request->result().toMap());
    }
    
    emit statusChanged(status());
}
コード例 #2
0
ファイル: pluginartist.cpp プロジェクト: vakkov/musikloud2
PluginArtist::PluginArtist(const QString &service, const QVariantMap &artist, QObject *parent) :
    MKArtist(parent),
    m_request(new ResourcesRequest(this))
{
    loadArtist(service, artist);
    connect(m_request, SIGNAL(finished()), this, SLOT(onRequestFinished()));
}
コード例 #3
0
ファイル: halbumcontext.cpp プロジェクト: jnetterf/hathor
HAlbumContext::HAlbumContext(HAlbum& rep, QWidget *parent) :
    QWidget(parent),
    s_rep(rep),
    s_albumLoadCount(0),
    s_trackLoadCount(0),
    s_tagLoadCount(0),
    s_artistLoadCount(0),
    s_shoutLoadCount(0),
    s_cachedPlayCount(-1),s_cachedListenerCount(-1),s_cachedUserPlayCount(-1),
    s_shoutsToLoad(5),
    s_pw(0), s_ge(0),
    ui(new Ui::HAlbumContext)
{
    s_showTime=QTime::currentTime();
    ui->setupUi(this);
    ui->label_album->setText(s_rep.getAlbumName());
    s_priority[0].push_back(s_rep.sendSummary(this,"setSummary"));

    s_priority[0].push_back(s_rep.sendPlayCount(this,"setPlayCount"));
    s_priority[0].push_back(s_rep.sendListenerCount(this,"setListenerCount"));
    s_priority[0].push_back(s_rep.sendUserPlayCount(this,"setUserPlayCount"));

    connect(ui->label_moreDescription,SIGNAL(linkActivated(QString)),this,SLOT(showMoreBio()));

    ui->widget_artist->setLayout(new QVBoxLayout);
    ui->widget_tags->setLayout(new QVBoxLayout);
    ui->widget_tracks->setLayout(new QVBoxLayout);
    ui->widget_comments->setLayout(new QVBoxLayout);
    ui->widget_comments->layout()->setSpacing(0);

    connect(ui->label_moreTracks,SIGNAL(linkActivated(QString)),this,SLOT(loadTracks()));

    connect(ui->label_moreTags,SIGNAL(linkActivated(QString)),this,SLOT(loadTags()));

//    connect(ui->label_moreArtists,SIGNAL(linkActivated(QString)),this,SLOT(loadSimilar()));

    connect(ui->label_moreShoutbox,SIGNAL(linkActivated(QString)),this,SLOT(loadShouts()));
    connect(ui->textEdit_shout,SIGNAL(textChanged()),this,SLOT(evalShout()));
    connect(ui->pushButton_post,SIGNAL(clicked()),this,SLOT(sendShout()));

    ui->label_albumPic->adjustSize();
    ui->frame_art->adjustSize();
    ui->frame_header->adjustSize();

    connect(ui->button_play,SIGNAL(clicked()),this,SLOT(play()));
    s_albumLoadCount=0;
    s_trackLoadCount=0;
    s_tagLoadCount=0;

    loadArtist();
    loadTracks();
    loadTags();

    readjustPriorities();
}