]> git.sesse.net Git - vlc/blob - modules/gui/skins2/vars/playlist.hpp
693f1c9ee93ff8696a81d26668e81273dd4418f9
[vlc] / modules / gui / skins2 / vars / playlist.hpp
1 /*****************************************************************************
2  * playlist.hpp
3  *****************************************************************************
4  * Copyright (C) 2003 the VideoLAN team
5  * $Id$
6  *
7  * Authors: Cyril Deguet     <asmax@via.ecp.fr>
8  *          Olivier Teulière <ipkiss@via.ecp.fr>
9  *
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.
14  *
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.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23  *****************************************************************************/
24
25 #ifndef PLAYLIST_HPP
26 #define PLAYLIST_HPP
27
28 #include "../utils/var_list.hpp"
29
30 /// Variable for VLC playlist
31 class Playlist: public VarList
32 {
33     public:
34         Playlist( intf_thread_t *pIntf );
35         virtual ~Playlist();
36
37         /// Remove the selected elements from the list
38         virtual void delSelected();
39
40         /// Execute the action associated to this item
41         virtual void action( Elem_t *pItem );
42
43         /// Function called to notify playlist changes
44         void onChange();
45
46     private:
47         /// VLC playlist object
48         playlist_t *m_pPlaylist;
49
50         /// Build the list from the VLC playlist
51         void buildList();
52 };
53
54
55 #endif