downloadManager.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // downloadManager.h
  3. // 隐私保护
  4. //
  5. // Created by xd h on 2024/1/9.
  6. //
  7. #import <Foundation/Foundation.h>
  8. //#import "couldPhoneFileModel.h"
  9. #import "couldPhoneFileListModel.h"
  10. #import "uploadFileManager.h"
  11. #define download_tableName [[NSString alloc] initWithFormat:@"download_tableName_%@",[connectDeviceManager shareInstance].DeviceThirdIdMod.data.sn]
  12. NS_ASSUME_NONNULL_BEGIN
  13. @interface downloadManager : NSObject
  14. //数据库数据
  15. @property (nonatomic, strong) NSMutableArray * _Nullable databaseArr;
  16. @property (nonatomic, strong) NSMutableArray * _Nullable downLoadFileModelDataArr;
  17. @property (nonatomic, strong) couldPhoneFileModel * curDownloadFileModel;
  18. @property (nonatomic, assign) BOOL isSuspendType;
  19. @property (nonatomic, assign) BOOL isDownloadIngType;
  20. @property (nonatomic, assign) NSInteger reDownloadIngSelectIndex;
  21. +(downloadManager *)shareInstance;
  22. #pragma mark 读取数据库数据
  23. - (void)getDataInDatabaseFun:(BOOL)isReGet complete:(custom_complete_Arr)complete;
  24. -(void)handleCouldPhoneFileModelToDownloadFileDataFunBy:(NSMutableArray*)indexPathsForSelectedItems complete:(custom_complete_Arr)complete;
  25. - (void)DownloadFileDoneOneFileFun;
  26. - (void)DownloadFileFailOneFileFun;
  27. - (void)DownloadFileChangeingOneFileFun;
  28. - (void)suspendDownloadFileFun:(BOOL)isSuspendAll;
  29. - (void)reDownloadFileFunBy:(NSMutableArray*)arr withAll:(BOOL)isAllType;
  30. //删除本地数据库记录
  31. - (void)deleteDownloadFileRecordBy:(NSMutableArray *)delArr withDelCache:(BOOL)isDelCache;
  32. - (void)checkReDownloadFileFun;
  33. @end
  34. NS_ASSUME_NONNULL_END