mixDownloadCacheManager.h 785 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // mixDownloadCacheManager.h
  3. // 双子星云手机
  4. //
  5. // Created by xd h on 2024/6/27.
  6. //
  7. #import <Foundation/Foundation.h>
  8. NS_ASSUME_NONNULL_BEGIN
  9. #define KFullPath NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES)[0]
  10. #define KFullDirector [self getFullDirector]
  11. #define KMixDownloadDirector @"mixDownload"
  12. @interface mixDownloadCacheManager : NSObject
  13. /** 查询文件信息 */
  14. + (NSMutableDictionary *)queryFileInfoWithUrl:(NSString *)url;
  15. /** 查询要下载的文件大小 */
  16. + (NSInteger)totalSizeWith:(NSString *)url;
  17. /** 增加配置信息 */
  18. + (BOOL)saveFileInfoWithDict:(NSDictionary *)dict;
  19. + (NSString *)getFullDirector;
  20. + (NSString *)getNewPlistPath;
  21. + (NSMutableDictionary *)getDownloadList;
  22. @end
  23. NS_ASSUME_NONNULL_END