MPD  0.20.15
PlaylistPrint.hxx
Go to the documentation of this file.
1 /*
2  * Copyright 2003-2017 The Music Player Daemon Project
3  * http://www.musicpd.org
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18  */
19 
20 #ifndef MPD_PLAYLIST_PRINT_HXX
21 #define MPD_PLAYLIST_PRINT_HXX
22 
23 #include <stdint.h>
24 
25 struct playlist;
26 struct Partition;
27 class SongFilter;
28 class Response;
29 
33 void
35  const playlist &playlist);
36 
45 void
47  const playlist &playlist,
48  unsigned start, unsigned end);
49 
55 void
57  const playlist &playlist, unsigned id);
58 
64 bool
66  const playlist &playlist);
67 
71 void
73  const playlist &playlist,
74  const SongFilter &filter);
75 
79 void
81  const playlist &playlist,
82  uint32_t version,
83  unsigned start, unsigned end);
84 
88 void
90  const playlist &playlist,
91  uint32_t version,
92  unsigned start, unsigned end);
93 
94 #endif
void playlist_print_info(Response &r, Partition &partition, const playlist &playlist, unsigned start, unsigned end)
Sends a range of the playlist to the client, including all known information about the songs...
void playlist_print_changes_position(Response &r, const playlist &playlist, uint32_t version, unsigned start, unsigned end)
Print changes since the specified playlist version, position only.
A partition of the Music Player Daemon.
Definition: Partition.hxx:42
const Partition const char const SongFilter * filter
Definition: Count.hxx:34
void playlist_print_changes_info(Response &r, Partition &partition, const playlist &playlist, uint32_t version, unsigned start, unsigned end)
Print detailed changes since the specified playlist version.
bool playlist_print_current(Response &r, Partition &partition, const playlist &playlist)
Sends the current song to the client.
void playlist_print_uris(Response &r, Partition &partition, const playlist &playlist)
Sends the whole playlist to the client, song URIs only.
void playlist_print_find(Response &r, Partition &partition, const playlist &playlist, const SongFilter &filter)
Find songs in the playlist.
void playlist_print_id(Response &r, Partition &partition, const playlist &playlist, unsigned id)
Sends the song with the specified id to the client.
const Partition & partition
Definition: Count.hxx:34