MPD: PlaylistPrint.hxx Source File

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
34 playlist_print_uris(Response &r, Partition &partition,
35 const playlist &playlist);
36
45 void
46 playlist_print_info(Response &r, Partition &partition,
47 const playlist &playlist,
48 unsigned start, unsigned end);
49
55 void
56 playlist_print_id(Response &r, Partition &partition,
57 const playlist &playlist, unsigned id);
58
64 bool
65 playlist_print_current(Response &r, Partition &partition,
66 const playlist &playlist);
67
71 void
72 playlist_print_find(Response &r, Partition &partition,
73 const playlist &playlist,
74 const SongFilter &filter);
75
79 void
80 playlist_print_changes_info(Response &r, Partition &partition,
81 const playlist &playlist,
82 uint32_t version,
83 unsigned start, unsigned end);
84
88 void
89 playlist_print_changes_position(Response &r,
90 const playlist &playlist,
91 uint32_t version,
92 unsigned start, unsigned end);
93
94 #endif
playlist
Definition: Playlist.hxx:34
Response
Definition: Response.hxx:31
playlist_print_info
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...
playlist_print_changes_position
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.
Partition
A partition of the Music Player Daemon.
Definition: Partition.hxx:42
filter
const Partition const char const SongFilter * filter
Definition: Count.hxx:34
playlist_print_changes_info
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.
playlist_print_current
bool playlist_print_current(Response &r, Partition &partition, const playlist &playlist)
Sends the current song to the client.
playlist_print_uris
void playlist_print_uris(Response &r, Partition &partition, const playlist &playlist)
Sends the whole playlist to the client, song URIs only.
SongFilter
Definition: SongFilter.hxx:47
playlist_print_find
void playlist_print_find(Response &r, Partition &partition, const playlist &playlist, const SongFilter &filter)
Find songs in the playlist.
playlist_print_id
void playlist_print_id(Response &r, Partition &partition, const playlist &playlist, unsigned id)
Sends the song with the specified id to the client.
partition
const Partition & partition
Definition: Count.hxx:34