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.7 2002/11/26 01:06:08 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;
41 vlc_bool_t b_disabled_menus;
48 Intf_VLCWrapper * p_wrapper;
51 /*****************************************************************************
53 *****************************************************************************
54 * This class makes the link between the BeOS interface and the vlc core.
55 * There is only one Intf_VLCWrapper instance at any time, which is stored
56 * in p_intf->p_sys->p_wrapper
57 *****************************************************************************/
61 Intf_VLCWrapper( intf_thread_t *p_intf );
64 bool UpdateInputAndAOut();
73 /* playlist control */
75 char *PlaylistItemName( int );
76 int PlaylistCurrent();
83 void playlistJumpTo( int );
85 int playlistCurrentPos();
87 void playlistUnlock();
88 void playlistSkip(int i);
89 void playlistGoto(int i);
92 bool playlistPlaying();
93 BList* playlistAsArray();
94 void getPlaylistInfo( int32& currentIndex,
96 void getTitleInfo( int32& currentIndex,
98 void getChapterInfo( int32& currentIndex,
100 void getNavCapabilities( bool* canSkipPrev,
117 /* playback control */
119 void volume_restore();
120 void set_volume(int value);
128 const char* getTimeAsString();
129 float getTimeAsFloat();
130 void setTimeAsFloat( float i_offset );
132 /* open file/disc/network */
133 void openFiles( BList *o_files, bool replace = true );
134 void openDisc( BString o_type, BString o_device,
135 int i_title, int i_chapter );
136 void openNet( BString o_addr, int i_port );
137 void openNetChannel( BString o_addr, int i_port );
138 void openNetHTTP( BString o_addr );
140 /* menus management */
141 void toggleProgram( int i_program );
142 void toggleTitle( int i_title );
143 void toggleChapter( int i_chapter );
144 void toggleLanguage( int i_language );
145 void toggleSubtitle( int i_subtitle );
150 intf_thread_t * p_intf;
151 input_thread_t * p_input;
152 playlist_t * p_playlist;
153 aout_instance_t * p_aout;