aboutsummaryrefslogtreecommitdiffstats
path: root/Sparkle.framework/Versions/A/Headers/SUStatusChecker.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/SUStatusChecker.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/SUStatusChecker.h')
-rwxr-xr-xSparkle.framework/Versions/A/Headers/SUStatusChecker.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/Sparkle.framework/Versions/A/Headers/SUStatusChecker.h b/Sparkle.framework/Versions/A/Headers/SUStatusChecker.h
new file mode 100755
index 00000000..a1fca913
--- /dev/null
+++ b/Sparkle.framework/Versions/A/Headers/SUStatusChecker.h
@@ -0,0 +1,30 @@
+//
+// SUStatusChecker.h
+// Sparkle
+//
+// Created by Evan Schoenberg on 7/6/06.
+//
+
+#ifndef SUSTATUSCHECKER_H
+#define SUSTATUSCHECKER_H
+
+#import "SUUpdater.h"
+
+@class SUStatusChecker;
+
+@protocol SUStatusCheckerDelegate <NSObject>
+//versionString will be nil and isNewVersion will be NO if version checking fails.
+- (void)statusChecker:(SUStatusChecker *)statusChecker foundVersion:(NSString *)versionString isNewVersion:(BOOL)isNewVersion;
+@end
+
+@interface SUStatusChecker : SUUpdater {
+ id<SUStatusCheckerDelegate> scDelegate;
+}
+
+// Create a status checker which will notifiy delegate once the appcast version is determined.
+// Notification occurs via the method defined in the SUStatusCheckerDelegate informal protocol.
++ (SUStatusChecker *)statusCheckerForDelegate:(id<SUStatusCheckerDelegate>)delegate;
+
+@end
+
+#endif