diff options
Diffstat (limited to 'macosx/HBTitle.h')
-rw-r--r-- | macosx/HBTitle.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/macosx/HBTitle.h b/macosx/HBTitle.h new file mode 100644 index 000000000..e0d5ebdf6 --- /dev/null +++ b/macosx/HBTitle.h @@ -0,0 +1,34 @@ +/* HBTitle.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" + +/** + * HBTitles is an interface to the low-level hb_title_t. + * the properties ara lazy-loaded. + */ +@interface HBTitle : NSObject + +/** + * Returns an HBTitle object initialized with a given title. + * It must be called only inside HBCore. + * + * @param title the lihhb title to wrap. + * @param featured whether the title is the featured one or not. + */ +- (instancetype)initWithTitle:(hb_title_t *)title featured:(BOOL)featured; + +@property (nonatomic, readonly) NSString *name; +@property (nonatomic, readonly, getter=isFeatured) BOOL featured; + +@property (nonatomic, readonly) hb_title_t *title; + +@property (nonatomic, readonly) NSArray *audioTracks; +@property (nonatomic, readonly) NSArray *subtitlesTracks; +@property (nonatomic, readonly) NSArray *chapters; + +@end |