VLCCoreInteraction.h 3.25 KB
Newer Older
1 2 3
/*****************************************************************************
 * CoreInteraction.h: MacOS X interface module
 *****************************************************************************
4
 * Copyright (C) 2011-2015 Felix Paul Kühne
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
 * $Id$
 *
 * Authors: Felix Paul Kühne <fkuehne -at- videolan -dot- org>
 *
 * 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., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
 *****************************************************************************/

#import <Cocoa/Cocoa.h>

26
@interface VLCCoreInteraction : NSObject
27

28
+ (VLCCoreInteraction *)sharedInstance;
29
@property (readwrite) int volume;
30
@property (readonly, nonatomic) float maxVolume;
31 32 33 34 35 36
@property (readwrite) int playbackRate;
@property (nonatomic, readwrite) BOOL aspectRatioIsLocked;
@property (readonly) int durationOfCurrentPlaylistItem;
@property (readonly) NSURL * URLOfCurrentPlaylistItem;
@property (readonly) NSString * nameOfCurrentPlaylistItem;
@property (nonatomic, readwrite) BOOL mute;
37

38
- (void)playOrPause;
39
- (void)pause;
40 41 42 43
- (void)stop;
- (void)faster;
- (void)slower;
- (void)normalSpeed;
44
- (void)toggleRecord;
45 46
- (void)next;
- (void)previous;
47 48 49 50 51 52 53 54 55 56
- (void)forward;        //LEGACY SUPPORT
- (void)backward;       //LEGACY SUPPORT
- (void)forwardExtraShort;
- (void)backwardExtraShort;
- (void)forwardShort;
- (void)backwardShort;
- (void)forwardMedium;
- (void)backwardMedium;
- (void)forwardLong;
- (void)backwardLong;
57 58 59 60 61

- (void)repeatOne;
- (void)repeatAll;
- (void)repeatOff;
- (void)shuffle;
62
- (void)setAtoB;
63
- (void)resetAtoB;
64
- (void)updateAtoB;
65 66 67

- (void)volumeUp;
- (void)volumeDown;
68
- (void)toggleMute;
69
- (void)showPosition;
70 71
- (void)startListeningWithAppleRemote;
- (void)stopListeningWithAppleRemote;
72

73 74 75 76 77 78
- (void)menuFocusActivate;
- (void)moveMenuFocusLeft;
- (void)moveMenuFocusRight;
- (void)moveMenuFocusUp;
- (void)moveMenuFocusDown;

79
- (void)addSubtitlesToCurrentInput:(NSArray *)paths;
80

81 82
- (BOOL)performDragOperation:(id <NSDraggingInfo>)sender;

83
- (void)toggleFullscreen;
84 85

- (BOOL)fixPreferences;
86

87 88 89 90 91
- (void)setVideoFilter: (const char *)psz_name on:(BOOL)b_on;
- (void)setVideoFilterProperty: (const char *)psz_name forFilter: (const char *)psz_filter integer: (int)i_value;
- (void)setVideoFilterProperty: (const char *)psz_name forFilter: (const char *)psz_filter float: (float)f_value;
- (void)setVideoFilterProperty: (const char *)psz_name forFilter: (const char *)psz_filter string: (const char *)psz_value;
- (void)setVideoFilterProperty: (const char *)psz_name forFilter: (const char *)psz_filter boolean: (BOOL)b_value;
92

93
- (BOOL)keyEvent:(NSEvent *)o_event;
94 95 96
- (void)updateCurrentlyUsedHotkeys;
- (BOOL)hasDefinedShortcutKey:(NSEvent *)o_event force:(BOOL)b_force;

97
@end