35 lines
799 B
Objective-C
35 lines
799 B
Objective-C
//
|
|
// SUUnarchiver.h
|
|
// Sparkle
|
|
//
|
|
// Created by Andy Matuschak on 3/16/06.
|
|
// Copyright 2006 Andy Matuschak. All rights reserved.
|
|
//
|
|
|
|
#ifndef SUUNARCHIVER_H
|
|
#define SUUNARCHIVER_H
|
|
|
|
@class SUHost;
|
|
|
|
@interface SUUnarchiver : NSObject {
|
|
id delegate;
|
|
NSString *archivePath;
|
|
SUHost *updateHost;
|
|
}
|
|
|
|
+ (SUUnarchiver *)unarchiverForPath:(NSString *)path updatingHost:(SUHost *)host;
|
|
- (void)setDelegate:delegate;
|
|
|
|
- (void)start;
|
|
|
|
@end
|
|
|
|
@interface NSObject (SUUnarchiverDelegate)
|
|
- (void)unarchiver:(SUUnarchiver *)unarchiver extractedLength:(unsigned long)length;
|
|
- (void)unarchiverDidFinish:(SUUnarchiver *)unarchiver;
|
|
- (void)unarchiverDidFail:(SUUnarchiver *)unarchiver;
|
|
- (void)unarchiver:(SUUnarchiver *)unarchiver requiresPasswordReturnedViaInvocation:(NSInvocation *)invocation;
|
|
@end
|
|
|
|
#endif
|