|
Freya
0.0.1
A Gtk3 MPD Client
|
00001 /*********************************************************** 00002 * This file is part of Freya 00003 * - A free MPD Gtk3 MPD Client - 00004 * 00005 * Authors: Christopher Pahl, Christoph Piechula, 00006 * Eduard Schneider 00007 * 00008 * Copyright (C) [2011-2012] 00009 * Hosted at: https://github.com/studentkittens/Freya 00010 * 00011 * __..--''``---....___ _..._ __ 00012 * /// //_.-' .-/"; ` ``<._ ``.''_ `. / // / 00013 * ///_.-' _..--.'_ `( ) ) // // 00014 * / (_..-' // (< _ ;_..__ ; `' / /// 00015 * / // // // `-._,_)' // / ``--...____..-' /// / // 00016 * Ascii-Art by Felix Lee <flee@cse.psu.edu> 00017 * 00018 * Freya is free software: you can redistribute it and/or modify 00019 * it under the terms of the GNU General Public License as published by 00020 * the Free Software Foundation, either version 3 of the License, or 00021 * (at your option) any later version. 00022 * 00023 * Freya is distributed in the hope that it will be useful, 00024 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00025 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00026 * GNU General Public License for more details. 00027 * 00028 * You should have received a copy of the GNU General Public License 00029 * along with Freya. If not, see <http://www.gnu.org/licenses/>. 00030 **************************************************************/ 00031 #ifndef FREYA_PLAYLIST_GUARD 00032 #define FREYA_PLAYLIST_GUARD 00033 00034 #include <mpd/client.h> 00035 #include "AbstractClientExtension.hh" 00036 #include "AbstractComposite.hh" 00037 #include "Song.hh" 00038 00039 namespace MPD 00040 { 00041 typedef struct mpd_playlist mpd_playlist; 00042 00046 class Playlist : public AbstractClientExtension, public AbstractComposite 00047 { 00048 public: 00049 Playlist(MPD::BaseClient& base_client, mpd_playlist& c_playlist); 00050 Playlist(const Playlist& copy_this); 00051 virtual ~Playlist(); 00052 00057 const char * get_path(); 00058 00063 time_t get_last_modified(); 00064 00068 void remove(); 00069 00073 void load(); 00074 00080 void rename(const char * new_name); 00081 00087 void add_song(const char * uri); 00088 00094 void add_song(MPD::Song& song); 00095 00096 private: 00097 mpd_playlist * mpc_playlist; 00098 00099 }; 00100 } 00101 00102 #endif /* end of include guard: FREYA_PLAYLIST_GUARD */
1.8.0