mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-28 05:14:34 +00:00
35 lines
773 B
Objective-C
35 lines
773 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;
|
|
@protocol SUUnarchiverDelegate;
|
|
|
|
@interface SUUnarchiver : NSObject {
|
|
id<SUUnarchiverDelegate> delegate;
|
|
NSString *archivePath;
|
|
SUHost *updateHost;
|
|
}
|
|
@property (assign) id<SUUnarchiverDelegate> delegate;
|
|
|
|
+ (SUUnarchiver *)unarchiverForPath:(NSString *)path updatingHost:(SUHost *)host;
|
|
|
|
- (void)start;
|
|
@end
|
|
|
|
@protocol SUUnarchiverDelegate <NSObject>
|
|
- (void)unarchiverDidFinish:(SUUnarchiver *)unarchiver;
|
|
- (void)unarchiverDidFail:(SUUnarchiver *)unarchiver;
|
|
@optional
|
|
- (void)unarchiver:(SUUnarchiver *)unarchiver extractedLength:(unsigned long)length;
|
|
@end
|
|
|
|
#endif
|