]> git.sesse.net Git - vlc/blob - modules/gui/macosx_dialog_provider/dialogProvider.h
Fixed a bug in rect::isIncluded(), and added constness.
[vlc] / modules / gui / macosx_dialog_provider / dialogProvider.h
1 /*****************************************************************************
2  * dialogProvider.h: Minimal Dialog Provider for Mac OS X
3  *****************************************************************************
4  * Copyright (C) 2009-2010 the VideoLAN team
5  * $Id$
6  *
7  * Authors: Felix Paul Kühne <fkuehne at videolan dot org>
8  *          Pierre d'Herbemont <pdherbemont # videolan dot>
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23  *****************************************************************************/
24
25 #import <Cocoa/Cocoa.h>
26
27 #import <vlc_interface.h>
28
29 #import "VLCLoginPanel.h"
30 #import "VLCProgressPanel.h"
31
32 @interface VLCDialogDisplayer : NSObject
33 {
34     intf_thread_t *p_intf;
35     VLCProgressPanel *_currentProgressBarPanel;
36 }
37 - (intf_thread_t *)intf;
38 - (void)setIntf:(intf_thread_t *)p_mainintf;
39 - (void)globalNotificationReceived: (NSNotification *)theNotification;
40
41 + (NSDictionary *)dictionaryForDialog:(const char *)title :(const char *)message :(const char *)yes :(const char *)no :(const char *)cancel;
42
43 - (void)displayError:(NSDictionary *)dialog;
44 - (void)displayCritical:(NSDictionary *)dialog;
45 - (NSNumber *)displayQuestion:(NSDictionary *)dialog;
46 - (NSDictionary *)displayLogin:(NSDictionary *)dialog;
47
48 - (void)displayProgressBar:(NSDictionary *)dict;
49 - (void)updateProgressPanel:(NSDictionary *)dict;
50 - (void)destroyProgressPanel;
51 - (NSNumber *)checkProgressPanel;
52
53 - (void)updateExtensionDialog:(NSValue *)extensionDialog;
54
55 - (id)resultFromSelectorOnMainThread:(SEL)sel withObject:(id)object;
56 @end