diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2008-12-21 09:56:05 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2008-12-21 09:56:05 +0000 |
| commit | ac7a7dffc31afe8a20a51db4ab7749bf4fdea67c (patch) | |
| tree | 3640dfe17870fb743463b852b257ffaf9a117bb4 /src/qmmpui/playlistmodel.cpp | |
| parent | ae5bd442b79d44b0925e0f9b0e77c3ed74483838 (diff) | |
| download | qmmp-ac7a7dffc31afe8a20a51db4ab7749bf4fdea67c.tar.gz qmmp-ac7a7dffc31afe8a20a51db4ab7749bf4fdea67c.tar.bz2 qmmp-ac7a7dffc31afe8a20a51db4ab7749bf4fdea67c.zip | |
more mpris methods support
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@697 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/playlistmodel.cpp')
| -rw-r--r-- | src/qmmpui/playlistmodel.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/qmmpui/playlistmodel.cpp b/src/qmmpui/playlistmodel.cpp index 97d18e156..812ae51b2 100644 --- a/src/qmmpui/playlistmodel.cpp +++ b/src/qmmpui/playlistmodel.cpp @@ -826,11 +826,13 @@ void PlayListModel::prepareForShufflePlaying(bool val) else m_play_state = new NormalPlayState(this); + emit shuffleChanged(val); } void PlayListModel::prepareForRepeatablePlaying(bool val) { is_repeatable_list = val; + emit repeatableListChanged(val); } void PlayListModel::doCurrentVisibleRequest() @@ -895,6 +897,16 @@ void PlayListModel::savePlaylist(const QString & f_name) } } +bool PlayListModel::isRepeatableList() const +{ + return is_repeatable_list; +} + +bool PlayListModel::isShuffle() const +{ + return FALSE; //TODO fix this +} + bool PlayListModel::isFileLoaderRunning() const { foreach(FileLoader* l,m_running_loaders) |
