]> git.sesse.net Git - vlc/blob - modules/gui/macosx/update.h
update module LIST file.
[vlc] / modules / gui / macosx / update.h
1 /*****************************************************************************
2  * update.h: MacOS X Check-For-Update window
3  *****************************************************************************
4  * Copyright © 2005-2008 the VideoLAN team
5  * $Id$
6  *
7  * Authors: Felix Kühne <fkuehne@users.sf.net>
8  *          Rafaël Carré <funman@videolanorg>
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., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
23  *****************************************************************************/
24
25 #ifdef HAVE_CONFIG_H
26 #   include "config.h"
27 #endif
28
29 #ifdef UPDATE_CHECK
30 #import <Cocoa/Cocoa.h>
31 #import "intf.h"
32 #import <vlc_update.h>
33
34
35 @interface VLCUpdate : NSObject
36 {
37     IBOutlet id o_btn_DownloadNow;
38     IBOutlet id o_btn_okay;
39     IBOutlet id o_fld_releaseNote;
40     IBOutlet id o_fld_currentVersion;
41     IBOutlet id o_fld_status;
42     IBOutlet id o_update_window;
43     IBOutlet id o_bar_checking;
44     IBOutlet id o_chk_updateOnStartup;
45
46     update_t * p_u;
47     vlc_bool_t b_checked;
48 }
49
50 - (IBAction)download:(id)sender;
51 - (IBAction)okay:(id)sender;
52 - (IBAction)changeCheckUpdateOnStartup:(id)sender;
53
54 - (BOOL)shouldCheckForUpdate;
55
56 - (void)showUpdateWindow;
57 - (void)checkForUpdate;
58 - (void)setUpToDate: (BOOL)uptodate;
59 - (void)performDownload:(NSString *)path;
60
61 + (VLCUpdate *)sharedInstance;
62
63 @end
64 #endif