Commit 3e82fa4c authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

download controller: add API so other objects can queue a download

parent a894f361
......@@ -24,4 +24,6 @@
- (IBAction)downloadAction:(id)sender;
- (IBAction)cancelDownload:(id)sender;
- (void)addURLToDownloadList:(NSURL *)aURL;
@end
......@@ -241,4 +241,11 @@
}
}
#pragma mark - communication with other VLC objects
- (void)addURLToDownloadList:(NSURL *)aURL
{
[_currentDownloads addObject:aURL];
[self _triggerNextDownload];
}
@end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment