]> git.sesse.net Git - vlc/blob - modules/gui/wxwidgets/dialogs/vlm/vlm_wrapper.hpp
Merge branch 'master' of git@git.videolan.org:vlc
[vlc] / modules / gui / wxwidgets / dialogs / vlm / vlm_wrapper.hpp
1 /*****************************************************************************
2  * vlm_wrapper.hpp: Wrapper for VLM
3  *****************************************************************************
4  * Copyright (C) 1999-2005 the VideoLAN team
5  * $Id$
6  *
7  * Authors: ClĂ©ment Stenac <zorglub@videolan.org>
8  *
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.
13  *
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.
18  *
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., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22  *****************************************************************************/
23
24 /* This is not WX-specific */
25
26 #include <vlc/vlc.h>
27 #include <vlc_interface.h>
28 #include <vlc_vlm.h>
29 #include "dialogs/vlm/vlm_stream.hpp"
30
31 #include <vector>
32 #include <string>
33 using namespace std;
34
35 class VLMWrapper
36 {
37 public:
38     VLMWrapper( intf_thread_t * );
39     virtual ~VLMWrapper();
40
41     bool AttachVLM();
42     void LockVLM();
43     void UnlockVLM();
44
45     void AddBroadcast( const char*, const char*, const char*,
46                        bool b_enabled = true,
47                        bool b_loop = true );
48     void EditBroadcast( const char*, const char*, const char*,
49                        bool b_enabled = true,
50                        bool b_loop = true );
51     void AddVod( const char*, const char*, const char*,
52                        bool b_enabled = true,
53                        bool b_loop = true );
54     void EditVod( const char*, const char*, const char*,
55                        bool b_enabled = true,
56                        bool b_loop = true );
57
58     unsigned int NbMedia() { if( p_vlm ) return p_vlm->i_media; return 0; }
59     vlm_media_t *GetMedia( int i )
60     { if( p_vlm ) return p_vlm->media[i]; return NULL; }
61
62     vlm_t* GetVLM() { return p_vlm; }
63
64 protected:
65
66 private:
67     vlm_t *p_vlm;
68     intf_thread_t *p_intf;
69
70 };