C# Класс CmisSync.SetupController

MVC controller for the two wizards: - CmisSync tutorial that appears at firt run, - wizard to add a new remote folder.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
ignoredPaths List
repositories string>.Dictionary
saved_address System.Uri
saved_password string
saved_remote_path string
saved_repository string
saved_sync_interval int
saved_syncatstartup bool
saved_user string

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

Метод Описание
Add1PageCompleted ( Uri address, string user, string password ) : void

First step of remote folder addition wizard is complete, switch to second step

Add2PageCompleted ( string repository, string remote_path ) : void

Second step of remote folder addition wizard is complete, switch to customization step.

Add2PageCompleted ( string repository, string remote_path, string ignoredPaths, string selectedFolder ) : void

Second step of remote folder addition wizard is complete, switch to customization step.

BackToPage1 ( ) : void

Switch back from second to first step, presumably to change server or user.

BackToPage2 ( ) : void

Switch back from customization to step 2 of the remote folder addition wizard.

CheckAddPage ( string address ) : string

Check whether the address is syntaxically valid. If OK, enable button to next step.

CheckRepoPathAndName ( string localpath, string reponame ) : string

Check local repository path and repo name.

CheckRepoPathExists ( string localpath ) : void

CheckSetupPage ( ) : void

Check setup page.

CustomizePageCompleted ( String repoName, String localrepopath ) : void

Customization step of remote folder addition wizard is complete, start CmisSync.

FinishPageCompleted ( ) : void

Folder addition wizard is over, reset it for next use.

GetRepositoriesFuzzy ( ServerCredentials credentials ) : Exception>.Tuple

Load repositories information from a CMIS endpoint.

GetSubfolders ( string repositoryId, string path, string address, string user, string password ) : string[]

Get the list of subfolders contained in a CMIS folder.

OpenFolderClicked ( ) : void

User clicked on the button to open the newly-created synchronized folder in the local file explorer.

PageCancelled ( ) : void

User pressed the "Cancel" button, hide window.

SettingsPageCompleted ( string password, int pollInterval, bool syncAtStartup ) : void

Repository settings page.

SetupController ( ) : System

Constructor.

SetupPageCancelled ( ) : void

First-time wizard has been cancelled, so quit CmisSync.

SetupPageCompleted ( ) : void

Move to second page of the tutorial.

StartupItemChanged ( bool create_startup_item ) : void

Checkbox to add CmisSync to the list of programs to be started up when the user logs into Windows.

TutorialPageCompleted ( ) : void

Go to next step of the tutorial.

TutorialSkipped ( ) : void

Tutorial has been skipped, go to last step of wizard.

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

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

First step of remote folder addition wizard is complete, switch to second step
public Add1PageCompleted ( Uri address, string user, string password ) : void
address System.Uri
user string
password string
Результат void

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

Second step of remote folder addition wizard is complete, switch to customization step.
public Add2PageCompleted ( string repository, string remote_path ) : void
repository string
remote_path string
Результат void

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

Second step of remote folder addition wizard is complete, switch to customization step.
public Add2PageCompleted ( string repository, string remote_path, string ignoredPaths, string selectedFolder ) : void
repository string
remote_path string
ignoredPaths string
selectedFolder string
Результат void

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

Switch back from second to first step, presumably to change server or user.
public BackToPage1 ( ) : void
Результат void

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

Switch back from customization to step 2 of the remote folder addition wizard.
public BackToPage2 ( ) : void
Результат void

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

Check whether the address is syntaxically valid. If OK, enable button to next step.
public CheckAddPage ( string address ) : string
address string URL to check
Результат string

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

Check local repository path and repo name.
public CheckRepoPathAndName ( string localpath, string reponame ) : string
localpath string
reponame string
Результат string

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

public CheckRepoPathExists ( string localpath ) : void
localpath string
Результат void

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

Check setup page.
public CheckSetupPage ( ) : void
Результат void

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

Customization step of remote folder addition wizard is complete, start CmisSync.
public CustomizePageCompleted ( String repoName, String localrepopath ) : void
repoName String
localrepopath String
Результат void

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

Folder addition wizard is over, reset it for next use.
public FinishPageCompleted ( ) : void
Результат void

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

Load repositories information from a CMIS endpoint.
static public GetRepositoriesFuzzy ( ServerCredentials credentials ) : Exception>.Tuple
credentials CmisSync.Lib.Config.ServerCredentials
Результат Exception>.Tuple

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

Get the list of subfolders contained in a CMIS folder.
static public GetSubfolders ( string repositoryId, string path, string address, string user, string password ) : string[]
repositoryId string
path string
address string
user string
password string
Результат string[]

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

User clicked on the button to open the newly-created synchronized folder in the local file explorer.
public OpenFolderClicked ( ) : void
Результат void

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

User pressed the "Cancel" button, hide window.
public PageCancelled ( ) : void
Результат void

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

Repository settings page.
public SettingsPageCompleted ( string password, int pollInterval, bool syncAtStartup ) : void
password string
pollInterval int
syncAtStartup bool
Результат void

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

Constructor.
public SetupController ( ) : System
Результат System

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

First-time wizard has been cancelled, so quit CmisSync.
public SetupPageCancelled ( ) : void
Результат void

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

Move to second page of the tutorial.
public SetupPageCompleted ( ) : void
Результат void

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

Checkbox to add CmisSync to the list of programs to be started up when the user logs into Windows.
public StartupItemChanged ( bool create_startup_item ) : void
create_startup_item bool
Результат void

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

Go to next step of the tutorial.
public TutorialPageCompleted ( ) : void
Результат void

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

Tutorial has been skipped, go to last step of wizard.
public TutorialSkipped ( ) : void
Результат void

Описание свойств

ignoredPaths публичное свойство

Ignored paths.
public List ignoredPaths
Результат List

repositories публичное свойство

List of the CMIS repositories at the chosen URL.
public Dictionary repositories
Результат string>.Dictionary

saved_address публичное свойство

Saved address.
public Uri,System saved_address
Результат System.Uri

saved_password публичное свойство

Saved password.
public string saved_password
Результат string

saved_remote_path публичное свойство

Saved remote path.
public string saved_remote_path
Результат string

saved_repository публичное свойство

Saved repository.
public string saved_repository
Результат string

saved_sync_interval публичное свойство

Saved sync interval.
public int saved_sync_interval
Результат int

saved_syncatstartup публичное свойство

Saved sync at startup
public bool saved_syncatstartup
Результат bool

saved_user публичное свойство

Saved user.
public string saved_user
Результат string