intf.h 3.69 KB
Newer Older
1
/*****************************************************************************
2
 * intf.h: MacOS X interface module
3
 *****************************************************************************
4
 * Copyright (C) 2002-2015 VLC authors and VideoLAN
5
 * $Id$
6
 *
7
 * Authors: Derk-Jan Hartman <hartman at videolan dot org>
8
 *          Felix Paul Kühne <fkuehne at videolan dot org>
9
 *          David Fuhrmann <david dot fuhrmann at googlemail dot com>
10
 *          Pierre d'Herbemont <pdherbemont # videolan org>
11 12 13 14 15
 *
 * 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.
16
 *
17 18 19 20 21 22 23
 * 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
dionoea's avatar
dionoea committed
24
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
25 26
 *****************************************************************************/

Rafaël Carré's avatar
Rafaël Carré committed
27 28 29 30
#ifdef HAVE_CONFIG_H
#   include "config.h"
#endif

31 32 33 34 35 36
#import <vlc_common.h>
#import <vlc_interface.h>
#import <vlc_playlist.h>
#import <vlc_vout.h>
#import <vlc_aout.h>
#import <vlc_input.h>
37
#import <vlc_vout_window.h>
38
#import <vlc_atomic.h>
39

40
#import <Cocoa/Cocoa.h>
41
#import "misc.h"
42
#import "MainWindow.h"
43
#import "VLCVoutWindowController.h"
44
#import "StringUtility.h"
45

46
/*****************************************************************************
hartman's avatar
hartman committed
47
 * Local prototypes.
48
 *****************************************************************************/
49
#define VLCIntf [[VLCMain sharedInstance] intf]
50

51
static NSString * VLCInputChangedNotification = @"VLCInputChangedNotification";
52 53

/*****************************************************************************
54
 * VLCMain interface
55
 *****************************************************************************/
56
@class AppleRemote;
57 58
@class VLCInfo;
@class VLCMainMenu;
59
@class VLCPlaylist;
60
@class VLCInputManager;
61
@class ResumeDialogController;
62 63 64 65 66
@class VLCSimplePrefs;
@class VLCPrefs;
@class VLCCoreDialogProvider;
@class VLCBookmarks;
@class VLCOpen;
67
@class VLCDebugMessageVisualizer;
68
@class VLCTrackSynchronization;
69

70
@interface VLCMain : NSObject <NSWindowDelegate, NSApplicationDelegate>
71
{
72
    IBOutlet VLCMainWindow *o_mainwindow;            /* VLCMainWindow */
73 74
}

75
@property (readonly) VLCVoutWindowController* voutController;
76
@property (readonly) BOOL nativeFullscreenMode;
77
@property (nonatomic, readwrite) BOOL playlistUpdatedSelectorInQueue;
hartman's avatar
hartman committed
78 79
+ (VLCMain *)sharedInstance;

80
- (intf_thread_t *)intf;
hartman's avatar
hartman committed
81 82
- (void)setIntf:(intf_thread_t *)p_mainintf;

83
- (VLCMainMenu *)mainMenu;
84
- (VLCMainWindow *)mainWindow;
85 86 87 88
- (VLCBookmarks *)bookmarks;
- (VLCOpen *)open;
- (VLCSimplePrefs *)simplePreferences;
- (VLCPrefs *)preferences;
89
- (VLCPlaylist *)playlist;
90
- (VLCCoreDialogProvider *)coreDialogProvider;
91
- (ResumeDialogController *)resumeDialog;
92
- (VLCInputManager *)inputManager;
93 94
- (VLCDebugMessageVisualizer *)debugMsgPanel;

95 96
- (VLCTrackSynchronization *)trackSyncPanel;

97 98
- (void)setActiveVideoPlayback:(BOOL)b_value;
- (BOOL)activeVideoPlayback;
99
- (void)applicationWillTerminate:(NSNotification *)notification;
100

Felix Paul Kühne's avatar
Felix Paul Kühne committed
101
- (void)showFullscreenController;
102

103 104
- (BOOL)isTerminating;

105 106
@end

107 108 109 110 111 112

/*****************************************************************************
 * VLCApplication interface
 *****************************************************************************/

@interface VLCApplication : NSApplication
Felix Paul Kühne's avatar
Felix Paul Kühne committed
113

114
@end
115 116

#import "helpers.h"