AutoSaveManager.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //
  2. // AutoSaveManager.h
  3. // PDF Reader Pro Edition
  4. //
  5. // Created by Niehaoyu on 2023/08/10.
  6. //
  7. #import <Foundation/Foundation.h>
  8. NS_ASSUME_NONNULL_BEGIN
  9. #define KAutoSaveTimeValueChangedNoti @"KAutoSaveTimeValueChangedNoti"
  10. @interface AutoSaveManager : NSObject
  11. @property (nonatomic, copy, readonly) NSString *autoSaveFolder;
  12. @property (nonatomic, strong, readonly) NSMutableArray *originalPaths;//保存的原文件信息
  13. @property (nonatomic, strong, readonly) NSMutableArray *autoSavePaths;//对应保存的信息
  14. @property (nonatomic, strong) NSMutableArray *opendPaths;//所有打开的文件信息汇总
  15. @property (nonatomic, assign) BOOL autoSaveEnabled;//APP是否允许进行自动缓存
  16. @property (nonatomic, assign) BOOL autoSaveAlertShow;//防止重复弹出
  17. @property (nonatomic, assign) BOOL autoSaveDidEndAction;
  18. @property (nonatomic, assign) BOOL isSaving;//当前是否正在保存
  19. @property (nonatomic, assign) CGFloat timeInterval;
  20. + (AutoSaveManager *)manager;
  21. - (void)clearCache;
  22. - (NSString *)autoSaveWithPath:(NSString *)filePath;
  23. - (void)removeAutoSavePath:(NSString *)filePath;
  24. @end
  25. NS_ASSUME_NONNULL_END