vlm_wrapper.hpp

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * vlm_wrapper.hpp: Wrapper for VLM
00003  *****************************************************************************
00004  * Copyright (C) 1999-2005 the VideoLAN team
00005  * $Id$
00006  *
00007  * Authors: Clément Stenac <zorglub@videolan.org>
00008  *
00009  * This program is free software; you can redistribute it and/or modify
00010  * it under the terms of the GNU General Public License as published by
00011  * the Free Software Foundation; either version 2 of the License, or
00012  * (at your option) any later version.
00013  *
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU General Public License
00020  * along with this program; if not, write to the Free Software
00021  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
00022  *****************************************************************************/
00023 
00024 /* This is not WX-specific */
00025 
00026 #include <vlc_common.h>
00027 #include <vlc_interface.h>
00028 #include <vlc_vlm.h>
00029 #include "dialogs/vlm/vlm_stream.hpp"
00030 
00031 #include <vector>
00032 #include <string>
00033 using namespace std;
00034 
00035 class VLMWrapper
00036 {
00037 public:
00038     VLMWrapper( intf_thread_t * );
00039     virtual ~VLMWrapper();
00040 
00041     bool AttachVLM();
00042     void LockVLM();
00043     void UnlockVLM();
00044 
00045     void AddBroadcast( const char*, const char*, const char*,
00046                        bool b_enabled = true,
00047                        bool b_loop = true );
00048     void EditBroadcast( const char*, const char*, const char*,
00049                        bool b_enabled = true,
00050                        bool b_loop = true );
00051     void AddVod( const char*, const char*, const char*,
00052                        bool b_enabled = true,
00053                        bool b_loop = true );
00054     void EditVod( const char*, const char*, const char*,
00055                        bool b_enabled = true,
00056                        bool b_loop = true );
00057 
00058     unsigned int NbMedia() { if( p_vlm ) return p_vlm->i_media; return 0; }
00059     vlm_media_t *GetMedia( int i )
00060     { if( p_vlm ) return p_vlm->media[i]; return NULL; }
00061 
00062     vlm_t* GetVLM() { return p_vlm; }
00063 
00064 protected:
00065 
00066 private:
00067     vlm_t *p_vlm;
00068     intf_thread_t *p_intf;
00069 
00070 };

Generated on Wed Aug 13 08:02:38 2008 for VLC by  doxygen 1.5.1