]> git.sesse.net Git - vlc/blob - modules/gui/macosx/update.h
* coding style fixes (please don't do [NSString string], but use an empty constant...
[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 UPDATE_CHECK
26 #import <Cocoa/Cocoa.h>
27 #import "intf.h"
28 #import <vlc_update.h>
29
30 @interface VLCUpdate : NSObject
31 {
32     IBOutlet id o_btn_DownloadNow;
33     IBOutlet id o_btn_okay;
34     IBOutlet id o_fld_releaseNote;
35     IBOutlet id o_fld_currentVersion;
36     IBOutlet id o_fld_status;
37     IBOutlet id o_update_window;
38     IBOutlet id o_bar_checking;
39     IBOutlet id o_chk_updateOnStartup;
40
41     update_t * p_u;
42     vlc_bool_t b_checked;
43 }
44
45 - (IBAction)download:(id)sender;
46 - (IBAction)okay:(id)sender;
47 - (IBAction)changeCheckUpdateOnStartup:(id)sender;
48
49 - (BOOL)shouldCheckForUpdate;
50
51 - (void)showUpdateWindow;
52 - (void)checkForUpdate;
53 - (void)setUpToDate: (BOOL)uptodate;
54 - (void)performDownload:(NSString *)path;
55
56 + (VLCUpdate *)sharedInstance;
57
58 @end
59 #endif