VLCLocalNetworkListCell.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*****************************************************************************
  2. * VLCLocalNetworkListCell.h
  3. * VLC for iOS
  4. *****************************************************************************
  5. * Copyright (c) 2013 VideoLAN. All rights reserved.
  6. * $Id$
  7. *
  8. * Authors: Felix Paul Kühne <fkuehne # videolan.org>
  9. *
  10. * Refer to the COPYING file of the official project for license.
  11. *****************************************************************************/
  12. #import <UIKit/UIKit.h>
  13. @class VLCStatusLabel;
  14. @interface VLCLocalNetworkListCell : UITableViewCell
  15. @property (nonatomic, weak) id delegate;
  16. @property (nonatomic, strong) IBOutlet UILabel *titleLabel;
  17. @property (nonatomic, strong) IBOutlet UILabel *folderTitleLabel;
  18. @property (nonatomic, strong) IBOutlet UILabel *subtitleLabel;
  19. @property (nonatomic, strong) IBOutlet UIImageView *thumbnailView;
  20. @property (nonatomic, strong) IBOutlet UIButton *downloadButton;
  21. @property (nonatomic, strong) IBOutlet VLCStatusLabel *statusLabel;
  22. @property (nonatomic, readwrite) BOOL isDirectory;
  23. @property (nonatomic, retain) NSString *title;
  24. @property (nonatomic, retain) NSString *subtitle;
  25. @property (nonatomic, retain) UIImage *icon;
  26. @property (nonatomic, retain) NSURL *iconURL;
  27. @property (nonatomic, readwrite) BOOL isDownloadable;
  28. @property (nonatomic, retain) NSURL *downloadURL;
  29. + (VLCLocalNetworkListCell *)cellWithReuseIdentifier:(NSString *)ident;
  30. + (CGFloat)heightOfCell;
  31. - (IBAction)triggerDownload:(id)sender;
  32. @end
  33. @protocol VLCLocalNetworkListCell <NSObject>
  34. - (void)triggerDownloadForCell:(VLCLocalNetworkListCell *)cell;
  35. @end