cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i..@apache.org
Subject [4/6] git commit: CB-5406: Factor out filesystem providers in iOS
Date Mon, 18 Nov 2013 19:55:36 GMT
CB-5406: Factor out filesystem providers in iOS


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/commit/64187ca1
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/tree/64187ca1
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/diff/64187ca1

Branch: refs/heads/dev
Commit: 64187ca1be3e5b0a8d366959d1946a99ba44c198
Parents: b8c4f85
Author: Ian Clelland <iclelland@chromium.org>
Authored: Mon Nov 18 14:49:56 2013 -0500
Committer: Ian Clelland <iclelland@chromium.org>
Committed: Mon Nov 18 14:54:01 2013 -0500

----------------------------------------------------------------------
 src/ios/CDVFile.h |   19 +-
 src/ios/CDVFile.m | 2059 +++++++++++++++++++++++++-----------------------
 2 files changed, 1099 insertions(+), 979 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/64187ca1/src/ios/CDVFile.h
----------------------------------------------------------------------
diff --git a/src/ios/CDVFile.h b/src/ios/CDVFile.h
index c5877f1..ef17a62 100644
--- a/src/ios/CDVFile.h
+++ b/src/ios/CDVFile.h
@@ -39,7 +39,8 @@ typedef int CDVFileError;
 
 enum CDVFileSystemType {
     TEMPORARY = 0,
-    PERSISTENT = 1
+    PERSISTENT = 1,
+    ASSETS_LIBRARY = 2,
 };
 typedef int CDVFileSystemType;
 
@@ -52,13 +53,12 @@ extern NSString* const kCDVAssetsLibraryPrefix;
     NSString* persistentPath;
     NSString* temporaryPath;
 
+    NSMutableArray* fileSystems_;
     BOOL userHasAllowed;
 }
+
 - (NSNumber*)checkFreeDiskSpace:(NSString*)appPath;
-- (NSString*)getAppPath:(NSString*)pathFragment;
-- (NSDictionary*)getDirectoryEntry:(NSString*)fullPath isDirectory:(BOOL)isDir; //DEPRECATE
HARD
 - (NSDictionary*)makeEntryForPath:(NSString*)fullPath fileSystem:(int)fsType isDirectory:(BOOL)isDir;
-- (NSString *)fileSystemPathForLocalURI:(NSURL *)uri;
 
 /* Exec API */
 - (void)requestFileSystem:(CDVInvokedUrlCommand*)command;
@@ -81,22 +81,15 @@ extern NSString* const kCDVAssetsLibraryPrefix;
 - (void)testDirectoryExists:(CDVInvokedUrlCommand*)command;
 - (void)getFreeDiskSpace:(CDVInvokedUrlCommand*)command;
 - (void)truncate:(CDVInvokedUrlCommand*)command;
-
-- (CDVPluginResult*)doRemove:(NSString*)fullPath;
-- (BOOL)canCopyMoveSrc:(NSString*)src ToDestination:(NSString*)dest;
 - (void)doCopyMove:(CDVInvokedUrlCommand*)command isCopy:(BOOL)bCopy;
-- (void)readFileWithPath:(NSString*)path start:(NSInteger)start end:(NSInteger)end callback:(void
(^)(NSData*, NSString*, CDVFileError))callback;
-- (NSString*)getMimeTypeFromPath:(NSString*)fullPath;
-
-- (void)writeToFile:(NSString*)fileName withData:(NSData*)data append:(BOOL)shouldAppend
callback:(NSString*)callbackId;
-- (void)writeToFile:(NSString*)fileName withString:(NSString*)data encoding:(NSStringEncoding)encoding
append:(BOOL)shouldAppend callback:(NSString*)callbackId;
-- (unsigned long long)truncateFile:(NSString*)filePath atPosition:(unsigned long long)pos;
 
 @property (nonatomic, strong) NSString* appDocsPath;
 @property (nonatomic, strong) NSString* appLibraryPath;
 @property (nonatomic, strong) NSString* appTempPath;
 @property (nonatomic, strong) NSString* persistentPath;
 @property (nonatomic, strong) NSString* temporaryPath;
+@property (nonatomic, strong) NSMutableArray* fileSystems;
+
 @property BOOL userHasAllowed;
 
 @end


Mime
View raw message