KMCloudUploadOperationQueue.h 560 B

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