Fixed a segfault crash that would occur if you stepped at the end of a script
[macgdbp.git] / Sparkle.framework / Versions / A / Headers / SUBasicUpdateDriver.h
1 //
2 // SUBasicUpdateDriver.h
3 // Sparkle,
4 //
5 // Created by Andy Matuschak on 4/23/08.
6 // Copyright 2008 Andy Matuschak. All rights reserved.
7 //
8
9 #ifndef SUBASICUPDATEDRIVER_H
10 #define SUBASICUPDATEDRIVER_H
11
12 #import <Cocoa/Cocoa.h>
13 #import "SUUpdateDriver.h"
14
15 @class SUAppcastItem, SUUnarchiver, SUAppcast, SUUnarchiver;
16 @interface SUBasicUpdateDriver : SUUpdateDriver {
17 NSBundle *hostBundle;
18 SUAppcastItem *updateItem;
19
20 NSURLDownload *download;
21 NSString *downloadPath;
22
23 NSString *relaunchPath;
24 }
25
26 - (void)checkForUpdatesAtURL:(NSURL *)appcastURL hostBundle:(NSBundle *)hb;
27
28 - (void)appcastDidFinishLoading:(SUAppcast *)ac;
29 - (void)appcast:(SUAppcast *)ac failedToLoadWithError:(NSError *)error;
30
31 - (BOOL)isItemNewer:(SUAppcastItem *)ui;
32 - (BOOL)hostSupportsItem:(SUAppcastItem *)ui;
33 - (BOOL)itemContainsSkippedVersion:(SUAppcastItem *)ui;
34 - (BOOL)itemContainsValidUpdate:(SUAppcastItem *)ui;
35 - (void)didFindValidUpdate;
36 - (void)didNotFindUpdate;
37
38 - (void)downloadUpdate;
39 - (void)download:(NSURLDownload *)d decideDestinationWithSuggestedFilename:(NSString *)name;
40 - (void)downloadDidFinish:(NSURLDownload *)d;
41 - (void)download:(NSURLDownload *)download didFailWithError:(NSError *)error;
42
43 - (void)extractUpdate;
44 - (void)unarchiverDidFinish:(SUUnarchiver *)ua;
45 - (void)unarchiverDidFail:(SUUnarchiver *)ua;
46
47 - (void)installUpdate;
48 - (void)installerFinishedForHostBundle:(NSBundle *)hb;
49 - (void)installerForHostBundle:(NSBundle *)hb failedWithError:(NSError *)error;
50
51 - (void)relaunchHostApp;
52 - (void)cleanUp;
53
54 - (void)abortUpdate;
55 - (void)abortUpdateWithError:(NSError *)error;
56
57 @end
58
59 #endif