GRTaskQueue.h 464 B

123456789101112131415161718192021
  1. /*
  2. * Created by Youssef Francis on September 25th, 2012.
  3. */
  4. #import "GRTask.h"
  5. #import "GRImporterProtocol.h"
  6. typedef void (^GRImportCompletionBlock)(BOOL, NSError*);
  7. @interface GRTaskQueue : NSOperationQueue
  8. @property (retain) NSMutableDictionary* resources;
  9. + (GRTaskQueue*)sharedQueue;
  10. - (void)addTask:(GRTask*)task
  11. importer:(Class<GRImporter>)Importer
  12. resources:(NSArray*)resources
  13. completionBlock:(GRImportCompletionBlock)complete;
  14. @end