-
Notifications
You must be signed in to change notification settings - Fork 36
/
TiZipArchive.h
executable file
·50 lines (39 loc) · 1.2 KB
/
TiZipArchive.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//
// TiZipArchive.h
//
//
// Created by aish on 08-9-11.
// acsolu@gmail.com
// Copyright 2008 Inc. All rights reserved.
//
// History:
// 09-11-2008 version 1.0 release
// 10-18-2009 version 1.1 support password protected zip files
// 10-21-2009 version 1.2 fix date bug
#import <UIKit/UIKit.h>
#include "minizip/zip.h"
#include "minizip/unzip.h"
@protocol TiZipArchiveDelegate <NSObject>
@optional
-(void) ErrorMessage:(NSString*) msg;
-(BOOL) OverWriteOperation:(NSString*) file;
@end
@interface TiZipArchive : NSObject {
@private
zipFile _zipFile;
unzFile _unzFile;
NSString* _password;
id _delegate;
}
@property (nonatomic, retain) id delegate;
-(BOOL) CreateZipFile2:(NSString*) zipFile;
// Kosso added to enable opening an existing zip to add files to.
-(BOOL) OpenZipFile2:(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