// // SUInstaller.h // Sparkle // // Created by Andy Matuschak on 4/10/08. // Copyright 2008 Andy Matuschak. All rights reserved. // #ifndef SUINSTALLER_H #define SUINSTALLER_H #import #import "SUVersionComparisonProtocol.h" @class SUHost; @interface SUInstaller : NSObject { } + (NSString *) appPathInUpdateFolder:(NSString *)updateFolder forHost:(SUHost *)host; + (void) installFromUpdateFolder:(NSString *)updateFolder overHost:(SUHost *)host installationPath:(NSString *)installationPath delegate:delegate synchronously:(BOOL)synchronously versionComparator:(id )comparator; + (void) finishInstallationToPath:(NSString *)installationPath withResult:(BOOL)result host:(SUHost *)host error:(NSError *)error delegate:delegate; + (NSString*) updateFolder; + (void) notifyDelegateOfFailure: (NSDictionary*)dict; @end @interface NSObject (SUInstallerDelegateInformalProtocol) - (void)installerFinishedForHost:(SUHost *)host; - (void)installerForHost:(SUHost *)host failedWithError:(NSError *)error; @end #endif