Freya  0.0.1
A Gtk3 MPD Client
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
MPD::Playlist Class Reference

A Wrapper for mpd_playlist, also implements own client commands. More...

#include <Playlist.hh>

Inheritance diagram for MPD::Playlist:
[legend]
Collaboration diagram for MPD::Playlist:
[legend]

Public Member Functions

 Playlist (MPD::BaseClient &base_client, mpd_playlist &c_playlist)
 Playlist (const Playlist &copy_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.

Detailed Description

A Wrapper for mpd_playlist, also implements own client commands.

Definition at line 46 of file Playlist.hh.


Constructor & Destructor Documentation

MPD::Playlist::Playlist ( MPD::BaseClient &  base_client,
mpd_playlist &  c_playlist 
)
MPD::Playlist::Playlist ( const Playlist &  copy_this)
virtual MPD::Playlist::~Playlist ( ) [virtual]

Member Function Documentation

void MPD::Playlist::add_song ( const char *  uri)

Add song identified with path uri to this playlist.

Parameters:
uria path to a song in the DB

Add song to this playlist.

Parameters:
songa valid MPD::Song
Returns:
the POSIX UTC time stamp of the last modification, or 0 if that is unknown
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.

load this playlist into the queue (add to end)

Remove this Playlist from MPD.

void MPD::Playlist::rename ( const char *  new_name)

Rename playlist.

Parameters:
new_nameThe new name as string

The documentation for this class was generated from the following file: