1 /*****************************************************************************
2 * VlcWrapper.h: BeOS plugin for vlc (derived from MacOS X port)
3 *****************************************************************************
4 * Copyright (C) 2001 VideoLAN
5 * $Id: VlcWrapper.h,v 1.14 2003/01/17 18:19:43 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;
33 /*****************************************************************************
34 * intf_sys_t: internal variables of the BeOS interface
35 *****************************************************************************/
38 InterfaceWindow * p_window;
43 audio_volume_t i_saved_volume;
47 VlcWrapper * p_wrapper;
50 /*****************************************************************************
52 *****************************************************************************
53 * This class makes the link between the BeOS interface and the vlc core.
54 * There is only one VlcWrapper instance at any time, which is stored
55 * in p_intf->p_sys->p_wrapper
56 *****************************************************************************/
60 VlcWrapper( intf_thread_t *p_intf );
63 bool UpdateInputAndAOut();
71 BList * InputGetChannels( int i_cat );
72 void openFiles( BList *o_files, bool replace = true );
73 void openDisc( BString o_type, BString o_device,
74 int i_title, int i_chapter );
75 void LoadSubFile( char * psz_file );
76 void ToggleLanguage( int i_language );
77 void ToggleSubtitle( int i_subtitle );
78 const char* getTimeAsString();
79 float getTimeAsFloat();
80 void setTimeAsFloat( float i_offset );
85 char *PlaylistItemName( int );
86 int PlaylistCurrent();
93 void PlaylistSkip(int i);
94 void PlaylistGoto(int i);
96 BList* PlaylistAsArray();
97 bool PlaylistPlaying();
98 void getPlaylistInfo( int32& currentIndex,
100 void PlaylistJumpTo( int );
101 void getNavCapabilities( bool* canSkipPrev,
107 unsigned short GetVolume();
108 void SetVolume( int value );
110 void VolumeRestore();
121 void TitleInfo( int32& currentIndex, int32& maxIndex );
122 void ChapterInfo( int32& currentIndex, int32& maxIndex );
123 void toggleTitle( int i_title );
124 void toggleChapter( int i_chapter );
127 intf_thread_t * p_intf;
128 input_thread_t * p_input;
129 playlist_t * p_playlist;
130 aout_instance_t * p_aout;