KMCloudDownloadOperationQueue.h 571 B

12345678910111213141516171819202122232425262728
  1. //
  2. // KMCloudDownloadOperationQueue.h
  3. // PDF Reader Pro Edition
  4. //
  5. // Created by 万军 on 2020/2/25.
  6. // Copyright © 2020 WanJun. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @interface KMCloudDownloadOperationQueue : NSOperationQueue
  10. @property (nonatomic, strong) NSMutableDictionary *downloadingOperations;
  11. + (instancetype)sharedInstance;
  12. - (void)addDownloadOperation:(NSOperation *)op;
  13. - (NSOperation *)isDownloadOperationExisting:(NSString *)urlString;
  14. #pragma mark - cancel
  15. - (void)cancel:(NSString *)urlString;
  16. - (void)cancelAll;
  17. @end