C# Класс SIL.FieldWorks.FDO.DomainServices.BackupRestore.ProjectBackupService

Service for performing a backup of current project
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

BackupProject() публичный Метод

Perform a backup of the current project, using specified settings.
public BackupProject ( IThreadedProgress progressDlg, string &backupFile ) : bool
progressDlg IThreadedProgress
backupFile string
Результат bool

GenerateFileListFolderAndSubfolders() публичный статический Метод

This returns all the files in a directory Dir and in the subdirectories.
public static GenerateFileListFolderAndSubfolders ( string dir ) : HashSet
dir string
Результат HashSet

ProjectBackupService() публичный Метод

Constructor
public ProjectBackupService ( FdoCache cache, SIL.FieldWorks.FDO.DomainServices.BackupRestore.BackupProjectSettings settings ) : System
cache FdoCache
settings SIL.FieldWorks.FDO.DomainServices.BackupRestore.BackupProjectSettings
Результат System