VLCLocalNetworkListCell.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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, readwrite) BOOL isDownloadable;
  27. @property (nonatomic, retain) NSURL *downloadURL;
  28. + (VLCLocalNetworkListCell *)cellWithReuseIdentifier:(NSString *)ident;
  29. + (CGFloat)heightOfCell;
  30. - (IBAction)triggerDownload:(id)sender;
  31. @end
  32. @protocol VLCLocalNetworkListCell <NSObject>
  33. - (void)triggerDownloadForCell:(VLCLocalNetworkListCell *)cell;
  34. @end