summaryrefslogtreecommitdiffstats
path: root/macosx/HBOutputFileWriter.h
blob: 3538cc76eb9a9d33086f3174c37f72c4a8325ca3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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