|
@@ -9,6 +9,14 @@
|
|
|
#import <Foundation/Foundation.h>
|
|
#import <Foundation/Foundation.h>
|
|
|
#import "RAUploadOperation.h"
|
|
#import "RAUploadOperation.h"
|
|
|
|
|
|
|
|
|
|
+@class RAUploadManager;
|
|
|
|
|
+@protocol RAUploadManagerDelegate <NSObject>
|
|
|
|
|
+
|
|
|
|
|
+@required
|
|
|
|
|
+- (void)uploadManager:(RAUploadManager *)manager didRemoveTasks:(NSArray *)tasks;
|
|
|
|
|
+
|
|
|
|
|
+@end
|
|
|
|
|
+
|
|
|
@interface RAUploadManager : NSObject
|
|
@interface RAUploadManager : NSObject
|
|
|
@property (assign) int maxThread;
|
|
@property (assign) int maxThread;
|
|
|
@property (assign) int activeThread;
|
|
@property (assign) int activeThread;
|
|
@@ -25,4 +33,6 @@
|
|
|
|
|
|
|
|
@property (strong,nonatomic) NSOperationQueue* operation_queue;
|
|
@property (strong,nonatomic) NSOperationQueue* operation_queue;
|
|
|
|
|
|
|
|
|
|
+@property (nonatomic,weak) id <RAUploadManagerDelegate> delegate;
|
|
|
|
|
+
|
|
|
@end
|
|
@end
|