]> git.sesse.net Git - vlc/blob - modules/gui/wxwidgets/dialogs/vlm/vlm_stream.hpp
Uniformize source files encoding
[vlc] / modules / gui / wxwidgets / dialogs / vlm / vlm_stream.hpp
1 /*****************************************************************************
2  * vlm_stream.hpp: Representation of a VLM Stream
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 /* FIXME : This is not WX-specific and should be moved to core */
25 #ifndef _VLM_STREAM_H_
26 #define _VLM_STREAM_H_
27
28 #include <vlc/vlc.h>
29 #include <vlc/intf.h>
30 #include <vlc_vlm.h>
31
32 #include <string>
33 using namespace std;
34
35 class VLMWrapper;
36
37 /**
38  * This class encapsulates a VLM Stream and provides additional services
39  */
40 class VLMStream
41 {
42 public:
43     VLMStream( intf_thread_t *, vlm_media_t * , VLMWrapper *);
44     virtual ~VLMStream();
45
46     vlm_media_t   *p_media;
47
48
49     void Delete();
50     virtual void Disable();
51     virtual void Enable();
52
53     /* FIXME: provide accessor */
54     VLMWrapper    *p_vlm;
55 protected:
56     intf_thread_t *p_intf;
57     friend class VLMWrapper;
58 private:
59 };
60
61 /**
62  * This class encapsulates a VLM Broadcast stream
63  */
64 class VLMBroadcastStream : public VLMStream
65 {
66 public:
67     VLMBroadcastStream( intf_thread_t *, vlm_media_t *, VLMWrapper *);
68     virtual ~VLMBroadcastStream();
69
70     void Play();
71     void Pause();
72     void Stop();
73
74 };
75
76 /**
77  * This class encapsulates a VLM VOD Stream
78  */
79 class VLMVODStream : public VLMStream
80 {
81 public:
82     VLMVODStream( intf_thread_t *, vlm_media_t *, VLMWrapper *);
83     virtual ~VLMVODStream();
84 };
85
86 #endif