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.17 2003/01/27 10:29: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;
33 /*****************************************************************************
34 * intf_sys_t: internal variables of the BeOS interface
35 *****************************************************************************/
38 msg_subscription_t * p_sub;
40 InterfaceWindow * p_window;
45 audio_volume_t i_saved_volume;
49 VlcWrapper * p_wrapper;
52 /*****************************************************************************
54 *****************************************************************************
55 * This class makes the link between the BeOS interface and the vlc core.
56 * There is only one VlcWrapper instance at any time, which is stored
57 * in p_intf->p_sys->p_wrapper
58 *****************************************************************************/
62 VlcWrapper( intf_thread_t *p_intf );
65 bool UpdateInputAndAOut();
73 BList * GetChannels( int i_cat );
74 void ToggleLanguage( int i_language );
75 void ToggleSubtitle( int i_subtitle );
76 const char * GetTimeAsString();
77 float GetTimeAsFloat();
78 void SetTimeAsFloat( float i_offset );
82 void OpenFiles( BList *o_files, bool replace = true );
83 void OpenDisc( BString o_type, BString o_device,
84 int i_title, int i_chapter );
86 char * PlaylistItemName( int );
87 int PlaylistCurrent();
93 bool PlaylistPlaying();
94 void GetPlaylistInfo( int32& currentIndex,
96 void PlaylistJumpTo( int );
97 void GetNavCapabilities( bool * canSkipPrev,
104 unsigned short GetVolume();
105 void SetVolume( int value );
107 void VolumeRestore();
115 void ToggleTitle( int i_title );
116 void TitleInfo( int32& currentIndex, int32& maxIndex );
119 BList * GetChapters();
122 void ToggleChapter( int i_chapter );
123 void ChapterInfo( int32& currentIndex, int32& maxIndex );
126 void LoadSubFile( char * psz_file );
129 intf_thread_t * p_intf;
130 input_thread_t * p_input;
131 playlist_t * p_playlist;
132 aout_instance_t * p_aout;