mirror of
https://github.com/swisspol/GCDWebServer.git
synced 2026-04-24 00:00:04 +08:00
Updated API
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user