VLCNetworkListCell.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*****************************************************************************
  2. * VLCNetworkListCell.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 VLCNetworkListCell : 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. /// When there is no subtitle content, you might want to enable this
  24. @property (nonatomic, getter = isTitleLabelCentered) BOOL titleLabelCentered;
  25. @property (nonatomic, retain) NSString *title;
  26. @property (nonatomic, retain) NSString *subtitle;
  27. @property (nonatomic, retain) UIImage *icon;
  28. @property (nonatomic, retain) NSURL *iconURL;
  29. @property (nonatomic, readwrite) BOOL isDownloadable;
  30. + (VLCNetworkListCell *)cellWithReuseIdentifier:(NSString *)ident;
  31. + (CGFloat)heightOfCell;
  32. - (IBAction)triggerDownload:(id)sender;
  33. @end
  34. @protocol VLCNetworkListCellDelegate <NSObject>
  35. - (void)triggerDownloadForCell:(VLCNetworkListCell *)cell;
  36. @end