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>
30 lines
454 B
C++
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 */
|