/*****************************************************************************
* CoreInteraction.h: MacOS X interface module
*****************************************************************************
- * Copyright (C) 2011 Felix Paul Kühne
+ * Copyright (C) 2011-2012 Felix Paul Kühne
* $Id$
*
* Authors: Felix Paul Kühne <fkuehne -at- videolan -dot- org>
#import <vlc_interface.h>
@interface VLCCoreInteraction : NSObject {
- BOOL b_lockAspectRatio;
+ int i_currentPlaybackRate;
+ mtime_t timeA, timeB;
+
+ float f_maxVolume;
}
+ (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)play;
+- (void)playOrPause;
+- (void)pause;
- (void)stop;
- (void)faster;
- (void)slower;
- (void)normalSpeed;
+- (void)toggleRecord;
- (void)next;
- (void)previous;
-- (void)forward;
-- (void)backward;
+- (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)mute;
-- (void)setVolume: (int)i_value;
+- (void)toggleMute;
+
+- (BOOL)performDragOperation:(id <NSDraggingInfo>)sender;
-- (void)setAspectRatioLocked:(BOOL)b_value;
-- (BOOL)aspectRatioIsLocked;
- (void)toggleFullscreen;
-- (id)voutView;
+
+- (BOOL)fixPreferences;
@end