|
Freya
0.0.1
A Gtk3 MPD Client
|
A Wrapper for mpd_playlist, also implements own client commands. More...
#include <Playlist.hh>
Public Member Functions | |
| Playlist (MPD::BaseClient &base_client, mpd_playlist &c_playlist) | |
| Playlist (const Playlist ©_this) | |
| virtual | ~Playlist () |
| const char * | get_path () |
| time_t | get_last_modified () |
| void | remove () |
| Remove this Playlist from MPD. | |
| void | load () |
| load this playlist into the queue (add to end) | |
| void | rename (const char *new_name) |
| Rename playlist. | |
| void | add_song (const char *uri) |
| Add song identified with path uri to this playlist. | |
| void | add_song (MPD::Song &song) |
| Add song to this playlist. | |
A Wrapper for mpd_playlist, also implements own client commands.
Definition at line 46 of file Playlist.hh.
| MPD::Playlist::Playlist | ( | MPD::BaseClient & | base_client, |
| mpd_playlist & | c_playlist | ||
| ) |
| MPD::Playlist::Playlist | ( | const Playlist & | copy_this | ) |
| virtual MPD::Playlist::~Playlist | ( | ) | [virtual] |
| void MPD::Playlist::add_song | ( | const char * | uri | ) |
Add song identified with path uri to this playlist.
| uri | a path to a song in the DB |
| void MPD::Playlist::add_song | ( | MPD::Song & | song | ) |
Add song to this playlist.
| song | a valid MPD::Song |
| time_t MPD::Playlist::get_last_modified | ( | ) |
| const char* MPD::Playlist::get_path | ( | ) | [virtual] |
Returns the path name of this playlist file. It does not begin with a slash.
Implements MPD::AbstractComposite.
| void MPD::Playlist::load | ( | ) |
load this playlist into the queue (add to end)
| void MPD::Playlist::remove | ( | ) |
| void MPD::Playlist::rename | ( | const char * | new_name | ) |
Rename playlist.
| new_name | The new name as string |
1.8.0