//
|
// ZipArchive.h
|
// ZipArchive
|
//
|
// Created by wuyx on 16/10/19.
|
// Copyright © 2016年 GHW. All rights reserved.
|
//
|
|
#import <UIKit/UIKit.h>
|
|
|
|
@protocol ZipArchiveDelegate <NSObject>
|
@optional
|
-(void) ErrorMessage:(NSString*) msg;
|
-(BOOL) OverWriteOperation:(NSString*) file;
|
|
@end
|
|
|
@interface ZipArchive : NSObject
|
//{
|
//@private
|
// zipFile _zipFile;
|
// unzFile _unzFile;
|
//
|
// NSString* _password;
|
// id _delegate;
|
//}
|
|
@property (nonatomic, retain) id delegate;
|
|
-(BOOL) CreateZipFile2:(NSString*) zipFile;
|
-(BOOL) CreateZipFile2:(NSString*) zipFile Password:(NSString*) password;
|
-(BOOL) addFileToZip:(NSString*) file newname:(NSString*) newname;
|
-(BOOL) CloseZipFile2;
|
|
-(BOOL) UnzipOpenFile:(NSString*) zipFile;
|
-(BOOL) UnzipOpenFile:(NSString*) zipFile Password:(NSString*) password;
|
-(BOOL) UnzipFileTo:(NSString*) path overWrite:(BOOL) overwrite;
|
-(BOOL) UnzipCloseFile;
|
@end
|