Updated API

This commit is contained in:
Pierre-Olivier Latour
2014-04-01 15:45:51 -07:00
parent 74f99167da
commit 0bad724f08
2 changed files with 61 additions and 22 deletions
+7
View File
@@ -30,6 +30,8 @@
@class GCDWebUploader;
@protocol GCDWebUploaderDelegate <NSObject>
@optional
- (void)webUploader:(GCDWebUploader*)uploader didDownloadFileAtPath:(NSString*)path;
- (void)webUploader:(GCDWebUploader*)uploader didUploadFileAtPath:(NSString*)path;
- (void)webUploader:(GCDWebUploader*)uploader didMoveItemFromPath:(NSString*)fromPath toPath:(NSString*)toPath;
- (void)webUploader:(GCDWebUploader*)uploader didDeleteItemAtPath:(NSString*)path;
@@ -46,3 +48,8 @@
@property(nonatomic, copy) NSString* footer; // Default is application name and version (text must be HTML escaped)
- (id)initWithUploadDirectory:(NSString*)path;
@end
@interface GCDWebUploader (Subclassing)
- (BOOL)shouldUploadFileAtPath:(NSString*)path withTemporaryFile:(NSString*)tempPath; // Default implementation returns YES
- (BOOL)shouldMoveItemFromPath:(NSString*)fromPath toPath:(NSString*)toPath; // Default implementation returns YES
@end