C# Class SunSync.SyncProgressPage

Interaction logic for SyncProgressPage.xaml
Inheritance: System.Windows.Controls.Page
Mostrar archivo Open project: qiniu/QSunSync Class Usage Examples

Public Methods

Method Description
LocalHashDB ( ) : SQLiteConnection
SyncLogDB ( ) : SQLiteConnection
SyncProgressPage ( MainWindow mainWindow ) : System
isOverwritten ( string localFile ) : bool

Private Methods

Method Description
HaltActionButton_EventHandler ( object sender, RoutedEventArgs e ) : void
LoadSyncSetting ( SyncSetting syncSetting ) : void
ManualFinishButton_EventHandler ( object sender, RoutedEventArgs e ) : void
SyncProgressPageLoaded_EventHandler ( object sender, RoutedEventArgs e ) : void
addFileExistsLog ( string log ) : void
addFileNotOverwriteLog ( string log ) : void
addFileOverwriteLog ( string log ) : void
addFileSkippedLog ( string log ) : void
addFileUploadErrorLog ( string log ) : void
addFileUploadSuccessLog ( string log ) : void
checkCancelSignal ( ) : bool
closeLogWriters ( ) : void
createDirCache ( string localSyncDir ) : void
createOptionalDB ( ) : void
dropcacheFilePath ( ) : void
initRunJob ( ) : bool
processUpload ( string cacheFilePath ) : void
resetSyncStatus ( ) : void
runSyncJob ( object resumeObject ) : void
shouldSkipByPrefix ( string shortFileName, string skippedPrefixes ) : bool
shouldSkipBySuffix ( string shortFileName, string skippedSuffixes ) : bool
updateSingleFileProgress ( int taskId, string fileFullPath, string fileKey, long fileLength, double percent ) : void
updateTotalUploadProgress ( ) : void
updateUploadLog ( string log ) : void
uploadFiles ( List filesToUpload ) : void

Method Details

LocalHashDB() public method

public LocalHashDB ( ) : SQLiteConnection
return System.Data.SQLite.SQLiteConnection

SyncLogDB() public method

public SyncLogDB ( ) : SQLiteConnection
return System.Data.SQLite.SQLiteConnection

SyncProgressPage() public method

public SyncProgressPage ( MainWindow mainWindow ) : System
mainWindow MainWindow
return System

isOverwritten() public method

public isOverwritten ( string localFile ) : bool
localFile string
return bool