aboutsummaryrefslogtreecommitdiffstats
path: root/Sparkle.framework/Versions/A/Headers/SUUpdatePermissionPrompt.h
diff options
context:
space:
mode:
authormattlangtree <matt@northofthree.com>2008-08-30 16:29:57 +0000
committermattlangtree <matt@northofthree.com>2008-08-30 16:29:57 +0000
commit3346039f0a92087d9c45cc8b20ff99fb95f85c38 (patch)
treecddb09046c01f9be2422039fc1d9fcbc508311d0 /Sparkle.framework/Versions/A/Headers/SUUpdatePermissionPrompt.h
parent7991997ee4ec10eb4fced5fe054b4af9b11f3b3f (diff)
downloadsequelpro-3346039f0a92087d9c45cc8b20ff99fb95f85c38.tar.gz
sequelpro-3346039f0a92087d9c45cc8b20ff99fb95f85c38.tar.bz2
sequelpro-3346039f0a92087d9c45cc8b20ff99fb95f85c38.zip
#1 - Add Software Update checking
- Added Sparkle.Framework to Project. - Added SUFeedURL key in Info.plist (set to http://sequelpro.com/appcast/app-releases.xml) - Updated "Check for Updates..." menu item in MainMenu.xib to now point to SparkleFramework updater
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