1 /*****************************************************************************
3 *****************************************************************************
4 * Copyright (C) 2005 VideoLAN
5 * $Id: playlist.hpp 8659 2004-09-07 21:16:49Z gbazin $
7 * Authors: Antoine Cellerier <dionoea@videolan.org>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
22 *****************************************************************************/
27 #include "../utils/var_tree.hpp"
29 /// Variable for VLC playlist (new tree format)
30 class Playtree: public VarTree
33 Playtree( intf_thread_t *pIntf );
36 /// Remove the selected elements from the list
37 virtual void delSelected();
39 /// Execute the action associated to this item
40 virtual void action( VarTree *pItem );
42 /// Function called to notify playlist changes
45 /// Function called to notify playlist item update
46 void onUpdate( int id );
49 /// VLC playlist object
50 playlist_t *m_pPlaylist;
52 vlc_iconv_t iconvHandle;
54 /// Build the list from the VLC playlist
57 /// Update Node's children
58 void buildNode( playlist_item_t *p_node, VarTree &m_pNode );