1 /*****************************************************************************
3 *****************************************************************************
4 * Copyright (C) 2005 the VideoLAN team
7 * Authors: Antoine Cellerier <dionoea@videolan.org>
8 * Clément Stenac <zorglub@videolan.org>
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License along
21 * with this program; if not, write to the Free Software Foundation, Inc.,
22 * 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23 *****************************************************************************/
28 #include <vlc_playlist.h>
29 #include "../utils/var_tree.hpp"
31 /// Variable for VLC playlist (new tree format)
32 class Playtree: public VarTree
35 Playtree( intf_thread_t *pIntf );
38 /// Remove the selected elements from the list
39 virtual void delSelected();
41 /// Execute the action associated to this item
42 virtual void action( VarTree *pItem );
44 /// Function called to notify playlist changes
47 /// Function called to notify playlist item update
48 void onUpdateItem( int id );
50 /// Function called to notify about current playing item
51 void onUpdateCurrent( bool b_active );
53 /// Function called to notify playlist item append
54 void onAppend( playlist_add_t * );
56 /// Function called to notify playlist item delete
59 /// Items waiting to be appended
60 int i_items_to_append;
63 /// VLC playlist object
64 playlist_t *m_pPlaylist;
66 /// Build the list from the VLC playlist
69 /// Update Node's children
70 void buildNode( playlist_item_t *p_node, VarTree &m_pNode );
72 /// keep track of item being played
73 playlist_item_t* m_currentItem;