diff options
author | ritsuka <[email protected]> | 2015-02-20 07:59:38 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2015-02-20 07:59:38 +0000 |
commit | 214fed29cdc153d4c0581bc0516b258a108cef22 (patch) | |
tree | 105b8454670e28f33a721a4d0b328dc2565a2446 /macosx/HBOutputFileWriter.h | |
parent | fea0f7fa7473a10e56d6da95f47e03ba44ad2c35 (diff) |
MacGui: refactor the stderr/stdout redirect code to be more modular.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6927 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBOutputFileWriter.h')
-rw-r--r-- | macosx/HBOutputFileWriter.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/macosx/HBOutputFileWriter.h b/macosx/HBOutputFileWriter.h new file mode 100644 index 000000000..3538cc76e --- /dev/null +++ b/macosx/HBOutputFileWriter.h @@ -0,0 +1,23 @@ +/* HBOutputFileWriter.h $ + + This file is part of the HandBrake source code. + Homepage: <http://handbrake.fr/>. + It may be used under the terms of the GNU General Public License. */ + +#import <Foundation/Foundation.h> +#import "HBOutputRedirect.h" + +/** + * This class is used to listen to HBOutputRedirect + * and write the output to a file. + */ +@interface HBOutputFileWriter : NSObject <HBOutputRedirectListening> + +- (instancetype)initWithFileURL:(NSURL *)url; + +- (void)write:(NSString *)text; +- (void)clear; + +@property (nonatomic, readonly) NSURL *url; + +@end |