Pierre-Olivier Latour 11 年之前
父節點
當前提交
05a704bcef
共有 3 個文件被更改,包括 3 次插入0 次删除
  1. 1 0
      GCDWebDAVServer/GCDWebDAVServer.h
  2. 1 0
      GCDWebServer/Core/GCDWebServerConnection.h
  3. 1 0
      GCDWebUploader/GCDWebUploader.h

+ 1 - 0
GCDWebDAVServer/GCDWebDAVServer.h

@@ -47,6 +47,7 @@
 - (instancetype)initWithUploadDirectory:(NSString*)path;
 - (instancetype)initWithUploadDirectory:(NSString*)path;
 @end
 @end
 
 
+// These methods can be called from any thread
 @interface GCDWebDAVServer (Subclassing)
 @interface GCDWebDAVServer (Subclassing)
 - (BOOL)shouldUploadFileAtPath:(NSString*)path withTemporaryFile:(NSString*)tempPath;  // Default implementation returns YES
 - (BOOL)shouldUploadFileAtPath:(NSString*)path withTemporaryFile:(NSString*)tempPath;  // Default implementation returns YES
 - (BOOL)shouldMoveItemFromPath:(NSString*)fromPath toPath:(NSString*)toPath;  // Default implementation returns YES
 - (BOOL)shouldMoveItemFromPath:(NSString*)fromPath toPath:(NSString*)toPath;  // Default implementation returns YES

+ 1 - 0
GCDWebServer/Core/GCDWebServerConnection.h

@@ -39,6 +39,7 @@
 @property(nonatomic, readonly) NSUInteger totalBytesWritten;
 @property(nonatomic, readonly) NSUInteger totalBytesWritten;
 @end
 @end
 
 
+// These methods can be called from any thread
 @interface GCDWebServerConnection (Subclassing)
 @interface GCDWebServerConnection (Subclassing)
 - (BOOL)open;  // Return NO to reject connection e.g. after validating local or remote addresses
 - (BOOL)open;  // Return NO to reject connection e.g. after validating local or remote addresses
 - (void)didReadBytes:(const void*)bytes length:(NSUInteger)length;  // Called after data has been read from the connection
 - (void)didReadBytes:(const void*)bytes length:(NSUInteger)length;  // Called after data has been read from the connection

+ 1 - 0
GCDWebUploader/GCDWebUploader.h

@@ -51,6 +51,7 @@
 - (instancetype)initWithUploadDirectory:(NSString*)path;
 - (instancetype)initWithUploadDirectory:(NSString*)path;
 @end
 @end
 
 
+// These methods can be called from any thread
 @interface GCDWebUploader (Subclassing)
 @interface GCDWebUploader (Subclassing)
 - (BOOL)shouldUploadFileAtPath:(NSString*)path withTemporaryFile:(NSString*)tempPath;  // Default implementation returns YES
 - (BOOL)shouldUploadFileAtPath:(NSString*)path withTemporaryFile:(NSString*)tempPath;  // Default implementation returns YES
 - (BOOL)shouldMoveItemFromPath:(NSString*)fromPath toPath:(NSString*)toPath;  // Default implementation returns YES
 - (BOOL)shouldMoveItemFromPath:(NSString*)fromPath toPath:(NSString*)toPath;  // Default implementation returns YES