Commit ce908100 authored by Felix Paul Kühne's avatar Felix Paul Kühne

VLCLocalNetworkListCell: add delegate protocol to trigger a download if the button is touched

parent cb6d981f
......@@ -12,6 +12,8 @@
@interface VLCLocalNetworkListCell : UITableViewCell
@property (nonatomic, weak) id delegate;
@property (nonatomic, strong) IBOutlet UILabel *titleLabel;
@property (nonatomic, strong) IBOutlet UILabel *folderTitleLabel;
@property (nonatomic, strong) IBOutlet UILabel *subtitleLabel;
......@@ -31,3 +33,9 @@
- (IBAction)triggerDownload:(id)sender;
@end
@protocol VLCLocalNetworkListCell <NSObject>
- (void)triggerDownloadForCell:(VLCLocalNetworkListCell *)cell;
@end
......@@ -66,7 +66,8 @@
- (void)triggerDownload:(id)sender
{
NSLog(@"Download requires adaptation of VLCHTTPDownloadViewController");
if ([self.delegate respondsToSelector:@selector(triggerDownloadForCell:)])
[self.delegate triggerDownloadForCell:self];
}
+ (CGFloat)heightOfCell
......
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