You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
97 lines
3.3 KiB
97 lines
3.3 KiB
/*****************************************************************************
|
|
* CoreInteraction.h: MacOS X interface module
|
|
*****************************************************************************
|
|
* Copyright (C) 2011-2015 Felix Paul Kühne
|
|
* $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>
|
|
|
|
@interface VLCCoreInteraction : NSObject
|
|
|
|
+ (VLCCoreInteraction *)sharedInstance;
|
|
@property (readwrite) int volume;
|
|
@property (readonly, nonatomic) float maxVolume;
|
|
@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;
|
|
|
|
- (void)playOrPause;
|
|
- (void)pause;
|
|
- (void)stop;
|
|
- (void)faster;
|
|
- (void)slower;
|
|
- (void)normalSpeed;
|
|
- (void)toggleRecord;
|
|
- (void)next;
|
|
- (void)previous;
|
|
- (void)forward; //LEGACY SUPPORT
|
|
- (void)backward; //LEGACY SUPPORT
|
|
- (void)forwardExtraShort;
|
|
- (void)backwardExtraShort;
|
|
- (void)forwardShort;
|
|
- (void)backwardShort;
|
|
- (void)forwardMedium;
|
|
- (void)backwardMedium;
|
|
- (void)forwardLong;
|
|
- (void)backwardLong;
|
|
|
|
- (void)repeatOne;
|
|
- (void)repeatAll;
|
|
- (void)repeatOff;
|
|
- (void)shuffle;
|
|
- (void)setAtoB;
|
|
- (void)resetAtoB;
|
|
- (void)updateAtoB;
|
|
|
|
- (void)volumeUp;
|
|
- (void)volumeDown;
|
|
- (void)toggleMute;
|
|
- (void)showPosition;
|
|
- (void)startListeningWithAppleRemote;
|
|
- (void)stopListeningWithAppleRemote;
|
|
|
|
- (void)menuFocusActivate;
|
|
- (void)moveMenuFocusLeft;
|
|
- (void)moveMenuFocusRight;
|
|
- (void)moveMenuFocusUp;
|
|
- (void)moveMenuFocusDown;
|
|
|
|
- (void)addSubtitlesToCurrentInput:(NSArray *)paths;
|
|
|
|
- (BOOL)performDragOperation:(id <NSDraggingInfo>)sender;
|
|
|
|
- (void)toggleFullscreen;
|
|
|
|
- (BOOL)fixPreferences;
|
|
|
|
- (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;
|
|
|
|
- (BOOL)keyEvent:(NSEvent *)o_event;
|
|
- (void)updateCurrentlyUsedHotkeys;
|
|
- (BOOL)hasDefinedShortcutKey:(NSEvent *)o_event force:(BOOL)b_force;
|
|
|
|
@end
|
|
|