summaryrefslogtreecommitdiffstats
path: root/macosx/HBStateFormatter+Private.h
blob: e7d2e3624461fc670ce0339b3ad12ca59ccd278c (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
//
//  HBStateFormatter+Private.h
//  HandBrake
//
//  Created by Damiano Galassi on 24/02/16.
//
//

#import <Foundation/Foundation.h>
#import "HBStateFormatter.h"
#include "handbrake.h"

NS_ASSUME_NONNULL_BEGIN

@interface HBStateFormatter (Private)

/**
 *  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;

/**
 *  Returns a float containing the completion percent.
 *  the float range is [0,1]
 *
 *  @param s hb_state_t
 */
- (float)stateToPercentComplete:(hb_state_t)s;

@end

NS_ASSUME_NONNULL_END