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

The SftpConnectionViewModel is the ViewModel for the Views.EditSftpWindow. More...

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

Public Member Functions

 SftpConnectionViewModel (SftpConnection sftpConnection)
 Creates a connection view model from an existing SFTP connection model.
 SftpConnectionViewModel (Action< SftpConnectionViewModel > addSelf)
 Creates a new connection view model that adds itself to a target collection on save.
 SftpConnectionViewModel ()
 Creates a new empty connection view model.
SftpConnectionViewModel Copy ()
 Creates a detached copy of the editable connection fields.
void Save (SftpConnectionViewModel saveFrom)
 Applies values from another view model, updates the model, and finalizes creation when needed.

Properties

SftpConnection SftpConnection [get]
 Gets the underlying SFTP connection model.
bool CreateOnSave [get]
 Gets whether this view model should be added as a new connection when saved.
SftpFileSystem? FileSystem [get, set]
 Gets or sets the active SFTP file system instance for this connection.
string HostnameOrIpAddress [get, set]
 Gets or sets the remote host name or IP address.
ushort? Port [get, set]
 Gets or sets the remote SSH port.
string Username [get, set]
 Gets or sets the SSH username.
string KeyPath [get, set]
 Gets or sets the private key file path.
bool? NeedsPassphrase [get, set]
 Gets or sets whether the private key requires a passphrase.
string? InitialDirectory [get, set]
 Gets or sets the initial remote directory after connecting.

Detailed Description

The SftpConnectionViewModel is the ViewModel for the Views.EditSftpWindow.

Constructor & Destructor Documentation

◆ SftpConnectionViewModel() [1/3]

FileSurfer.Core.ViewModels.SftpConnectionViewModel.SftpConnectionViewModel ( SftpConnection sftpConnection)
inline

Creates a connection view model from an existing SFTP connection model.

Here is the caller graph for this function:

◆ SftpConnectionViewModel() [2/3]

FileSurfer.Core.ViewModels.SftpConnectionViewModel.SftpConnectionViewModel ( Action< SftpConnectionViewModel > addSelf)
inline

Creates a new connection view model that adds itself to a target collection on save.

◆ SftpConnectionViewModel() [3/3]

FileSurfer.Core.ViewModels.SftpConnectionViewModel.SftpConnectionViewModel ( )
inline

Creates a new empty connection view model.

Member Function Documentation

◆ Copy()

SftpConnectionViewModel FileSurfer.Core.ViewModels.SftpConnectionViewModel.Copy ( )
inline

Creates a detached copy of the editable connection fields.

Here is the call graph for this function:

◆ Save()

void FileSurfer.Core.ViewModels.SftpConnectionViewModel.Save ( SftpConnectionViewModel saveFrom)
inline

Applies values from another view model, updates the model, and finalizes creation when needed.

Here is the call graph for this function:

Property Documentation

◆ CreateOnSave

bool FileSurfer.Core.ViewModels.SftpConnectionViewModel.CreateOnSave
get

Gets whether this view model should be added as a new connection when saved.

◆ FileSystem

SftpFileSystem? FileSurfer.Core.ViewModels.SftpConnectionViewModel.FileSystem
getset

Gets or sets the active SFTP file system instance for this connection.

◆ HostnameOrIpAddress

string FileSurfer.Core.ViewModels.SftpConnectionViewModel.HostnameOrIpAddress
getset

Gets or sets the remote host name or IP address.

◆ InitialDirectory

string? FileSurfer.Core.ViewModels.SftpConnectionViewModel.InitialDirectory
getset

Gets or sets the initial remote directory after connecting.

◆ KeyPath

string FileSurfer.Core.ViewModels.SftpConnectionViewModel.KeyPath
getset

Gets or sets the private key file path.

◆ NeedsPassphrase

bool? FileSurfer.Core.ViewModels.SftpConnectionViewModel.NeedsPassphrase
getset

Gets or sets whether the private key requires a passphrase.

◆ Port

ushort? FileSurfer.Core.ViewModels.SftpConnectionViewModel.Port
getset

Gets or sets the remote SSH port.

◆ SftpConnection

SftpConnection FileSurfer.Core.ViewModels.SftpConnectionViewModel.SftpConnection
get

Gets the underlying SFTP connection model.

◆ Username

string FileSurfer.Core.ViewModels.SftpConnectionViewModel.Username
getset

Gets or sets the SSH username.


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