// // nasUploadFileManager.h // 双子星云手机 // // Created by xd h on 2024/8/7. // #import #import "uploadFileManager.h" #import "frpUploadModel.h" #import "frpFileExistModel.h" #import "nasMixUploadManager.h" NS_ASSUME_NONNULL_BEGIN #define nasUpLoadFile_tableName [[NSString alloc] initWithFormat:@"upLoadFile_tableName_%@",ksharedAppDelegate.DeviceThirdIdMod.data.sn] @interface nasUploadFileManager : NSObject +(instancetype)shareInstance; //数据库数据 @property (nonatomic, strong) NSMutableArray * _Nullable databaseArr; @property (nonatomic, assign) BOOL isSuspendType; @property (nonatomic, assign) BOOL isUploadIngType; @property (nonatomic, assign) BOOL isNewAddTaskType; @property (nonatomic, assign) NSInteger curUploadModelNumbers; @property (nonatomic, assign) NSInteger reUploadIngSelectIndex; #pragma mark 读取数据库数据 - (void)getDataInDatabaseFun:(BOOL)isReGet complete:(custom_complete_Arr)complete; //把TZAssetModel 转成 我们需要上传的model - (void)handlTZAssetModelToUploadFileDataFunBy:(NSMutableArray*)indexPathsForSelectedItems complete:(custom_complete_Arr)complete; //删除本地数据库记录 - (void)deleteUploadFileRecordBy:(NSMutableArray *)delArr withDelCache:(BOOL)isDelCache complete:(custom_complete_B)complete; - (void)checkHadUploadTaskWithComplete:(custom_complete_B)complete; //文件重新上传 - (void)reUploadFileFunBy:(NSMutableArray*)Arr withAll:(BOOL)isAllType; //暂停上传 当 isSuspendAll为NO时候 传指定暂停哪一个 - (void)suspendUploadFileFun:(BOOL)isSuspendAll withModel:(uploadFileDataModel*)model; @end NS_ASSUME_NONNULL_END