1 /*****************************************************************************
2 * dialogProvider.h: Minimal Dialog Provider for Mac OS X
3 *****************************************************************************
4 * Copyright (C) 2009-2010 the VideoLAN team
7 * Authors: Felix Paul Kühne <fkuehne at videolan dot org>
8 * Pierre d'Herbemont <pdherbemont # videolan dot>
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.
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.
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 *****************************************************************************/
25 #import <Cocoa/Cocoa.h>
27 #import <vlc_interface.h>
29 #import "VLCLoginPanel.h"
30 #import "VLCProgressPanel.h"
32 @interface VLCDialogDisplayer : NSObject
34 intf_thread_t *p_intf;
35 VLCProgressPanel *_currentProgressBarPanel;
37 - (intf_thread_t *)intf;
38 - (void)setIntf:(intf_thread_t *)p_mainintf;
39 - (void)globalNotificationReceived: (NSNotification *)theNotification;
41 + (NSDictionary *)dictionaryForDialog:(const char *)title :(const char *)message :(const char *)yes :(const char *)no :(const char *)cancel;
43 - (void)displayError:(NSDictionary *)dialog;
44 - (void)displayCritical:(NSDictionary *)dialog;
45 - (NSNumber *)displayQuestion:(NSDictionary *)dialog;
46 - (NSDictionary *)displayLogin:(NSDictionary *)dialog;
48 - (void)displayProgressBar:(NSDictionary *)dict;
49 - (void)updateProgressPanel:(NSDictionary *)dict;
50 - (void)destroyProgressPanel;
51 - (NSNumber *)checkProgressPanel;
53 - (void)updateExtensionDialog:(NSValue *)extensionDialog;
55 - (id)resultFromSelectorOnMainThread:(SEL)sel withObject:(id)object;