]> git.sesse.net Git - vlc/blob - plugins/macosx/intf_vlc_wrapper.h
* Finally fixed MacOS X aspect ratio. If you know how to center the
[vlc] / plugins / macosx / intf_vlc_wrapper.h
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.4 2002/03/19 03:33:52 jlj Exp $
6  *
7  * Authors: Florian G. Pflug <fgp@phlo.org>
8  *          Jon Lech Johansen <jon-vl@nanocrew.net>
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  * 
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
23  *****************************************************************************/
24
25 typedef enum intf_speed_e
26 {
27     SPEED_SLOW = 0,
28     SPEED_NORMAL,
29     SPEED_FAST
30 } intf_speed_t;
31
32 /* Intf_VLCWrapper is a singleton class
33     (only one instance at any time) */
34
35 @interface Intf_VLCWrapper : NSObject
36 {    
37     intf_speed_t e_speed;
38 }
39
40 /* Initialization */
41 + (Intf_VLCWrapper *)instance;
42
43 - (bool)manage;
44 - (void)quit;
45
46 /* Playback control */
47 - (void)setSpeed:(intf_speed_t)e_speed;
48 - (NSString *)getTimeAsString;
49 - (float)getTimeAsFloat;
50 - (void)setTimeAsFloat:(float)i_offset;
51
52 /* Playlist control */
53 - (NSArray *)playlistAsArray;
54 - (int)playlistLength;
55 - (NSString *)playlistItem:(int)i_pos;
56 - (bool)playlistPlayCurrent;
57 - (void)playlistPause;
58 - (void)playlistStop;
59 - (void)playlistPlayNext;
60 - (void)playlistPlayPrev;
61 - (void)playlistPlayItem:(int)i_item;
62 - (void)playlistAdd:(NSString *)o_filename;
63 - (void)clearPlaylist;
64 - (bool)playlistPlaying;
65
66 @end