C# Class SIL.FieldWorks.FDO.DomainServices.BackupRestore.ProjectBackupService

Service for performing a backup of current project
Afficher le fichier Open project: sillsdev/FieldWorks Class Usage Examples

Méthodes publiques

Méthode Description
BackupProject ( IThreadedProgress progressDlg, string &backupFile ) : bool

Perform a backup of the current project, using specified settings.

GenerateFileListFolderAndSubfolders ( string dir ) : HashSet

This returns all the files in a directory Dir and in the subdirectories.

ProjectBackupService ( FdoCache cache, SIL.FieldWorks.FDO.DomainServices.BackupRestore.BackupProjectSettings settings ) : System

Constructor

Private Methods

Méthode Description
AddAllFilesToZipFile ( IProgress progressDlg, ZipFile zFile, IEnumerable files ) : bool
AllFilesInADirectory ( string dirContainingFilesToZip ) : IEnumerable

This returns the paths for all the files located in a Directory.

BackupProjectWithFullPaths ( IProgress progressDlg, IEnumerable filesToZip ) : string
BackupTask ( IProgress progressDlg, object parameters ) : object
CopyAllFilesToFolder ( IEnumerable fileList, string restoreDirectory ) : void
CreateListOfFilesToZip ( ) : IEnumerable

GetAudioVisualAndPicturesAndOtherFiles ( ) : IEnumerable
GetCmFilePathsInCmFolder ( ICmFolder cmfolder, HashSet filePathsInCmFiles ) : void
GetCurrentProjectFonts ( ) : HashSet

Collects font names used in the current project.

GetLinkedFilesForThisProject ( string linkedFilesPath, string projectPath ) : IEnumerable

This returns all the files in the Linked Files folder which are associated with the project. If the LinkedFiles folder is located inside the project folder, return all the files under this folder. If the LinkedFiles folder is located in some other location, then only return the file paths for which there is a CmFile object in the database.

GetLinkedFilesFromCmFiles ( string linkedFilesPath ) : HashSet
GetProjectFolderFilesToBackup ( ) : IEnumerable
GetSpellingDictionaryFilesList ( ) : IEnumerable
GetSupportingFilesFilesList ( ) : IEnumerable
PersistBackupFileSettings ( ) : void

Persists the dialog settings as an XML file.

RemoveAllFilesFromFolder ( string restoreDirectory ) : void

Method Details

BackupProject() public méthode

Perform a backup of the current project, using specified settings.
public BackupProject ( IThreadedProgress progressDlg, string &backupFile ) : bool
progressDlg IThreadedProgress
backupFile string
Résultat bool

GenerateFileListFolderAndSubfolders() public static méthode

This returns all the files in a directory Dir and in the subdirectories.
public static GenerateFileListFolderAndSubfolders ( string dir ) : HashSet
dir string
Résultat HashSet

ProjectBackupService() public méthode

Constructor
public ProjectBackupService ( FdoCache cache, SIL.FieldWorks.FDO.DomainServices.BackupRestore.BackupProjectSettings settings ) : System
cache FdoCache
settings SIL.FieldWorks.FDO.DomainServices.BackupRestore.BackupProjectSettings
Résultat System