Made SBQueue independent from MP42File, moved the actual item processing to SBQueueItem.
This commit is contained in:
1 parent
d71d0b48c7
commit
2fef5d5200
4 files changed
+77
-77
No files matched your search
+10
-7
@@ -7,7 +7,6 @@
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
#import "SBQueueAction.h"
|
||||
|
||||
@class MP42File;
|
||||
@@ -30,29 +29,33 @@ typedef enum SBQueueItemStatus : NSInteger {
|
||||
NSDictionary *_attributes;
|
||||
NSMutableArray *_actions;
|
||||
|
||||
BOOL _cancelled;
|
||||
|
||||
id _delegate;
|
||||
|
||||
SBQueueItemStatus _status;
|
||||
}
|
||||
|
||||
@property (nonatomic, readwrite) SBQueueItemStatus status;
|
||||
|
||||
@property (nonatomic, readonly) MP42File *mp4File;
|
||||
@property (nonatomic, readonly) NSDictionary *attributes;
|
||||
|
||||
@property (nonatomic, readonly) NSURL *URL;
|
||||
@property (nonatomic, copy) NSURL *destURL;
|
||||
|
||||
@property (nonatomic, readonly) NSMutableArray *actions;
|
||||
@property (nonatomic, readonly) NSDictionary *attributes;
|
||||
|
||||
@property (nonatomic, readwrite) SBQueueItemStatus status;
|
||||
@property (nonatomic, assign) id delegate;
|
||||
|
||||
- (instancetype)initWithURL:(NSURL *)URL;
|
||||
+ (instancetype)itemWithURL:(NSURL *)URL;
|
||||
|
||||
- (instancetype)initWithMP4:(MP42File *)MP4;
|
||||
- (instancetype)initWithMP4:(MP42File *)MP4 url:(NSURL *)URL attributes:(NSDictionary *)dict;
|
||||
|
||||
+ (instancetype)itemWithMP4:(MP42File *)MP4;
|
||||
+ (instancetype)itemWithMP4:(MP42File *)MP4 url:(NSURL *)URL attributes:(NSDictionary *)dict;
|
||||
|
||||
- (void)addAction:(id<SBQueueActionProtocol>)action;
|
||||
|
||||
- (BOOL)prepareItem:(NSError **)outError;
|
||||
- (BOOL)processItem:(BOOL)optimize error:(NSError **)outError;
|
||||
|
||||
@end
|
||||
Reference in new issue
Block a user