2009-10-13 18:53:33 +02:00
|
|
|
/*
|
2014-01-13 22:30:36 +01:00
|
|
|
* Copyright (C) 2003-2014 The Music Player Daemon Project
|
2009-10-13 18:53:33 +02:00
|
|
|
* http://www.musicpd.org
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*! \file
|
|
|
|
* \brief Glue between playlist plugin and the play queue
|
|
|
|
*/
|
|
|
|
|
2013-01-02 18:38:32 +01:00
|
|
|
#ifndef MPD_PLAYLIST_QUEUE_HXX
|
|
|
|
#define MPD_PLAYLIST_QUEUE_HXX
|
2009-10-13 18:53:33 +02:00
|
|
|
|
2013-08-10 19:40:45 +02:00
|
|
|
#include "PlaylistError.hxx"
|
2009-10-13 18:53:33 +02:00
|
|
|
|
2013-09-05 09:37:54 +02:00
|
|
|
class SongEnumerator;
|
2009-10-13 18:53:33 +02:00
|
|
|
struct playlist;
|
2013-10-28 10:12:21 +01:00
|
|
|
struct PlayerControl;
|
2009-10-13 18:53:33 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Loads the contents of a playlist and append it to the specified
|
|
|
|
* play queue.
|
2009-12-26 12:55:24 +01:00
|
|
|
*
|
|
|
|
* @param uri the URI of the playlist, used to resolve relative song
|
|
|
|
* URIs
|
2012-02-09 23:44:33 +01:00
|
|
|
* @param start_index the index of the first song
|
|
|
|
* @param end_index the index of the last song (excluding)
|
2009-10-13 18:53:33 +02:00
|
|
|
*/
|
2013-10-19 19:50:54 +02:00
|
|
|
PlaylistResult
|
2013-09-05 09:37:54 +02:00
|
|
|
playlist_load_into_queue(const char *uri, SongEnumerator &e,
|
2012-02-09 23:44:33 +01:00
|
|
|
unsigned start_index, unsigned end_index,
|
2013-10-28 10:12:21 +01:00
|
|
|
playlist &dest, PlayerControl &pc,
|
2009-11-03 21:08:48 +01:00
|
|
|
bool secure);
|
2009-10-13 18:53:33 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Opens a playlist with a playlist plugin and append to the specified
|
|
|
|
* play queue.
|
|
|
|
*/
|
2013-10-19 19:50:54 +02:00
|
|
|
PlaylistResult
|
2009-11-03 21:08:48 +01:00
|
|
|
playlist_open_into_queue(const char *uri,
|
2012-02-09 23:44:33 +01:00
|
|
|
unsigned start_index, unsigned end_index,
|
2013-10-28 10:12:21 +01:00
|
|
|
playlist &dest, PlayerControl &pc,
|
2009-11-03 21:08:48 +01:00
|
|
|
bool secure);
|
2009-10-13 18:53:33 +02:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|