diff options
author | dynaflash <[email protected]> | 2008-04-07 20:11:46 +0000 |
---|---|---|
committer | dynaflash <[email protected]> | 2008-04-07 20:11:46 +0000 |
commit | 2ce44139652d30c39d3e1f54e1ab0f0d22613e60 (patch) | |
tree | 3bf32e3ed6ec141faf5517608a8326094f8169ee /macosx/HBQueueController.mm | |
parent | 4715027b7977ccfec3d57f7cad429f7e5b93e282 (diff) |
MacGui: Enhance Growl notifications and send to metaX so that each encode is handled as it comes off of the queue.
- Previously only the last encode of a queue gave the finished growl notification and was sent to metaX. Now if specified by the user they happen as the encodes progress through the queue.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1388 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBQueueController.mm')
-rw-r--r-- | macosx/HBQueueController.mm | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/macosx/HBQueueController.mm b/macosx/HBQueueController.mm index a0241332e..3e0668e24 100644 --- a/macosx/HBQueueController.mm +++ b/macosx/HBQueueController.mm @@ -1473,6 +1473,8 @@ static NSString* HBQueuePauseResumeToolbarIdentifier = @"HBQueuePauseRe [fProgressBar setIndeterminate:NO]; [fProgressBar stopAnimation:nil]; [fProgressBar setDoubleValue:0.0]; + + } else @@ -1571,9 +1573,12 @@ static NSString* HBQueuePauseResumeToolbarIdentifier = @"HBQueuePauseRe withSubtitleInfo: YES]]; } } - else + { [fJobDescTextField setStringValue: @"No encodes pending"]; + + } + } //------------------------------------------------------------------------------------ @@ -1748,6 +1753,19 @@ static NSString* HBQueuePauseResumeToolbarIdentifier = @"HBQueuePauseRe //------------------------------------------------------------------------------------ - (void)currentJobChanged: (HBJob *) currentJob { + /* if the job has a destination path, lets perform finished job notifications in fHBController + * We call this here so that we pickup the last job in the queue and single encodes before fCurrentJob + * is released. So for the first job and the beginning of single encodes we check for the existence + * of a valid fCurrentJob jobGroup + */ + if ([[fCurrentJob jobGroup] destinationPath] && [fCurrentJobGroup status] != HBStatusCanceled) + { + /* Try to send the growl notification destinationPath*/ + [fHBController showGrowlDoneNotification: [[fCurrentJob jobGroup] destinationPath]]; + /* Try to send the file to metax*/ + [fHBController sendToMetaX: [[fCurrentJob jobGroup] destinationPath]]; + } + [currentJob retain]; [fCurrentJob release]; fCurrentJob = currentJob; @@ -1770,7 +1788,11 @@ static NSString* HBQueuePauseResumeToolbarIdentifier = @"HBQueuePauseRe // all other cases are assumed to be a successful encode. BTW, libhb // doesn't currently report errors back to the GUI. if ([fCurrentJobGroup status] != HBStatusCanceled) + { [fCurrentJobGroup setStatus:HBStatusCompleted]; + } + + } // Set the new group |