FireSync API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStorage.h
Go to the documentation of this file.
1 
8 #ifndef K_FIRESYNC_STORAGE_H
9 #define K_FIRESYNC_STORAGE_H
10 
11 #include <kFireSync/kNodeDef.h>
12 
33 //typedef kObject kStorage; --forward-declared in kFsDef.x.h
34 
43 kFsFx(kBool) kStorage_FileExists(kStorage storage, const kChar* filePath);
44 
53 kFsFx(kSize) kStorage_FileSize(kStorage storage, const kChar* filePath);
54 
72 kFsFx(kStatus) kStorage_DownloadToFile(kStorage storage, const kChar* sourcePath, const kChar* destPath, kCallbackFx progress, kPointer context);
73 
92 kFsFx(kStatus) kStorage_DownloadToBuffer(kStorage storage, const kChar* filePath, void* buffer, kSize capacity, kCallbackFx progress, kPointer context);
93 
109 kFsFx(kStatus) kStorage_DownloadToStream(kStorage storage, const kChar* filePath, kStream stream, kCallbackFx progress, kPointer context);
110 
128 kFsFx(kStatus) kStorage_UploadFromFile(kStorage storage, const kChar* sourcePath, const kChar* destPath, kCallbackFx progress, kPointer context);
129 
148 kFsFx(kStatus) kStorage_UploadFromBuffer(kStorage storage, const kChar* filePath, const void* buffer, kSize size, kCallbackFx progress, kPointer context);
149 
166 kFsFx(kStatus) kStorage_UploadFromStream(kStorage storage, const kChar* filePath, kStream stream, kSize size, kCallbackFx progress, kPointer context);
167 
183 kFsFx(kStatus) kStorage_Copy(kStorage storage, const kChar* sourcePath, const kChar* destPath, kCallbackFx progress, kPointer context);
184 
193 kFsFx(kStatus) kStorage_Delete(kStorage storage, const kChar* filePath);
194 
206 kFsFx(kStatus) kStorage_ListFiles(kStorage storage, const kChar* directory, kArrayList files);
207 
219 kFsFx(kStatus) kStorage_ListDirectories(kStorage storage, const kChar* directory, kArrayList directories);
220 
232 kFsFx(kStatus) kStorage_ListEntries(kStorage storage, const kChar* directory, kArrayList entries);
233 
245 kFsFx(kStatus) kStorage_ListEntriesEx(kStorage storage, const kChar* directory, kArrayList entries);
246 
258 kFsFx(kStatus) kStorage_CreateDirectory(kStorage storage, const kChar* directory);
259 
270 kFsFx(kStatus) kStorage_DeleteDirectory(kStorage storage, const kChar* directory);
271 
282 kFsFx(kStatus) kStorage_Wipe(kStorage storage);
283 
293 kFsFx(kStatus) kStorage_UserDirectory(kStorage storage, kChar* directory, kSize capacity);
294 
304 kFsFx(kStatus) kStorage_SystemDirectory(kStorage storage, kChar* directory, kSize capacity);
305 
315 kFsFx(kStatus) kStorage_TempDirectory(kStorage storage, kChar* directory, kSize capacity);
316 
317 #include <kFireSync/Client/kStorage.x.h>
318 
319 #endif
kStatus kStorage_UserDirectory(kStorage storage, kChar *directory, kSize capacity)
Gets the directory that should be used for application configuration/resource files.
kStatus kStorage_ListDirectories(kStorage storage, const kChar *directory, kArrayList directories)
Lists the sub-directories in the specified directory.
kStatus kStorage_DownloadToStream(kStorage storage, const kChar *filePath, kStream stream, kCallbackFx progress, kPointer context)
Reads the contents of a storage file into a local stream.
kStatus kStorage_DownloadToFile(kStorage storage, const kChar *sourcePath, const kChar *destPath, kCallbackFx progress, kPointer context)
Copies a file from node storage to the specified local destination.
kStatus kStorage_ListFiles(kStorage storage, const kChar *directory, kArrayList files)
Lists the files in the specified directory.
kSize kStorage_FileSize(kStorage storage, const kChar *filePath)
Gets the size of the specified file.
Essential declarations related to FireSync nodes.
kStatus kStorage_UploadFromBuffer(kStorage storage, const kChar *filePath, const void *buffer, kSize size, kCallbackFx progress, kPointer context)
Write the contents of a memory buffer to a storage module file.
kStatus kStorage_SystemDirectory(kStorage storage, kChar *directory, kSize capacity)
Gets the directory used for executables and system configuration files.
kStatus kStorage_CreateDirectory(kStorage storage, const kChar *directory)
Creates a directory at the specified location.
kStatus kStorage_DownloadToBuffer(kStorage storage, const kChar *filePath, void *buffer, kSize capacity, kCallbackFx progress, kPointer context)
Reads the contents of a storage file into a memory buffer.
kBool kStorage_FileExists(kStorage storage, const kChar *filePath)
Checks that the specified file exists.
kStatus kStorage_ListEntriesEx(kStorage storage, const kChar *directory, kArrayList entries)
Retrieves information about each file system entry within the specified directory.
Represents node file services.
kStatus kStorage_Delete(kStorage storage, const kChar *filePath)
Deletes the specified file.
kStatus kStorage_Wipe(kStorage storage)
Deletes all user and temp files.
kStatus kStorage_TempDirectory(kStorage storage, kChar *directory, kSize capacity)
Gets the directory that should be used for temporary files.
kStatus kStorage_UploadFromFile(kStorage storage, const kChar *sourcePath, const kChar *destPath, kCallbackFx progress, kPointer context)
Copies the specified local file into node storage.
kStatus kStorage_DeleteDirectory(kStorage storage, const kChar *directory)
Deletes the specified directory, including all of its contents.
kStatus kStorage_Copy(kStorage storage, const kChar *sourcePath, const kChar *destPath, kCallbackFx progress, kPointer context)
Copies a file from one location to another within sensor storage.
kStatus kStorage_UploadFromStream(kStorage storage, const kChar *filePath, kStream stream, kSize size, kCallbackFx progress, kPointer context)
Write the contents of a local stream to a storage file, with progress updates.
kStatus kStorage_ListEntries(kStorage storage, const kChar *directory, kArrayList entries)
Lists the file system entries in the specified directory.