Initial implementation of drag and drop directory upload.
[pithos-macos] / pithos-macos / PithosFileUtilities.h
index 5ef5bf8..52df071 100644 (file)
@@ -35,6 +35,7 @@
 // interpreted as representing official policies, either expressed
 // or implied, of GRNET S.A.
 
+@class ASIPithosRequest;
 @class ASIPithosObjectRequest;
 
 @interface PithosFileUtilities : NSObject
                                                            blockSize:(NSUInteger)blockSize 
                                                              forFile:(NSString *)filePath 
                                                               hashes:(NSArray *)hashes 
-                                               missingHashesResponse:(NSString *)missingHashesResponse
-                                                       checkIfExists:(BOOL)ifExists;
+                                               missingHashesResponse:(NSString *)missingHashesResponse;
++ (NSArray *)writeObjectDataRequestsWithContainerName:(NSString *)containerName
+                                           objectName:(NSString *)objectName
+                                            blockSize:(NSUInteger)blockSize 
+                                            blockHash:(NSString *)blockHash 
+                                         forDirectory:(NSString *)directoryPath 
+                                        checkIfExists:(BOOL)ifExists 
+                                          objectNames:(NSMutableArray **)objectNames
+                                         contentTypes:(NSMutableArray **)contentTypes
+                                            filePaths:(NSMutableArray **)filePaths 
+                                         hashesArrays:(NSMutableArray **)hashesArrays;
+
 
 + (NSUInteger)bytesOfFile:(NSString *)filePath;
-+ (BOOL)objectExistsAtContainerName:(NSString *)containerName objectName:(NSString *)objectName error:(NSError **)error;
++ (NSString *)contentTypeOfFile:(NSString *)filePath error:(NSError **)error;
++ (BOOL)objectExistsAtContainerName:(NSString *)containerName objectName:(NSString *)objectName 
+                     responseString:(NSString **)responseString error:(NSError **)error isDirectory:(BOOL *)isDirectory;
 + (int)deleteObjectAtContainerName:(NSString *)containerName objectName:(NSString *)objectName 
              responseStatusMessage:(NSString **)responseStatusMessage error:(NSError **)error;
 
++ (NSInteger)httpRequestErrorAlertWithRequest:(ASIPithosRequest *)request;
++ (NSInteger)unexpectedResponseStatusAlertWithRequest:(ASIPithosRequest *)request;
+
 @end