VLCCoreInteraction.h 2.94 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
 * $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.
 *****************************************************************************/

24
#include <vlc_common.h>
25 26
#import <Cocoa/Cocoa.h>

27
@interface VLCCoreInteraction : NSObject
28

29
+ (VLCCoreInteraction *)sharedInstance;
30
@property (readwrite) int volume;
31
@property (readonly, nonatomic) float maxVolume;
32 33 34 35 36 37
@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;
38

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

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

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

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

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

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

84
- (void)toggleFullscreen;
85

86
- (BOOL)fixIntfSettings;
87

88
- (void)setVideoFilter: (const char *)psz_name on:(BOOL)b_on;
89
- (void)setVideoFilterProperty: (const char *)psz_property forFilter: (const char *)psz_filter withValue: (vlc_value_t)value;
90

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

95
@end