FileSurfer 2.1.2
Cross-platform file manager with support for Git and SFTP
Loading...
Searching...
No Matches
FileSurfer.Core.ViewModels.SftpSynchronizerViewModel Class Reference

Coordinates initialization and continuous synchronization between local and SFTP locations. More...

Inheritance diagram for FileSurfer.Core.ViewModels.SftpSynchronizerViewModel:
Collaboration diagram for FileSurfer.Core.ViewModels.SftpSynchronizerViewModel:

Public Member Functions

 SftpSynchronizerViewModel (IDialogService dialogService, Location localDir, Location remoteDir)
 Creates a synchronizer view model for the given local and remote locations.
async ValueTask DisposeAsync ()
 SftpSynchronizerViewModel ()
 Do not use, only for design preview to work properly.

Static Public Member Functions

static async Task< ValueResult< string > > GetLocalPath (Location remoteLocation, IList< string > pastLocalPaths, IDialogService dialogService)
 Prompts for and validates the local path to pair with a remote synchronization target.

Properties

string LocalDirLabel [get]
 Gets the label shown for the local synchronization location.
Location LocalDir [get]
 Gets the local synchronization location.
string RemoteDirLabel [get]
 Gets the label shown for the remote synchronization location.
Location RemoteDir [get]
 Gets the remote synchronization location.
bool InitFromRemote [get, set]
 Gets or sets whether initialization should copy from remote to local.
bool SyncHiddenFiles [get, set]
 Gets or sets whether hidden files are included in synchronization.
bool Synchronizing [get, set]
 Gets or sets whether continuous synchronization is currently running.
bool Initializing [get, set]
 Gets or sets whether initial synchronization is currently running.
ObservableCollection< SyncEventViewModel > SyncEvents = [] [get]
 Gets the event list displayed in the synchronization window.
ReactiveCommand< Unit, Task > StartSyncCommand [get]
 Gets the command that starts initialization and synchronization.
ReactiveCommand< Unit, Unit > StopSyncCommand [get]
 Gets the command that requests synchronization cancellation.

Detailed Description

Coordinates initialization and continuous synchronization between local and SFTP locations.

Constructor & Destructor Documentation

◆ SftpSynchronizerViewModel() [1/2]

FileSurfer.Core.ViewModels.SftpSynchronizerViewModel.SftpSynchronizerViewModel ( IDialogService dialogService,
Location localDir,
Location remoteDir )
inline

Creates a synchronizer view model for the given local and remote locations.

Here is the call graph for this function:

◆ SftpSynchronizerViewModel() [2/2]

FileSurfer.Core.ViewModels.SftpSynchronizerViewModel.SftpSynchronizerViewModel ( )
inline

Do not use, only for design preview to work properly.

Member Function Documentation

◆ DisposeAsync()

async ValueTask FileSurfer.Core.ViewModels.SftpSynchronizerViewModel.DisposeAsync ( )
inline

◆ GetLocalPath()

async Task< ValueResult< string > > FileSurfer.Core.ViewModels.SftpSynchronizerViewModel.GetLocalPath ( Location remoteLocation,
IList< string > pastLocalPaths,
IDialogService dialogService )
inlinestatic

Prompts for and validates the local path to pair with a remote synchronization target.

Here is the call graph for this function:

Property Documentation

◆ InitFromRemote

bool FileSurfer.Core.ViewModels.SftpSynchronizerViewModel.InitFromRemote
getset

Gets or sets whether initialization should copy from remote to local.

◆ Initializing

bool FileSurfer.Core.ViewModels.SftpSynchronizerViewModel.Initializing
getset

Gets or sets whether initial synchronization is currently running.

◆ LocalDir

Location FileSurfer.Core.ViewModels.SftpSynchronizerViewModel.LocalDir
get

Gets the local synchronization location.

◆ LocalDirLabel

string FileSurfer.Core.ViewModels.SftpSynchronizerViewModel.LocalDirLabel
get

Gets the label shown for the local synchronization location.

◆ RemoteDir

Location FileSurfer.Core.ViewModels.SftpSynchronizerViewModel.RemoteDir
get

Gets the remote synchronization location.

◆ RemoteDirLabel

string FileSurfer.Core.ViewModels.SftpSynchronizerViewModel.RemoteDirLabel
get

Gets the label shown for the remote synchronization location.

◆ StartSyncCommand

ReactiveCommand<Unit, Task> FileSurfer.Core.ViewModels.SftpSynchronizerViewModel.StartSyncCommand
get

Gets the command that starts initialization and synchronization.

◆ StopSyncCommand

ReactiveCommand<Unit, Unit> FileSurfer.Core.ViewModels.SftpSynchronizerViewModel.StopSyncCommand
get

Gets the command that requests synchronization cancellation.

◆ SyncEvents

ObservableCollection<SyncEventViewModel> FileSurfer.Core.ViewModels.SftpSynchronizerViewModel.SyncEvents = []
get

Gets the event list displayed in the synchronization window.

◆ SyncHiddenFiles

bool FileSurfer.Core.ViewModels.SftpSynchronizerViewModel.SyncHiddenFiles
getset

Gets or sets whether hidden files are included in synchronization.

◆ Synchronizing

bool FileSurfer.Core.ViewModels.SftpSynchronizerViewModel.Synchronizing
getset

Gets or sets whether continuous synchronization is currently running.


The documentation for this class was generated from the following file: