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.6 2002/10/30 00:59:22 titer Exp $
7 * Authors: Florian G. Pflug <fgp@phlo.org>
8 * Jon Lech Johansen <jon-vl@nanocrew.net>
9 * Tony Castley <tony@castley.net>
10 * Stephan Aßmus <stippi@yellowbites.com>
11 * Eric Petit <titer@videolan.org>
13 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 2 of the License, or
16 * (at your option) any later version.
18 * This program is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
23 * You should have received a copy of the GNU General Public License
24 * along with this program; if not, write to the Free Software
25 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
26 *****************************************************************************/
28 #define SEEKSLIDER_RANGE 2048
30 class InterfaceWindow;
31 class Intf_VLCWrapper;
33 /*****************************************************************************
34 * intf_sys_t: internal variables of the BeOS interface
35 *****************************************************************************/
38 InterfaceWindow * p_window;
40 input_thread_t * p_input;
41 playlist_t * p_playlist;
42 aout_instance_t * p_aout;
45 vlc_bool_t b_disabled_menus;
52 Intf_VLCWrapper * p_vlc_wrapper;
55 /*****************************************************************************
57 *****************************************************************************
58 * This class makes the link between the BeOS interface and the vlc core.
59 * There is only one Intf_VLCWrapper instance at any time, which is stored
60 * in p_intf->p_sys->p_vlc_wrapper
61 *****************************************************************************/
65 Intf_VLCWrapper( intf_thread_t *p_intf );
71 /* playlist control */
77 void playlistJumpTo( int );
79 int playlistCurrentPos();
81 void playlistUnlock();
82 void playlistSkip(int i);
83 void playlistGoto(int i);
86 bool playlistPlaying();
87 BList* playlistAsArray();
88 void getPlaylistInfo( int32& currentIndex,
90 void getTitleInfo( int32& currentIndex,
92 void getChapterInfo( int32& currentIndex,
94 void getNavCapabilities( bool* canSkipPrev,
103 /* playback control */
105 void volume_restore();
106 void set_volume(int value);
114 const char* getTimeAsString();
115 float getTimeAsFloat();
116 void setTimeAsFloat( float i_offset );
118 /* open file/disc/network */
119 void openFiles( BList *o_files, bool replace = true );
120 void openDisc( BString o_type, BString o_device,
121 int i_title, int i_chapter );
122 void openNet( BString o_addr, int i_port );
123 void openNetChannel( BString o_addr, int i_port );
124 void openNetHTTP( BString o_addr );
126 /* menus management */
127 void toggleProgram( int i_program );
128 void toggleTitle( int i_title );
129 void toggleChapter( int i_chapter );
130 void toggleLanguage( int i_language );
131 void toggleSubtitle( int i_subtitle );
136 intf_thread_t *p_intf;