aboutsummaryrefslogtreecommitdiffstats
path: root/Sparkle.framework/Versions/A/Headers/SUUpdatePermissionPrompt.h
diff options
context:
space:
mode:
Diffstat (limited to 'Sparkle.framework/Versions/A/Headers/SUUpdatePermissionPrompt.h')
-rw-r--r--Sparkle.framework/Versions/A/Headers/SUUpdatePermissionPrompt.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/Sparkle.framework/Versions/A/Headers/SUUpdatePermissionPrompt.h b/Sparkle.framework/Versions/A/Headers/SUUpdatePermissionPrompt.h
new file mode 100644
index 00000000..24959da7
--- /dev/null
+++ b/Sparkle.framework/Versions/A/Headers/SUUpdatePermissionPrompt.h
@@ -0,0 +1,36 @@
+//
+// SUUpdatePermissionPrompt.h
+// Sparkle
+//
+// Created by Andy Matuschak on 1/24/08.
+// Copyright 2008 Andy Matuschak. All rights reserved.
+//
+
+#ifndef SUUPDATEPERMISSIONPROMPT_H
+#define SUUPDATEPERMISSIONPROMPT_H
+
+#import "Sparkle.h"
+
+typedef enum {
+ SUAutomaticallyCheck,
+ SUDoNotAutomaticallyCheck
+} SUPermissionPromptResult;
+
+@interface SUUpdatePermissionPrompt : SUWindowController {
+ NSBundle *hostBundle;
+ id delegate;
+ IBOutlet NSTextField *descriptionTextField;
+ IBOutlet NSView *moreInfoView;
+ IBOutlet NSButton *moreInfoButton;
+ BOOL isShowingMoreInfo, shouldSendProfile;
+}
++ (void)promptWithHostBundle:(NSBundle *)hb delegate:(id)d;
+- (IBAction)toggleMoreInfo:(id)sender;
+- (IBAction)finishPrompt:(id)sender;
+@end
+
+@interface NSObject (SUUpdatePermissionPromptDelegateInformalProtocol)
+- (void)updatePermissionPromptFinishedWithResult:(SUPermissionPromptResult)result;
+@end
+
+#endif