intf_vlc_wrapper.h 2.54 KB
Newer Older
1
/*****************************************************************************
2
 * intf_vlc_wrapper.h: MacOS X plugin for vlc
3 4
 *****************************************************************************
 * Copyright (C) 2001 VideoLAN
5
 * $Id: intf_vlc_wrapper.h,v 1.10 2002/06/02 12:16:31 massiot Exp $
6 7
 *
 * Authors: Florian G. Pflug <fgp@phlo.org>
8
 *          Jon Lech Johansen <jon-vl@nanocrew.net>
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
 *****************************************************************************/

25
/* Intf_VLCWrapper is a singleton class
26
    (only one instance at any time) */
27

28
@interface Intf_VLCWrapper : NSObject
29 30
{

31 32
}

33
/* initialization */
34
+ (Intf_VLCWrapper *)instance;
35

36 37
- (bool)manage;
- (void)quit;
38

39 40 41 42 43 44
/* playback control */
- (bool)playlistPlay;
- (void)playlistPause;
- (void)playlistStop;
- (void)playlistNext;
- (void)playlistPrev;
45 46
- (void)channelNext;
- (void)channelPrev;
47
- (void)loop;
48 49 50

- (void)playSlower;
- (void)playFaster;
51
- (void)mute;
52
- (void)maxvolume;
53 54
- (void)fullscreen;
- (void)eject;
55 56

/* playback info */
57 58 59
- (NSString *)getTimeAsString;
- (float)getTimeAsFloat;
- (void)setTimeAsFloat:(float)i_offset;
60

61
- (bool)playlistPlaying;
62
- (NSArray *)playlistAsArray;
63 64

/*
65 66 67 68 69
- (int)playlistLength;
- (NSString *)playlistItem:(int)i_pos;
- (void)playlistPlayItem:(int)i_item;
- (void)playlistAdd:(NSString *)o_filename;
- (void)clearPlaylist;
70 71 72 73 74 75 76
*/

/* open file/disc/network */
- (void)openFiles:(NSArray*)o_files;
- (void)openDisc:(NSString*)o_type device:(NSString*)o_device title:(int)i_title chapter:(int)i_chapter;
- (void)openNet:(NSString*)o_protocol addr:(NSString*)o_addr port:(int)i_port baddr:(NSString*)o_baddr;
- (void)openNetChannel:(NSString*)o_addr port:(int)i_port;
77 78 79 80 81 82 83

/* menus management */
- (void)toggleProgram:(id)sender;
- (void)toggleTitle:(id)sender;
- (void)toggleChapter:(id)sender;
- (void)toggleLanguage:(id)sender;
- (void)toggleSubtitle:(id)sender;
84
- (void)setupMenus;
85

86
@end