1 /*****************************************************************************
2 * CoreInteraction.h: MacOS X interface module
3 *****************************************************************************
4 * Copyright (C) 2011-2015 Felix Paul Kühne
7 * Authors: Felix Paul Kühne <fkuehne -at- videolan -dot- org>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22 *****************************************************************************/
24 #import <Cocoa/Cocoa.h>
26 @interface VLCCoreInteraction
: NSObject
28 + (VLCCoreInteraction
*)sharedInstance
;
29 @
property (readwrite
) int volume
;
30 @
property (readonly
, nonatomic
) float maxVolume
;
31 @
property (readwrite
) int playbackRate
;
32 @
property (nonatomic
, readwrite
) BOOL aspectRatioIsLocked
;
33 @
property (readonly
) int durationOfCurrentPlaylistItem
;
34 @
property (readonly
) NSURL
* URLOfCurrentPlaylistItem
;
35 @
property (readonly
) NSString
* nameOfCurrentPlaylistItem
;
36 @
property (nonatomic
, readwrite
) BOOL mute
;
47 - (void)forward
; //LEGACY SUPPORT
48 - (void)backward
; //LEGACY SUPPORT
49 - (void)forwardExtraShort
;
50 - (void)backwardExtraShort
;
52 - (void)backwardShort
;
53 - (void)forwardMedium
;
54 - (void)backwardMedium
;
70 - (void)startListeningWithAppleRemote
;
71 - (void)stopListeningWithAppleRemote
;
73 - (void)menuFocusActivate
;
74 - (void)moveMenuFocusLeft
;
75 - (void)moveMenuFocusRight
;
76 - (void)moveMenuFocusUp
;
77 - (void)moveMenuFocusDown
;
79 - (void)addSubtitlesToCurrentInput
:(NSArray
*)paths
;
81 - (BOOL
)performDragOperation
:(id
<NSDraggingInfo
>)sender
;
83 - (void)toggleFullscreen
;
85 - (BOOL
)fixPreferences
;
87 - (void)setVideoFilter
: (const char *)psz_name on
:(BOOL
)b_on
;
88 - (void)setVideoFilterProperty
: (const char *)psz_name forFilter
: (const char *)psz_filter integer
: (int)i_value
;
89 - (void)setVideoFilterProperty
: (const char *)psz_name forFilter
: (const char *)psz_filter
float: (float)f_value
;
90 - (void)setVideoFilterProperty
: (const char *)psz_name forFilter
: (const char *)psz_filter string
: (const char *)psz_value
;
91 - (void)setVideoFilterProperty
: (const char *)psz_name forFilter
: (const char *)psz_filter boolean
: (BOOL
)b_value
;
93 - (BOOL
)keyEvent
:(NSEvent
*)o_event
;
94 - (void)updateCurrentlyUsedHotkeys
;
95 - (BOOL
)hasDefinedShortcutKey
:(NSEvent
*)o_event force
:(BOOL
)b_force
;