C# 클래스 CmisSync.SetupController

MVC controller for the two wizards: - CmisSync tutorial that appears at firt run, - wizard to add a new remote folder.
파일 보기 프로젝트 열기: aegif/CmisSync 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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