aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/Sparkle.framework/Versions/A/Headers/SUBasicUpdateDriver.h
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2008-12-10 16:52:52 +0000
committerstuconnolly <stuart02@gmail.com>2008-12-10 16:52:52 +0000
commitfab9a6506cd04ec8f840c98772a80c44a79c74a7 (patch)
tree3cd483487bef381c934717f10df71d306c7eaf97 /Frameworks/Sparkle.framework/Versions/A/Headers/SUBasicUpdateDriver.h
parent4c3b208fad0572d8d1a79bba1bd1b8147fd0f8a6 (diff)
downloadsequelpro-fab9a6506cd04ec8f840c98772a80c44a79c74a7.tar.gz
sequelpro-fab9a6506cd04ec8f840c98772a80c44a79c74a7.tar.bz2
sequelpro-fab9a6506cd04ec8f840c98772a80c44a79c74a7.zip
MERGED r262:266 from branches/stuart02 to trunk to include new project structure.
Diffstat (limited to 'Frameworks/Sparkle.framework/Versions/A/Headers/SUBasicUpdateDriver.h')
-rw-r--r--Frameworks/Sparkle.framework/Versions/A/Headers/SUBasicUpdateDriver.h59
1 files changed, 59 insertions, 0 deletions
diff --git a/Frameworks/Sparkle.framework/Versions/A/Headers/SUBasicUpdateDriver.h b/Frameworks/Sparkle.framework/Versions/A/Headers/SUBasicUpdateDriver.h
new file mode 100644
index 00000000..bd0297c5
--- /dev/null
+++ b/Frameworks/Sparkle.framework/Versions/A/Headers/SUBasicUpdateDriver.h
@@ -0,0 +1,59 @@
+//
+// SUBasicUpdateDriver.h
+// Sparkle,
+//
+// Created by Andy Matuschak on 4/23/08.
+// Copyright 2008 Andy Matuschak. All rights reserved.
+//
+
+#ifndef SUBASICUPDATEDRIVER_H
+#define SUBASICUPDATEDRIVER_H
+
+#import <Cocoa/Cocoa.h>
+#import "SUUpdateDriver.h"
+
+@class SUAppcastItem, SUUnarchiver, SUAppcast, SUUnarchiver;
+@interface SUBasicUpdateDriver : SUUpdateDriver {
+ NSBundle *hostBundle;
+ SUAppcastItem *updateItem;
+
+ NSURLDownload *download;
+ NSString *downloadPath;
+
+ SUUnarchiver *unarchiver;
+
+ NSString *relaunchPath;
+}
+
+- (void)checkForUpdatesAtURL:(NSURL *)appcastURL hostBundle:(NSBundle *)hb;
+
+- (void)appcastDidFinishLoading:(SUAppcast *)ac;
+- (void)appcast:(SUAppcast *)ac failedToLoadWithError:(NSError *)error;
+
+- (BOOL)isItemNewer:(SUAppcastItem *)ui;
+- (BOOL)hostSupportsItem:(SUAppcastItem *)ui;
+- (BOOL)itemContainsSkippedVersion:(SUAppcastItem *)ui;
+- (BOOL)itemContainsValidUpdate:(SUAppcastItem *)ui;
+- (void)didFindValidUpdate;
+- (void)didNotFindUpdate;
+
+- (void)downloadUpdate;
+- (void)download:(NSURLDownload *)d decideDestinationWithSuggestedFilename:(NSString *)name;
+- (void)downloadDidFinish:(NSURLDownload *)d;
+- (void)download:(NSURLDownload *)download didFailWithError:(NSError *)error;
+
+- (void)extractUpdate;
+- (void)unarchiverDidFinish:(SUUnarchiver *)ua;
+- (void)unarchiverDidFail:(SUUnarchiver *)ua;
+
+- (void)installUpdate;
+- (void)installerFinishedForHostBundle:(NSBundle *)hb;
+- (void)installerForHostBundle:(NSBundle *)hb failedWithError:(NSError *)error;
+- (void)relaunchHostApp;
+
+- (void)abortUpdate;
+- (void)abortUpdateWithError:(NSError *)error;
+
+@end
+
+#endif