1 /*****************************************************************************
2 * update.h: MacOS X Check-For-Update window
3 *****************************************************************************
4 * Copyright © 2005-2008 the VideoLAN team
7 * Authors: Felix Kühne <fkuehne@users.sf.net>
8 * Rafaël Carré <funman@videolanorg>
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., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
23 *****************************************************************************/
30 #import <Cocoa/Cocoa.h>
32 #import <vlc_update.h>
35 @interface VLCUpdate : NSObject
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;
52 - (IBAction)download:(id)sender;
53 - (IBAction)okay:(id)sender;
54 - (IBAction)changeCheckUpdateOnStartup:(id)sender;
56 - (BOOL)shouldCheckForUpdate;
58 - (void)showUpdateWindow;
59 - (void)checkForUpdate;
60 - (void)performDownload:(NSString *)path;
62 + (VLCUpdate *)sharedInstance;