RQDownloadConst.h 889 B

123456789101112131415161718192021222324252627
  1. //
  2. // RQDownloadConst.h
  3. // TEST
  4. //
  5. // Created by 张嵘 on 2018/10/22.
  6. // Copyright © 2018 张嵘. All rights reserved.
  7. //
  8. #ifndef RQDownloadConst_h
  9. #define RQDownloadConst_h
  10. #define RQFileManager [NSFileManager defaultManager]
  11. // 缓存主目录
  12. #define RQCachesDirectory [[NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES) lastObject] stringByAppendingString:@"/RQDownload/"]
  13. #define RQSavedDownloadModelsFilePath [RQCachesDirectory stringByAppendingFormat:@"RQSavedDownloadModels"]
  14. #define RQSavedDownloadModelsBackup [RQCachesDirectory stringByAppendingFormat:@"RQSavedDownloadModelsBackup"]
  15. #define rq_tmpDownloadBaseFilePath [NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES) objectAtIndex:0]
  16. // 下载operation最大并发数
  17. #define RQDownloadMaxConcurrentOperationCount 3
  18. #endif /* RQDownloadConst_h */