Frameworks/Sparkle.framework/Versions/A/PrivateHeaders/SUUnarchiver.h
branchadium-1.5.10.4
changeset 5985 5883c460b8cb
parent 5924 f0f2d246891c
equal deleted inserted replaced
5984:c42b73c02750 5985:5883c460b8cb
     4 //
     4 //
     5 //  Created by Andy Matuschak on 3/16/06.
     5 //  Created by Andy Matuschak on 3/16/06.
     6 //  Copyright 2006 Andy Matuschak. All rights reserved.
     6 //  Copyright 2006 Andy Matuschak. All rights reserved.
     7 //
     7 //
     8 
     8 
     9 #ifndef SUUNARCHIVER_H
       
    10 #define SUUNARCHIVER_H
       
    11 
       
    12 #import <Foundation/Foundation.h>
     9 #import <Foundation/Foundation.h>
    13 
    10 
    14 @class SUHost;
    11 NS_ASSUME_NONNULL_BEGIN
    15 @protocol SUUnarchiverDelegate;
    12 
       
    13 @protocol SUUnarchiverProtocol;
    16 
    14 
    17 @interface SUUnarchiver : NSObject
    15 @interface SUUnarchiver : NSObject
    18 
    16 
    19 @property (copy, readonly) NSString *archivePath;
    17 + (nullable id <SUUnarchiverProtocol>)unarchiverForPath:(NSString *)path updatingHostBundlePath:(nullable NSString *)hostPath decryptionPassword:(nullable NSString *)decryptionPassword;
    20 @property (copy, readonly) NSString *updateHostBundlePath;
       
    21 @property (weak) id<SUUnarchiverDelegate> delegate;
       
    22 
    18 
    23 + (SUUnarchiver *)unarchiverForPath:(NSString *)path updatingHostBundlePath:(NSString *)host;
       
    24 
       
    25 - (void)start;
       
    26 @end
    19 @end
    27 
    20 
    28 @protocol SUUnarchiverDelegate <NSObject>
    21 NS_ASSUME_NONNULL_END
    29 - (void)unarchiverDidFinish:(SUUnarchiver *)unarchiver;
       
    30 - (void)unarchiverDidFail:(SUUnarchiver *)unarchiver;
       
    31 @optional
       
    32 - (void)unarchiver:(SUUnarchiver *)unarchiver extractedProgress:(double)progress;
       
    33 @end
       
    34 
       
    35 #endif