1 /*****************************************************************************
2 * intf_vlc_wrapper.h: BeOS plugin for vlc (derived from MacOS X port )
3 *****************************************************************************
4 * Copyright (C) 2001 VideoLAN
5 * $Id: VlcWrapper.h,v 1.3 2002/10/10 23:11:52 titer Exp $
7 * Authors: Florian G. Pflug <fgp@phlo.org>
8 * Jon Lech Johansen <jon-vl@nanocrew.net>
9 * Tony Casltey <tony@castley.net>
10 * Stephan Aßmus <stippi@yellowbites.com>
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
25 *****************************************************************************/
26 class InterfaceWindow;
27 class Intf_VLCWrapper;
29 /*****************************************************************************
30 * intf_sys_t: description and status of FB interface
31 *****************************************************************************/
34 InterfaceWindow * p_window;
37 input_thread_t * p_input;
38 playlist_t * p_playlist;
39 aout_instance_t * p_aout;
42 vlc_bool_t b_disabled_menus;
49 Intf_VLCWrapper * p_vlc_wrapper;
52 /* Intf_VLCWrapper is a singleton class
53 (only one instance at any time) */
57 static Intf_VLCWrapper *getVLCWrapper(intf_thread_t *p_if);
60 /* static bool manage(); */
64 /* playlist control */
70 /* void playlistJumpTo( int pos );
71 int playlistCurrentPos();
75 void playlistSkip(int i);
76 void playlistGoto(int i);
79 PLAYLIST_REPEAT_CURRENT
83 PLAYLIST_BACKWARD_LOOP
85 PLAYLIST_REVERSE_RANDOM
88 void getNavCapabilities( bool* canSkipPrev,
93 // void channelNext();
94 // void channelPrev();
101 /* playback control */
103 void volume_restore();
104 void set_volume(int value);
110 // void fullscreen();
114 void setStatus(int status);
118 BString* getTimeAsString();
119 float getTimeAsFloat();
120 void setTimeAsFloat( float i_offset );
121 bool playlistPlaying();
122 BList* playlistAsArray();
124 /* open file/disc/network */
125 void openFiles( BList *o_files, bool replace = true );
126 void openDisc( BString o_type, BString o_device,
127 int i_title, int i_chapter );
128 void openNet( BString o_addr, int i_port );
129 void openNetChannel( BString o_addr, int i_port );
130 void openNetHTTP( BString o_addr );
132 /* menus management */
133 void toggleProgram( int i_program );
134 void toggleTitle( int i_title );
135 void toggleChapter( int i_chapter );
136 void toggleLanguage( int i_language );
137 void toggleSubtitle( int i_subtitle );
142 void playlistJumpTo( int );
144 int playlistCurrentPos();
146 void playlistUnlock();
150 Intf_VLCWrapper( intf_thread_t *p_intf );
151 es_descriptor_t * p_audio_es;
152 intf_thread_t *p_intf;