Skip to content
This repository has been archived by the owner on Jul 29, 2020. It is now read-only.

Commit

Permalink
naming convention. more to come
Browse files Browse the repository at this point in the history
  • Loading branch information
zbowling committed May 18, 2012
1 parent 978fc6b commit 1b0b1f1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
11 changes: 2 additions & 9 deletions Objective-Zip/ZipFile.h
Expand Up @@ -54,16 +54,9 @@ typedef enum {
@class ZipWriteStream; @class ZipWriteStream;
@class FileInZipInfo; @class FileInZipInfo;


@interface ZipFile : NSObject { @interface ZipFile : NSObject
NSString *_fileName;
ZipFileMode _mode;


@private - (id) initWithPath:(NSString *)path mode:(ZipFileMode)mode;
zipFile _zipFile;
unzFile _unzFile;
}

- (id) initWithFileName:(NSString *)fileName mode:(ZipFileMode)mode;


- (ZipWriteStream *) writeFileInZipWithName:(NSString *)fileNameInZip compressionLevel:(ZipCompressionLevel)compressionLevel; - (ZipWriteStream *) writeFileInZipWithName:(NSString *)fileNameInZip compressionLevel:(ZipCompressionLevel)compressionLevel;
- (ZipWriteStream *) writeFileInZipWithName:(NSString *)fileNameInZip fileDate:(NSDate *)fileDate compressionLevel:(ZipCompressionLevel)compressionLevel; - (ZipWriteStream *) writeFileInZipWithName:(NSString *)fileNameInZip fileDate:(NSDate *)fileDate compressionLevel:(ZipCompressionLevel)compressionLevel;
Expand Down
13 changes: 10 additions & 3 deletions Objective-Zip/ZipFile.m
Expand Up @@ -40,13 +40,20 @@
#define FILE_IN_ZIP_MAX_NAME_LENGTH (256) #define FILE_IN_ZIP_MAX_NAME_LENGTH (256)




@implementation ZipFile @implementation ZipFile {
NSString *_fileName;
ZipFileMode _mode;

@private
zipFile _zipFile;
unzFile _unzFile;
}




- (id) initWithFileName:(NSString *)fileName mode:(ZipFileMode)mode { - (id) initWithPath:(NSString *)path mode:(ZipFileMode)mode {
self = [super init]; self = [super init];
if (self) { if (self) {
_fileName= fileName; _fileName= path;
_mode= mode; _mode= mode;


switch (mode) { switch (mode) {
Expand Down

0 comments on commit 1b0b1f1

Please sign in to comment.