00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
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 };