summaryrefslogtreecommitdiffstats
path: root/macosx/HBRange.h
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/HBRange.h')
-rw-r--r--macosx/HBRange.h20
1 files changed, 14 insertions, 6 deletions
diff --git a/macosx/HBRange.h b/macosx/HBRange.h
index 06ea826ca..65a185ec1 100644
--- a/macosx/HBRange.h
+++ b/macosx/HBRange.h
@@ -6,6 +6,8 @@
#import <Foundation/Foundation.h>
+@class HBTitle;
+
typedef NS_ENUM(NSUInteger, HBRangeType) {
HBRangeTypeChapters,
HBRangeTypeFrames,
@@ -14,15 +16,21 @@ typedef NS_ENUM(NSUInteger, HBRangeType) {
@interface HBRange : NSObject <NSCoding>
+- (instancetype)initWithTitle:(HBTitle *)title;
+
@property (nonatomic, readwrite) HBRangeType type;
-@property (nonatomic, readwrite) NSInteger chapterStart;
-@property (nonatomic, readwrite) NSInteger chapterStop;
+@property (nonatomic, readwrite) int chapterStart;
+@property (nonatomic, readwrite) int chapterStop;
+
+@property (nonatomic, readwrite) int frameStart;
+@property (nonatomic, readwrite) int frameStop;
+
+@property (nonatomic, readwrite) int secondsStart;
+@property (nonatomic, readwrite) int secondsStop;
-@property (nonatomic, readwrite) NSInteger frameStart;
-@property (nonatomic, readwrite) NSInteger frameStop;
+@property (nonatomic, readonly) NSString *duration;
-@property (nonatomic, readwrite) NSInteger secondsStart;
-@property (nonatomic, readwrite) NSInteger secondsStop;
+@property (nonatomic, readwrite, assign) HBTitle *title;
@end