C# Class Catrobat.IDE.WindowsShared.Services.Storage.StorageWindowsShared

Inheritance: IStorage
Show file Open project: Catrobat/CatrobatForWindows Class Usage Examples

Public Methods

Method Description
CopyDirectoryAsync ( string sourcePath, string destinationPath ) : System.Threading.Tasks.Task
CopyFileAsync ( string sourcePath, string destinationPath ) : System.Threading.Tasks.Task
CreateDirectoryAsync ( string path ) : System.Threading.Tasks.Task
CreateFolderPathAsync ( string path ) : Task
DeleteDirectoryAsync ( string path ) : System.Threading.Tasks.Task
DeleteFileAsync ( string path ) : System.Threading.Tasks.Task
DeleteImageAsync ( string pathToImage ) : System.Threading.Tasks.Task
DirectoryExistsAsync ( string path ) : Task
Dispose ( ) : void
FileExistsAsync ( string path ) : Task
GetDirectoryNamesAsync ( string path ) : Task
GetFileAsync ( string path, bool createIfNotExists = true ) : Task
GetFileNamesAsync ( string path ) : Task
GetFolderAsync ( string path ) : Task
LoadImageAsync ( string pathToImage ) : Task
LoadImageThumbnailAsync ( string pathToImage ) : Task
MoveDirectoryAsync ( string sourcePath, string destinationPath ) : System.Threading.Tasks.Task
MoveFileAsync ( string sourcePath, string destinationPath ) : System.Threading.Tasks.Task
OpenFileAsync ( string path, StorageFileMode mode, StorageFileAccess access ) : Task
ReadSerializableObjectAsync ( string path, Type type ) : Task
ReadTextFileAsync ( string path ) : Task
RenameDirectoryAsync ( string directoryPath, string newDirectoryName ) : System.Threading.Tasks.Task
SaveImageAsync ( string path, PortableImage image, bool deleteExisting, ImageFormat format ) : System.Threading.Tasks.Task
StorageWindowsShared ( StorageLocation storageLocation = StorageLocation.Temp ) : System
TryCreateThumbnailAsync ( string filePath ) : System.Threading.Tasks.Task
WriteSerializableObjectAsync ( string path, object serializableObject ) : System.Threading.Tasks.Task
WriteTextFileAsync ( string path, string content ) : System.Threading.Tasks.Task

Private Methods

Method Description
SetImageMaxThumbnailWidthHeight ( int maxWidthHeight ) : void

Method Details

CopyDirectoryAsync() public method

public CopyDirectoryAsync ( string sourcePath, string destinationPath ) : System.Threading.Tasks.Task
sourcePath string
destinationPath string
return System.Threading.Tasks.Task

CopyFileAsync() public method

public CopyFileAsync ( string sourcePath, string destinationPath ) : System.Threading.Tasks.Task
sourcePath string
destinationPath string
return System.Threading.Tasks.Task

CreateDirectoryAsync() public method

public CreateDirectoryAsync ( string path ) : System.Threading.Tasks.Task
path string
return System.Threading.Tasks.Task

CreateFolderPathAsync() public method

public CreateFolderPathAsync ( string path ) : Task
path string
return Task

DeleteDirectoryAsync() public method

public DeleteDirectoryAsync ( string path ) : System.Threading.Tasks.Task
path string
return System.Threading.Tasks.Task

DeleteFileAsync() public method

public DeleteFileAsync ( string path ) : System.Threading.Tasks.Task
path string
return System.Threading.Tasks.Task

DeleteImageAsync() public method

public DeleteImageAsync ( string pathToImage ) : System.Threading.Tasks.Task
pathToImage string
return System.Threading.Tasks.Task

DirectoryExistsAsync() public method

public DirectoryExistsAsync ( string path ) : Task
path string
return Task

Dispose() public method

public Dispose ( ) : void
return void

FileExistsAsync() public method

public FileExistsAsync ( string path ) : Task
path string
return Task

GetDirectoryNamesAsync() public method

public GetDirectoryNamesAsync ( string path ) : Task
path string
return Task

GetFileAsync() public method

public GetFileAsync ( string path, bool createIfNotExists = true ) : Task
path string
createIfNotExists bool
return Task

GetFileNamesAsync() public method

public GetFileNamesAsync ( string path ) : Task
path string
return Task

GetFolderAsync() public method

public GetFolderAsync ( string path ) : Task
path string
return Task

LoadImageAsync() public method

public LoadImageAsync ( string pathToImage ) : Task
pathToImage string
return Task

LoadImageThumbnailAsync() public method

public LoadImageThumbnailAsync ( string pathToImage ) : Task
pathToImage string
return Task

MoveDirectoryAsync() public method

public MoveDirectoryAsync ( string sourcePath, string destinationPath ) : System.Threading.Tasks.Task
sourcePath string
destinationPath string
return System.Threading.Tasks.Task

MoveFileAsync() public method

public MoveFileAsync ( string sourcePath, string destinationPath ) : System.Threading.Tasks.Task
sourcePath string
destinationPath string
return System.Threading.Tasks.Task

OpenFileAsync() public method

public OpenFileAsync ( string path, StorageFileMode mode, StorageFileAccess access ) : Task
path string
mode StorageFileMode
access StorageFileAccess
return Task

ReadSerializableObjectAsync() public method

public ReadSerializableObjectAsync ( string path, Type type ) : Task
path string
type System.Type
return Task

ReadTextFileAsync() public method

public ReadTextFileAsync ( string path ) : Task
path string
return Task

RenameDirectoryAsync() public method

public RenameDirectoryAsync ( string directoryPath, string newDirectoryName ) : System.Threading.Tasks.Task
directoryPath string
newDirectoryName string
return System.Threading.Tasks.Task

SaveImageAsync() public method

public SaveImageAsync ( string path, PortableImage image, bool deleteExisting, ImageFormat format ) : System.Threading.Tasks.Task
path string
image PortableImage
deleteExisting bool
format ImageFormat
return System.Threading.Tasks.Task

StorageWindowsShared() public method

public StorageWindowsShared ( StorageLocation storageLocation = StorageLocation.Temp ) : System
storageLocation StorageLocation
return System

TryCreateThumbnailAsync() public method

public TryCreateThumbnailAsync ( string filePath ) : System.Threading.Tasks.Task
filePath string
return System.Threading.Tasks.Task

WriteSerializableObjectAsync() public method

public WriteSerializableObjectAsync ( string path, object serializableObject ) : System.Threading.Tasks.Task
path string
serializableObject object
return System.Threading.Tasks.Task

WriteTextFileAsync() public method

public WriteTextFileAsync ( string path, string content ) : System.Threading.Tasks.Task
path string
content string
return System.Threading.Tasks.Task