Sparkle support for automatic updates
[MacVim.git] / src / MacVim / Sparkle.framework / Versions / A / Headers / SUUpdateAlert.h
blob69c281749875f242743cdbf577fd1791d0185802
1 //
2 // SUUpdateAlert.h
3 // Sparkle
4 //
5 // Created by Andy Matuschak on 3/12/06.
6 // Copyright 2006 Andy Matuschak. All rights reserved.
7 //
9 #import <Cocoa/Cocoa.h>
11 typedef enum
13 SUInstallUpdateChoice,
14 SURemindMeLaterChoice,
15 SUSkipThisVersionChoice
16 } SUUpdateAlertChoice;
18 @class WebView, SUAppcastItem;
19 @interface SUUpdateAlert : NSWindowController {
20 SUAppcastItem *updateItem;
21 id delegate;
23 IBOutlet WebView *releaseNotesView;
24 IBOutlet NSTextField *description;
25 NSProgressIndicator *releaseNotesSpinner;
26 BOOL webViewFinishedLoading;
29 - initWithAppcastItem:(SUAppcastItem *)item;
30 - (void)setDelegate:delegate;
32 - (IBAction)installUpdate:sender;
33 - (IBAction)skipThisVersion:sender;
34 - (IBAction)remindMeLater:sender;
36 @end
38 @interface NSObject (SUUpdateAlertDelegate)
39 - (void)updateAlert:(SUUpdateAlert *)updateAlert finishedWithChoice:(SUUpdateAlertChoice)updateChoice;
40 @end