blob: f5b97f2fb3013296d65ace91d4472aad1d36fa2b (
plain)
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
|
/* HBStateFormatter.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>
#include "hb.h"
/**
* Instances of HBStateFormatter format and conver a hb_state_t struct to a textual representation.
*/
@interface HBStateFormatter : NSObject
/**
* Returns a string containing the formatted value of the provided hb_state_t struct.
*
* @param s hb_state_t
* @param title the title of the current job
*/
- (NSString *)stateToString:(hb_state_t)s title:(NSString *)title;
/**
* Returns a CGFloat containing the completion percent.
* the CGFloat range is [0,1]
*
* @param s hb_state_t
*/
- (CGFloat)stateToPercentComplete:(hb_state_t)s;
/**
* Break the output string in two lines.
*/
@property (nonatomic, readwrite) BOOL twoLines;
/**
* Shows the pass number in the output string
*/
@property (nonatomic, readwrite) BOOL showPassNumber;
@end
|