Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
acbc74c
commit 5035fb1
Showing
5 changed files
with
234 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// | ||
// GPGTempFile.h | ||
// GPGServices | ||
// | ||
// Created by Chris Fraire on 5/21/12. | ||
// Copyright (c) 2012 Chris Fraire. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
@interface GPGTempFile : NSObject { | ||
NSString *_filename; | ||
BOOL _shouldDeleteOnDealloc; | ||
BOOL _didDeleteFile; | ||
} | ||
|
||
// initialize a temp file using mkstemp | ||
+ (id)tempFileForTemplate:(NSString *)template suffixLen:(NSUInteger)suffixLength error:(NSError **)error; | ||
- (id)initForTemplate:(NSString *)template suffixLen:(NSUInteger)suffixLength error:(NSError **)error; | ||
|
||
@property (readonly) NSString *fileName; | ||
|
||
// default is YES | ||
@property (assign) BOOL shouldDeleteFileOnDealloc; | ||
|
||
- (void)deleteFile; | ||
|
||
@end |
Oops, something went wrong.