]> src.bluestatic.org Git - macgdbp.git/blob - Sparkle.framework/Versions/A/Headers/SUUpdateAlert.h
Use automatic validation of UI items for the toolbar buttons, rather than manually...
[macgdbp.git] / Sparkle.framework / Versions / A / Headers / SUUpdateAlert.h
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 //
8
9 #ifndef SUUPDATEALERT_H
10 #define SUUPDATEALERT_H
11
12 #import "SUWindowController.h"
13
14 typedef enum
15 {
16 SUInstallUpdateChoice,
17 SURemindMeLaterChoice,
18 SUSkipThisVersionChoice
19 } SUUpdateAlertChoice;
20
21 @class WebView, SUAppcastItem;
22 @interface SUUpdateAlert : SUWindowController {
23 SUAppcastItem *updateItem;
24 NSBundle *hostBundle;
25 id delegate;
26
27 IBOutlet WebView *releaseNotesView;
28 IBOutlet NSTextField *description;
29 NSProgressIndicator *releaseNotesSpinner;
30 BOOL webViewFinishedLoading;
31 }
32
33 - (id)initWithAppcastItem:(SUAppcastItem *)item hostBundle:(NSBundle *)hostBundle;
34 - (void)setDelegate:delegate;
35
36 - (IBAction)installUpdate:sender;
37 - (IBAction)skipThisVersion:sender;
38 - (IBAction)remindMeLater:sender;
39
40 @end
41
42 @interface NSObject (SUUpdateAlertDelegate)
43 - (void)updateAlert:(SUUpdateAlert *)updateAlert finishedWithChoice:(SUUpdateAlertChoice)updateChoice;
44 @end
45
46 #endif