]> git.sesse.net Git - vlc/blobdiff - modules/gui/macosx/update.h
Disable update checking per default, re-enable with --enable-update-check
[vlc] / modules / gui / macosx / update.h
index 41d2d8dbb0555f3550ca9b72d33f7c729aa07415..52dc641991e1a78c921a64ec1800c10e1fcd3167 100644 (file)
@@ -1,10 +1,10 @@
 /*****************************************************************************
  * update.h: MacOS X Check-For-Update window
  *****************************************************************************
- * Copyright (C) 2005 the VideoLAN team
+ * Copyright (C) 2005-2007 the VideoLAN team
  * $Id$
  *
- * Authors: Felix K\9fhne <fkuehne@users.sf.net>
+ * Authors: Felix KΓΌhne <fkuehne@users.sf.net>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
  *****************************************************************************/
 
+#ifdef UPDATE_CHECK
 #import <Cocoa/Cocoa.h>
+#import <vlc_update.h>
 
 @interface VLCUpdate : NSObject
 {
-    IBOutlet id o_bar_progress;
-    IBOutlet id o_btn_cancel;
     IBOutlet id o_btn_DownloadNow;
     IBOutlet id o_btn_okay;
-    IBOutlet id o_fld_currentVersion;
-    IBOutlet id o_fld_dest;
-    IBOutlet id o_fld_elpTime;
-    IBOutlet id o_fld_releasedOn;
     IBOutlet id o_fld_releaseNote;
-    IBOutlet id o_fld_remTime;
-    IBOutlet id o_fld_size;
     IBOutlet id o_fld_source;
-    IBOutlet id o_fld_userVersion;
-    IBOutlet id o_lbl_currentVersion;
-    IBOutlet id o_lbl_mirror;
-    IBOutlet id o_lbl_releasedOn;
-    IBOutlet id o_lbl_size;
-    IBOutlet id o_lbl_userVersion;
-    IBOutlet id o_pop_mirror;
-    IBOutlet id o_progress_window;
+    IBOutlet id o_fld_currentVersionAndSize;
+    IBOutlet id o_fld_status;
     IBOutlet id o_update_window;
     IBOutlet id o_bar_checking;
-    IBOutlet id o_lbl_checkForUpdate;
-}
+    IBOutlet id o_chk_updateOnStartup;
 
+    NSString * o_urlOfBinary;
+    update_t * p_u;
+    intf_thread_t * p_intf;
+}
 
-- (IBAction)cancel:(id)sender;
 - (IBAction)download:(id)sender;
 - (IBAction)okay:(id)sender;
+- (IBAction)changeCheckUpdateOnStartup:(id)sender;
+
+- (BOOL)shouldCheckForUpdate;
 
 - (void)showUpdateWindow;
-- (void)initStrings;
+- (void)initInterface;
+- (void)checkForUpdate;
+- (void)performDownload:(NSString *)path;
 
 + (VLCUpdate *)sharedInstance;
 
 @end
+#endif