VLCNetworkListCell.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. #import "VLCNetworkImageView.h"
  14. @class VLCStatusLabel;
  15. @interface VLCNetworkListCell : UITableViewCell
  16. @property (nonatomic, weak) id delegate;
  17. @property (nonatomic, strong) IBOutlet UILabel *titleLabel;
  18. @property (nonatomic, strong) IBOutlet UILabel *folderTitleLabel;
  19. @property (nonatomic, strong) IBOutlet UILabel *subtitleLabel;
  20. @property (nonatomic, strong) IBOutlet VLCNetworkImageView *thumbnailView;
  21. @property (nonatomic, strong) IBOutlet UIButton *downloadButton;
  22. @property (nonatomic, strong) IBOutlet VLCStatusLabel *statusLabel;
  23. @property (nonatomic, readwrite) BOOL isDirectory;
  24. /// When there is no subtitle content, you might want to enable this
  25. @property (nonatomic, getter = isTitleLabelCentered) BOOL titleLabelCentered;
  26. @property (nonatomic, retain) NSString *title;
  27. @property (nonatomic, retain) NSString *subtitle;
  28. @property (nonatomic, retain) UIImage *icon;
  29. @property (nonatomic, retain) NSURL *iconURL;
  30. @property (nonatomic, readwrite) BOOL isDownloadable;
  31. + (VLCNetworkListCell *)cellWithReuseIdentifier:(NSString *)ident;
  32. + (CGFloat)heightOfCell;
  33. - (IBAction)triggerDownload:(id)sender;
  34. @end
  35. @protocol VLCNetworkListCellDelegate <NSObject>
  36. - (void)triggerDownloadForCell:(VLCNetworkListCell *)cell;
  37. @end