2009-10-13 18:53:33 +02:00
|
|
|
/*
|
2021-01-01 19:54:25 +01:00
|
|
|
* Copyright 2003-2021 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
|
|
|
|
2014-02-02 14:37:52 +01:00
|
|
|
class SongLoader;
|
2013-09-05 09:37:54 +02:00
|
|
|
class SongEnumerator;
|
2009-10-13 18:53:33 +02:00
|
|
|
struct playlist;
|
2018-09-21 18:00:23 +02:00
|
|
|
class 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
|
|
|
*/
|
2016-02-28 10:51:07 +01:00
|
|
|
void
|
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,
|
2016-02-28 10:51:07 +01:00
|
|
|
const SongLoader &loader);
|
2009-10-13 18:53:33 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Opens a playlist with a playlist plugin and append to the specified
|
|
|
|
* play queue.
|
|
|
|
*/
|
2016-02-28 10:51:07 +01:00
|
|
|
void
|
2019-02-13 21:55:15 +01:00
|
|
|
playlist_open_into_queue(const LocatedUri &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,
|
2016-02-28 10:51:07 +01:00
|
|
|
const SongLoader &loader);
|
2009-10-13 18:53:33 +02:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|