ocarina/libsaria/playlist/queue.cpp
Bryan Schumaker c2c13b2cbc libsaria: Create a single add_tracks() function
Derived classes need to implement a do_add_tracks() function instead so
I have a single place to notify the renderer and save the playlist.

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
2012-04-14 11:16:15 -04:00

30 lines
454 B
C++

// Copyright (c) 2012 Bryan Schumaker.
#include <libsaria/playlist.h>
namespace libsaria
{
Queue::Queue(unsigned int flags) : Playlist("Queue", flags, PLIST_QUEUE)
{
}
Queue::Queue(string name, unsigned int flags) : Playlist(name, flags, PLIST_QUEUE)
{
}
Queue::~Queue()
{
}
void Queue::do_add_tracks(list<Track *> &tracks)
{
add_to_end(tracks);
}
Track *Queue::next()
{
return pick_sequential();
}
}; /* Namespace: libsaria */