]> git.sesse.net Git - vlc/blob - modules/gui/macosx/CoreInteraction.h
Win32: better eject code for UNICODE-APIs
[vlc] / modules / gui / macosx / CoreInteraction.h
1 /*****************************************************************************
2  * CoreInteraction.h: MacOS X interface module
3  *****************************************************************************
4  * Copyright (C) 2011-2012 Felix Paul Kühne
5  * $Id$
6  *
7  * Authors: Felix Paul Kühne <fkuehne -at- videolan -dot- org>
8  *
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.
13  *
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.
18  *
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  *****************************************************************************/
23
24 #import <Cocoa/Cocoa.h>
25 #import <vlc_common.h>
26 #import <vlc_interface.h>
27
28 @interface VLCCoreInteraction : NSObject {
29     int i_currentPlaybackRate;
30     mtime_t timeA, timeB;
31 }
32 + (VLCCoreInteraction *)sharedInstance;
33 @property (readwrite) int volume;
34 @property (readwrite) int playbackRate;
35 @property (nonatomic, readwrite) BOOL aspectRatioIsLocked;
36 @property (readonly) int durationOfCurrentPlaylistItem;
37 @property (readonly) NSURL * URLOfCurrentPlaylistItem;
38 @property (readonly) NSString * nameOfCurrentPlaylistItem;
39 @property (nonatomic, readwrite) BOOL mute;
40
41 - (void)play;
42 - (void)pause;
43 - (void)stop;
44 - (void)faster;
45 - (void)slower;
46 - (void)normalSpeed;
47 - (void)toggleRecord;
48 - (void)next;
49 - (void)previous;
50 - (void)forward;        //LEGACY SUPPORT
51 - (void)backward;       //LEGACY SUPPORT
52 - (void)forwardExtraShort;
53 - (void)backwardExtraShort;
54 - (void)forwardShort;
55 - (void)backwardShort;
56 - (void)forwardMedium;
57 - (void)backwardMedium;
58 - (void)forwardLong;
59 - (void)backwardLong;
60
61 - (void)repeatOne;
62 - (void)repeatAll;
63 - (void)repeatOff;
64 - (void)shuffle;
65 - (void)setAtoB;
66 - (void)resetAtoB;
67 - (void)updateAtoB;
68
69 - (void)volumeUp;
70 - (void)volumeDown;
71 - (void)toggleMute;
72
73 - (BOOL)performDragOperation:(id <NSDraggingInfo>)sender;
74
75 - (void)toggleFullscreen;
76
77 - (BOOL)fixPreferences;
78 @end