C# Class CmisSync.SetupController

MVC controller for the two wizards: - CmisSync tutorial that appears at firt run, - wizard to add a new remote folder.
Afficher le fichier Open project: aegif/CmisSync Class Usage Examples

Méthodes publiques

Свойство Type Description
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

Méthodes publiques

Méthode Description
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.

Method Details

Add1PageCompleted() public méthode

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
Résultat void

Add2PageCompleted() public méthode

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
Résultat void

Add2PageCompleted() public méthode

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
Résultat void

BackToPage1() public méthode

Switch back from second to first step, presumably to change server or user.
public BackToPage1 ( ) : void
Résultat void

BackToPage2() public méthode

Switch back from customization to step 2 of the remote folder addition wizard.
public BackToPage2 ( ) : void
Résultat void

CheckAddPage() public méthode

Check whether the address is syntaxically valid. If OK, enable button to next step.
public CheckAddPage ( string address ) : string
address string URL to check
Résultat string

CheckRepoPathAndName() public méthode

Check local repository path and repo name.
public CheckRepoPathAndName ( string localpath, string reponame ) : string
localpath string
reponame string
Résultat string

CheckRepoPathExists() public méthode

public CheckRepoPathExists ( string localpath ) : void
localpath string
Résultat void

CheckSetupPage() public méthode

Check setup page.
public CheckSetupPage ( ) : void
Résultat void

CustomizePageCompleted() public méthode

Customization step of remote folder addition wizard is complete, start CmisSync.
public CustomizePageCompleted ( String repoName, String localrepopath ) : void
repoName String
localrepopath String
Résultat void

FinishPageCompleted() public méthode

Folder addition wizard is over, reset it for next use.
public FinishPageCompleted ( ) : void
Résultat void

GetRepositoriesFuzzy() static public méthode

Load repositories information from a CMIS endpoint.
static public GetRepositoriesFuzzy ( ServerCredentials credentials ) : Exception>.Tuple
credentials CmisSync.Lib.Config.ServerCredentials
Résultat Exception>.Tuple

GetSubfolders() static public méthode

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
Résultat string[]

OpenFolderClicked() public méthode

User clicked on the button to open the newly-created synchronized folder in the local file explorer.
public OpenFolderClicked ( ) : void
Résultat void

PageCancelled() public méthode

User pressed the "Cancel" button, hide window.
public PageCancelled ( ) : void
Résultat void

SettingsPageCompleted() public méthode

Repository settings page.
public SettingsPageCompleted ( string password, int pollInterval, bool syncAtStartup ) : void
password string
pollInterval int
syncAtStartup bool
Résultat void

SetupController() public méthode

Constructor.
public SetupController ( ) : System
Résultat System

SetupPageCancelled() public méthode

First-time wizard has been cancelled, so quit CmisSync.
public SetupPageCancelled ( ) : void
Résultat void

SetupPageCompleted() public méthode

Move to second page of the tutorial.
public SetupPageCompleted ( ) : void
Résultat void

StartupItemChanged() public méthode

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
Résultat void

TutorialPageCompleted() public méthode

Go to next step of the tutorial.
public TutorialPageCompleted ( ) : void
Résultat void

TutorialSkipped() public méthode

Tutorial has been skipped, go to last step of wizard.
public TutorialSkipped ( ) : void
Résultat void

Property Details

ignoredPaths public_oe property

Ignored paths.
public List ignoredPaths
Résultat List

repositories public_oe property

List of the CMIS repositories at the chosen URL.
public Dictionary repositories
Résultat string>.Dictionary

saved_address public_oe property

Saved address.
public Uri,System saved_address
Résultat System.Uri

saved_password public_oe property

Saved password.
public string saved_password
Résultat string

saved_remote_path public_oe property

Saved remote path.
public string saved_remote_path
Résultat string

saved_repository public_oe property

Saved repository.
public string saved_repository
Résultat string

saved_sync_interval public_oe property

Saved sync interval.
public int saved_sync_interval
Résultat int

saved_syncatstartup public_oe property

Saved sync at startup
public bool saved_syncatstartup
Résultat bool

saved_user public_oe property

Saved user.
public string saved_user
Résultat string