commit | author | age
|
6e1425
|
1 |
// |
H |
2 |
// ZipArchive.h |
|
3 |
// ZipArchive |
|
4 |
// |
|
5 |
// Created by wuyx on 16/10/19. |
|
6 |
// Copyright © 2016年 GHW. All rights reserved. |
|
7 |
// |
|
8 |
|
|
9 |
#import <UIKit/UIKit.h> |
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
@protocol ZipArchiveDelegate <NSObject> |
|
14 |
@optional |
|
15 |
-(void) ErrorMessage:(NSString*) msg; |
|
16 |
-(BOOL) OverWriteOperation:(NSString*) file; |
|
17 |
|
|
18 |
@end |
|
19 |
|
|
20 |
|
|
21 |
@interface ZipArchive : NSObject |
|
22 |
//{ |
|
23 |
//@private |
|
24 |
// zipFile _zipFile; |
|
25 |
// unzFile _unzFile; |
|
26 |
// |
|
27 |
// NSString* _password; |
|
28 |
// id _delegate; |
|
29 |
//} |
|
30 |
|
|
31 |
@property (nonatomic, retain) id delegate; |
|
32 |
|
|
33 |
-(BOOL) CreateZipFile2:(NSString*) zipFile; |
|
34 |
-(BOOL) CreateZipFile2:(NSString*) zipFile Password:(NSString*) password; |
|
35 |
-(BOOL) addFileToZip:(NSString*) file newname:(NSString*) newname; |
|
36 |
-(BOOL) CloseZipFile2; |
|
37 |
|
|
38 |
-(BOOL) UnzipOpenFile:(NSString*) zipFile; |
|
39 |
-(BOOL) UnzipOpenFile:(NSString*) zipFile Password:(NSString*) password; |
|
40 |
-(BOOL) UnzipFileTo:(NSString*) path overWrite:(BOOL) overwrite; |
|
41 |
-(BOOL) UnzipCloseFile; |
|
42 |
@end |
|
43 |
|
|
44 |
|