]> git.sesse.net Git - vlc/blob - modules/gui/macosx/update.h
e87f0298be05dacbb76a2f4520412a14dc3451f7
[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 <vlc_update.h>
32
33 @interface VLCUpdate : NSObject
34 {
35     IBOutlet id o_btn_DownloadNow;
36     IBOutlet id o_btn_okay;
37     IBOutlet id o_fld_releaseNote;
38     IBOutlet id o_fld_currentVersion;
39     IBOutlet id o_fld_status;
40     IBOutlet id o_update_window;
41     IBOutlet id o_bar_checking;
42     IBOutlet id o_chk_updateOnStartup;
43
44     update_t * p_u;
45     vlc_bool_t b_checked;
46 }
47
48 - (IBAction)download:(id)sender;
49 - (IBAction)okay:(id)sender;
50 - (IBAction)changeCheckUpdateOnStartup:(id)sender;
51
52 - (BOOL)shouldCheckForUpdate;
53
54 - (void)showUpdateWindow;
55 - (void)checkForUpdate;
56 - (void)setUpToDate: (BOOL)uptodate;
57 - (void)performDownload:(NSString *)path;
58
59 + (VLCUpdate *)sharedInstance;
60
61 @end
62 #endif