From fedd13511bbf91914a0250b43c440f43e6d1e8c5 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Tue, 23 Dec 2008 21:13:34 +0000 Subject: full mpris support; new options: "repeat track", "show protocol" git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@698 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/General/mpris/playerobject.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/plugins/General/mpris/playerobject.cpp') diff --git a/src/plugins/General/mpris/playerobject.cpp b/src/plugins/General/mpris/playerobject.cpp index 3c9d374d1..160d32e56 100644 --- a/src/plugins/General/mpris/playerobject.cpp +++ b/src/plugins/General/mpris/playerobject.cpp @@ -64,6 +64,7 @@ PlayerObject::PlayerObject(QObject *parent) connect(m_core, SIGNAL(stateChanged (Qmmp::State)), SLOT(updateStatus())); connect(m_model, SIGNAL(repeatableListChanged(bool)), SLOT(updateStatus())); connect(m_model, SIGNAL(shuffleChanged(bool)), SLOT(updateStatus())); + connect(m_player, SIGNAL(repeatableChanged(bool)), SLOT(updateStatus())); } PlayerObject::~PlayerObject() @@ -94,6 +95,11 @@ void PlayerObject::Play() m_player->play(); } +void PlayerObject::Repeat(bool in0) +{ + m_player->setRepeatable(in0); +} + PlayerStatus PlayerObject::GetStatus() { PlayerStatus st; @@ -112,7 +118,7 @@ PlayerStatus PlayerObject::GetStatus() st.state = 1; }; st.random = int(m_model->isShuffle()); - st.repeat = 0; //TODO add suppot for this + st.repeat = int(m_player->isRepeatable()); st.repeatPlayList = int(m_model->isRepeatableList()); return st; } -- cgit v1.2.3-13-gbd6f