diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-08-07 11:34:42 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-08-07 11:34:42 +0000 |
| commit | 1fb94978d0f60a91d9712fad25bbc47797979688 (patch) | |
| tree | 3cb28247f8a0fdff2e2a1a6da5a0325ec5e577a6 /src/plugins/General/mpris/mpris2/player2object.cpp | |
| parent | 1daf8cdc97096b6235a404acb563bec0f3f23c58 (diff) | |
| download | qmmp-1fb94978d0f60a91d9712fad25bbc47797979688.tar.gz qmmp-1fb94978d0f60a91d9712fad25bbc47797979688.tar.bz2 qmmp-1fb94978d0f60a91d9712fad25bbc47797979688.zip | |
enabled most general plugins
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3576 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/mpris/mpris2/player2object.cpp')
| -rw-r--r-- | src/plugins/General/mpris/mpris2/player2object.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/General/mpris/mpris2/player2object.cpp b/src/plugins/General/mpris/mpris2/player2object.cpp index af22d1eb7..fe2885c7a 100644 --- a/src/plugins/General/mpris/mpris2/player2object.cpp +++ b/src/plugins/General/mpris/mpris2/player2object.cpp @@ -31,7 +31,7 @@ Player2Object::Player2Object(QObject *parent) : QDBusAbstractAdaptor(parent) { - m_prev_item = 0; + m_prev_track = 0; m_previous_pos = 0; m_core = SoundCore::instance(); m_player = MediaPlayer::instance(); @@ -62,7 +62,7 @@ bool Player2Object::canControl() const bool Player2Object::canGoNext() const { - return m_pl_manager->currentPlayList()->nextItem() != 0; + return m_pl_manager->currentPlayList()->nextTrack() != 0; } bool Player2Object::canGoPrevious() const @@ -119,8 +119,8 @@ double Player2Object::maximumRate() const QVariantMap Player2Object::metadata() const { - PlayListTrack *item = m_pl_manager->currentPlayList()->currentItem(); - if(!item || m_core->metaData(Qmmp::URL).isEmpty()) + PlayListTrack *track = m_pl_manager->currentPlayList()->currentTrack(); + if(!track || m_core->metaData(Qmmp::URL).isEmpty()) return QVariantMap(); QVariantMap map; map["mpris:length"] = qMax(m_core->totalTime() * 1000 , qint64(0)); @@ -318,10 +318,10 @@ void Player2Object::emitPropertiesChanged() void Player2Object::updateId() { - if(m_prev_item != m_pl_manager->currentPlayList()->currentItem()) + if(m_prev_track != m_pl_manager->currentPlayList()->currentTrack()) { m_trackID = QDBusObjectPath(QString("%1/Track/%2").arg("/org/qmmp/MediaPlayer2").arg(qrand())); - m_prev_item = m_pl_manager->currentPlayList()->currentItem(); + m_prev_track = m_pl_manager->currentPlayList()->currentTrack(); } } |
