00001 /* MuSE - Multiple Streaming Engine 00002 * Copyright (C) 2000-2002 Denis Roio aka jaromil <jaromil@dyne.org> 00003 * 00004 * This source code is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU Public License as published 00006 * by the Free Software Foundation; either version 2 of the License, 00007 * or (at your option) any later version. 00008 * 00009 * This source code is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00012 * Please refer to the GNU Public License for more details. 00013 * 00014 * You should have received a copy of the GNU Public License along with 00015 * this source code; if not, write to: 00016 * Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00017 */ 00018 00023 #ifndef __playlist_h__ 00024 #define __playlist_h__ 00025 00026 #include <linklist.h> 00027 00031 class Url: public Entry { 00032 public: 00033 00037 Url(const char *file); 00039 00040 ~Url(); 00042 00043 char *path; 00045 }; 00046 00054 class Playlist : public Linklist { 00055 public: 00056 Playlist(); 00057 ~Playlist(); 00058 00059 char *addurl(const char *file); 00061 00062 char *addurl(const char *file, int pos); 00064 00068 char *song(int pos); 00070 00071 00072 char *selection(); 00074 00075 void cleanup(); 00077 }; 00078 00079 00080 #endif