CSFileDownUpCell.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // CSFilewDownUpCell.h
  3. // zhuxun
  4. //
  5. // Created by winsoft on 17/6/22.
  6. //
  7. //
  8. #import "BaseTableViewCell.h"
  9. #import "CSFileExtensionViewForCell.h"
  10. #import "CSFileDownUpFrameModel.h"
  11. #define CSFileDownUpCellIdentifier @"CSFileDownUpCellIdentifier"
  12. //统一路口.
  13. //打开扩展
  14. typedef void(^ExtensionSwitchBlock)(CSFileDownUpFrameModel *csFileDownUpFrameModel);
  15. //完成下载成功
  16. typedef void(^FileDownUpSuccessBlock)(CSFileDownUpFrameModel *csFileDownUpFrameModel);
  17. //暂停,恢复上传下载
  18. typedef void(^DownUpStatusBlock)(CSFileDownUpFrameModel *csFileDownUpFrameModel, DownUpStatus downUpStatus);
  19. @interface CSFileDownUpCell : BaseTableViewCell
  20. @property (nonatomic , strong) CSFileDownUpFrameModel *csFileDownUpFrameModel;
  21. @property (nonatomic , strong) ExtensionSwitchBlock extensionSwitchBlock;
  22. @property (nonatomic , strong) ExtensionOpBlock extensionOpBlock;
  23. @property (nonatomic , strong) DownUpStatusBlock downUpStatusBlock;
  24. @property (nonatomic , strong) FileDownUpSuccessBlock fileDownUpSuccessBlock;
  25. //根据status 选择CSFileCell 还是 ing cell
  26. + (CSFileDownUpCell *)fileDownUpCellWithCSFileDownUpFrameModel:(CSFileDownUpFrameModel*)csFileDownUpFrameModel tableView:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath identifier:(NSString *)identifier opItems:(NSArray *)opItems;
  27. @end