5 // Created by Andy Matuschak on 3/12/06.
6 // Copyright 2006 Andy Matuschak. All rights reserved.
9 #ifndef SUUPDATEALERT_H
10 #define SUUPDATEALERT_H
12 #import "SUWindowController.h"
16 SUInstallUpdateChoice
,
17 SURemindMeLaterChoice
,
18 SUSkipThisVersionChoice
19 } SUUpdateAlertChoice
;
21 @
class WebView
, SUAppcastItem
;
22 @interface SUUpdateAlert
: SUWindowController
{
23 SUAppcastItem
*updateItem
;
27 IBOutlet WebView
*releaseNotesView
;
28 IBOutlet NSTextField
*description
;
29 NSProgressIndicator
*releaseNotesSpinner
;
30 BOOL webViewFinishedLoading
;
33 - (id
)initWithAppcastItem
:(SUAppcastItem
*)item hostBundle
:(NSBundle
*)hostBundle
;
34 - (void)setDelegate
:delegate
;
36 - (IBAction
)installUpdate
:sender
;
37 - (IBAction
)skipThisVersion
:sender
;
38 - (IBAction
)remindMeLater
:sender
;
42 @interface
NSObject (SUUpdateAlertDelegate
)
43 - (void)updateAlert
:(SUUpdateAlert
*)updateAlert finishedWithChoice
:(SUUpdateAlertChoice
)updateChoice
;