VLCNetworkListCell.h 1.8 KB

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