1 /*****************************************************************************
2 * intf_vlc_wrapper.h: BeOS plugin for vlc (derived from MacOS X port )
3 *****************************************************************************
4 * Copyright (C) 2001 VideoLAN
5 * $Id: intf_vlc_wrapper.h,v 1.3 2002/07/23 13:16:51 tcastley Exp $
7 * Authors: Florian G. Pflug <fgp@phlo.org>
8 * Jon Lech Johansen <jon-vl@nanocrew.net>
9 * Tony Casltey <tony@castley.net>
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
24 *****************************************************************************/
25 class InterfaceWindow;
27 /*****************************************************************************
28 * intf_sys_t: description and status of FB interface
29 *****************************************************************************/
32 InterfaceWindow *p_window;
35 /* The input thread */
36 input_thread_t * p_input;
38 /* The messages window */
39 // msg_subscription_t * p_sub;
42 vlc_bool_t b_disabled_menus;
51 /* Intf_VLCWrapper is a singleton class
52 (only one instance at any time) */
56 static Intf_VLCWrapper *getVLCWrapper(intf_thread_t *p_if);
62 /* playlist control */
68 void playlistSkip(int i);
69 void playlistGoto(int i);
71 PLAYLIST_REPEAT_CURRENT
75 PLAYLIST_BACKWARD_LOOP
77 PLAYLIST_REVERSE_RANDOM
86 void setStatus(int status);
88 void toggleProgram(int i_program);
89 void toggleTitle(int i_title);
90 void toggleChapter(int i_chapter);
91 void toggleLanguage(int i_language);
92 void toggleSubtitle(int i_subtitle);
98 BString* getTimeAsString();
99 float getTimeAsFloat();
100 void setTimeAsFloat(float i_offset);
101 BList* playlistAsArray();
103 /* open file/disc/network */
104 void openFiles(BList *o_files);
105 void openDisc(BString o_type, BString o_device, int i_title, int i_chapter);
106 void openNet(BString o_addr, int i_port);
107 void openNetChannel(BString o_addr, int i_port);
108 void openNetHTTP(BString o_addr);
112 /* menus management */
116 Intf_VLCWrapper( intf_thread_t *p_if );
117 es_descriptor_t * p_audio_es;
118 intf_thread_t *p_intf;