WinGui: Fix another instance of the Caliburn vs Json.net sillyness where objects...
[HandBrake.git] / macosx / HBPreviewGenerator.h
blob88999b6a7ff687034262b4f80def5dc01fddc0b0
1 /* HBPreviewGenerator.h $
3 This file is part of the HandBrake source code.
4 Homepage: <http://handbrake.fr/>.
5 It may be used under the terms of the GNU General Public License. */
7 #import <Foundation/Foundation.h>
9 NS_ASSUME_NONNULL_BEGIN
11 @class HBCore;
12 @class HBJob;
14 @protocol HBPreviewGeneratorDelegate <NSObject>
16 - (void) reloadPreviews;
18 - (void) didCreateMovieAtURL: (NSURL *) fileURL;
19 - (void) didCancelMovieCreation;
21 - (void) updateProgress: (double) progress info: (NSString *) progressInfo;
23 @end
25 @interface HBPreviewGenerator : NSObject
27 @property (nonatomic, assign, nullable) id <HBPreviewGeneratorDelegate> delegate;
29 - (instancetype)init NS_UNAVAILABLE;
30 - (instancetype)initWithCore:(HBCore *)core job:(HBJob *)job NS_DESIGNATED_INITIALIZER;
32 /* Still image generator */
33 - (nullable CGImageRef) copyImageAtIndex: (NSUInteger) index shouldCache: (BOOL) cache CF_RETURNS_RETAINED;
34 @property (nonatomic, readonly) NSUInteger imagesCount;
35 @property (nonatomic, readonly) CGSize imageSize;
36 - (void) purgeImageCache;
38 @property (nonatomic, readonly, copy) NSString *info;
40 /* Video generator */
41 - (BOOL) createMovieAsyncWithImageAtIndex: (NSUInteger) index duration: (NSUInteger) seconds;
42 - (void) cancel;
44 @end
46 NS_ASSUME_NONNULL_END