summaryrefslogtreecommitdiffstats
path: root/macosx/HBStateFormatter+Private.h
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/HBStateFormatter+Private.h')
-rw-r--r--macosx/HBStateFormatter+Private.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/macosx/HBStateFormatter+Private.h b/macosx/HBStateFormatter+Private.h
new file mode 100644
index 000000000..ee71b8141
--- /dev/null
+++ b/macosx/HBStateFormatter+Private.h
@@ -0,0 +1,35 @@
+//
+// HBStateFormatter+Private.h
+// HandBrake
+//
+// Created by Damiano Galassi on 24/02/16.
+//
+//
+
+#import <Foundation/Foundation.h>
+#import "HBStateFormatter.h"
+#include "hb.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