Fixed a segfault crash that would occur if you stepped at the end of a script
[macgdbp.git] / Sparkle.framework / Versions / A / Headers / SUAutomaticUpdateAlert.h
1 //
2 // SUAutomaticUpdateAlert.h
3 // Sparkle
4 //
5 // Created by Andy Matuschak on 3/18/06.
6 // Copyright 2006 Andy Matuschak. All rights reserved.
7 //
8
9 #ifndef SUAUTOMATICUPDATEALERT_H
10 #define SUAUTOMATICUPDATEALERT_H
11
12 #import "SUWindowController.h"
13
14 typedef enum
15 {
16 SUInstallNowChoice,
17 SUInstallLaterChoice,
18 SUDoNotInstallChoice
19 } SUAutomaticInstallationChoice;
20
21 @class SUAppcastItem;
22 @interface SUAutomaticUpdateAlert : SUWindowController {
23 SUAppcastItem *updateItem;
24 id delegate;
25 NSBundle *hostBundle;
26 }
27
28 - (id)initWithAppcastItem:(SUAppcastItem *)item hostBundle:(NSBundle *)hostBundle delegate:delegate;
29 - (IBAction)installNow:sender;
30 - (IBAction)installLater:sender;
31 - (IBAction)doNotInstall:sender;
32
33 @end
34
35 @interface NSObject (SUAutomaticUpdateAlertDelegateProtocol)
36 - (void)automaticUpdateAlert:(SUAutomaticUpdateAlert *)aua finishedWithChoice:(SUAutomaticInstallationChoice)choice;
37 @end
38
39 #endif