diff options
author | Damiano Galassi <[email protected]> | 2019-09-05 13:20:29 +0200 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2019-09-05 13:20:29 +0200 |
commit | b7d83fe3985b18bf503564310252e7e724f7373a (patch) | |
tree | 0b64b0c93d991489be5f52e51ea3b5fbac6d471b /macosx | |
parent | a7c69adc115b9b25680061284f614329072502f7 (diff) |
MacGui: store the job activity log url.
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/HBQueue.m | 2 | ||||
-rw-r--r-- | macosx/HBQueueItem.h | 7 | ||||
-rw-r--r-- | macosx/HBQueueItem.m | 4 |
3 files changed, 11 insertions, 2 deletions
diff --git a/macosx/HBQueue.m b/macosx/HBQueue.m index 0d812b1d8..5046b12be 100644 --- a/macosx/HBQueue.m +++ b/macosx/HBQueue.m @@ -606,6 +606,8 @@ NSString * const HBQueueItemNotificationItemKey = @"HBQueueItemNotificationItemK self.currentLog = [[HBJobOutputFileWriter alloc] initWithJob:nextItem.job]; if (self.currentLog) { + nextItem.activityLogURL = self.currentLog.url; + dispatch_queue_t mainQueue = dispatch_get_main_queue(); [self.core.stderrRedirect addListener:self.currentLog queue:mainQueue]; [self.core.stdoutRedirect addListener:self.currentLog queue:mainQueue]; diff --git a/macosx/HBQueueItem.h b/macosx/HBQueueItem.h index ddcf1b6a5..3efdff466 100644 --- a/macosx/HBQueueItem.h +++ b/macosx/HBQueueItem.h @@ -30,12 +30,12 @@ typedef NS_ENUM(NSUInteger, HBQueueItemState) { @property (nonatomic, readonly) HBJob *job; /// Current state of the job. -@property (nonatomic, readwrite) HBQueueItemState state; +@property (nonatomic) HBQueueItemState state; /// The file URL of the source. @property (nonatomic, readonly) NSURL *fileURL; -/// The file URL at which the new file will be created. +/// The directory URL at which the new file will be created. @property (nonatomic, readonly, copy) NSURL *outputURL; /// The name of the new file that will be created. @@ -44,6 +44,9 @@ typedef NS_ENUM(NSUInteger, HBQueueItemState) { /// The file URL at which the new file will be created. @property (nonatomic, readonly, copy) NSURL *completeOutputURL; +/// The file URL at which the new file will be created. +@property (nonatomic, copy, nullable) NSURL *activityLogURL; + @property (nonatomic) NSTimeInterval encodeDuration; @property (nonatomic) NSTimeInterval pauseDuration; diff --git a/macosx/HBQueueItem.m b/macosx/HBQueueItem.m index 29aef3530..8e5b60aff 100644 --- a/macosx/HBQueueItem.m +++ b/macosx/HBQueueItem.m @@ -233,6 +233,8 @@ static NSString *versionKey = @"HBQueueItemVersion"; encodeObject(_job); encodeObject(_uuid); + encodeObject(_activityLogURL); + encodeDouble(_encodeDuration); encodeDouble(_pauseDuration); @@ -252,6 +254,8 @@ static NSString *versionKey = @"HBQueueItemVersion"; decodeObjectOrFail(_job, HBJob); decodeObjectOrFail(_uuid, NSString); + decodeObject(_activityLogURL, NSURL); + decodeDouble(_encodeDuration); decodeDouble(_pauseDuration); |