aboutsummaryrefslogtreecommitdiffstats
path: root/src/queue/Playlist.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-11-26 08:34:51 +0100
committerMax Kellermann <max@duempel.org>2014-11-26 08:34:51 +0100
commitac8c1d0a0145a420e88ee16d9e7584b0dfcfe82d (patch)
tree8e0557b4463871ccac794089a1627433da8cb37b /src/queue/Playlist.hxx
parent921d01b59d669ab727e2e6b14580ef064b344b0e (diff)
downloadmpd-ac8c1d0a0145a420e88ee16d9e7584b0dfcfe82d.tar.gz
mpd-ac8c1d0a0145a420e88ee16d9e7584b0dfcfe82d.tar.xz
mpd-ac8c1d0a0145a420e88ee16d9e7584b0dfcfe82d.zip
Playlist: move more functions into the class
Diffstat (limited to 'src/queue/Playlist.hxx')
-rw-r--r--src/queue/Playlist.hxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/queue/Playlist.hxx b/src/queue/Playlist.hxx
index c78950044..fb75377f0 100644
--- a/src/queue/Playlist.hxx
+++ b/src/queue/Playlist.hxx
@@ -146,11 +146,22 @@ protected:
void UpdateQueuedSong(PlayerControl &pc, const DetachedSong *prev);
/**
+ * Queue a song, addressed by its order number.
+ */
+ void QueueSongOrder(PlayerControl &pc, unsigned order);
+
+ /**
* Called when the player thread has started playing the
* "queued" song.
*/
void QueuedSongStarted(PlayerControl &pc);
+ /**
+ * The player has stopped for some reason. Check the error,
+ * and decide whether to re-start playback.
+ */
+ void ResumePlayback(PlayerControl &pc);
+
public:
void BeginBulk();
void CommitBulk(PlayerControl &pc);