C# Class CmisSync.ControllerBase

Platform-independant part of the main CmisSync controller.
Inheritance: IActivityListener
ファイルを表示 Open project: aegif/CmisSync

Protected Properties

Property Type Description
Logger log4net.ILog

Public Methods

Method Description
ActivityError ( Exception>.Tuple error ) : void

Error occured.

ActivityStarted ( ) : void

A download or upload has started, so run task icon animation.

ActivityStopped ( ) : void

No download nor upload, so no task icon animation.

AddToBookmarks ( ) : void

Add CmisSync to the user's Windows Explorer bookmarks.

ControllerBase ( ) : CmisSync.Lib

Constructor.

CreateCmisSyncFolder ( ) : bool

Creates the CmisSync folder in the user's home folder.

CreateRepository ( string name, Uri address, string user, string password, string repository, string remote_path, string local_path, List ignoredPaths, bool syncAtStartup ) : void

Create a new CmisSync synchronized folder.

CreateStartupItem ( ) : void

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

DisableRepositorySynchronization ( string repoName ) : void

Disable synchronization for a particular folder.

EnableOrDisableRepositorySynchronization ( string repoName ) : void

Eanble or disable synchronization for a particular folder.

EnableRepositorySynchronization ( string repoName ) : void

Enable synchronization for a particular folder.

Initialize ( System.Boolean firstRun ) : void

Initialize the controller.

ManualSync ( string reponame ) : void

Run a sync manually.

Quit ( ) : void

Quit CmisSync.

RemoveRepositoryFromSync ( string reponame ) : void

Remove repository from sync.

ShowAboutWindow ( ) : void

Show info about CmisSync

ShowAlert ( string title, string message ) : void

Show an alert to the user.

ShowSetupWindow ( PageType page_type ) : void

Show first-time wizard.

UIHasLoaded ( ) : void

Once the GUI has loaded, show setup window if it is the first run, or check the repositories.

UpdateRepositorySettings ( string repoName, string password, int pollInterval, bool syncAtStartup ) : void

Update settings for repository.

Private Methods

Method Description
AddRepository ( RepoInfo repositoryInfo ) : void

Initialize (in the GUI and syncing mechanism) an existing CmisSync synchronized folder.

CheckRepositories ( ) : void

Check the configured CmisSync synchronized folders. Remove the ones whose folders have been deleted.

ClearFolderAttributes ( string path ) : void

Fix the file attributes of a folder, recursively.

RemoveDatabase ( string folder_path ) : void

Remove the local database associated with a CmisSync synchronized folder.

RemoveRepository ( Config folder ) : void

Remove a synchronized folder from the CmisSync configuration. This happens after the user removes the folder.

Method Details

ActivityError() public method

Error occured.
public ActivityError ( Exception>.Tuple error ) : void
error Exception>.Tuple
return void

ActivityStarted() public method

A download or upload has started, so run task icon animation.
public ActivityStarted ( ) : void
return void

ActivityStopped() public method

No download nor upload, so no task icon animation.
public ActivityStopped ( ) : void
return void

AddToBookmarks() public abstract method

Add CmisSync to the user's Windows Explorer bookmarks.
public abstract AddToBookmarks ( ) : void
return void

ControllerBase() public method

Constructor.
public ControllerBase ( ) : CmisSync.Lib
return CmisSync.Lib

CreateCmisSyncFolder() public abstract method

Creates the CmisSync folder in the user's home folder.
public abstract CreateCmisSyncFolder ( ) : bool
return bool

CreateRepository() public method

Create a new CmisSync synchronized folder.
public CreateRepository ( string name, Uri address, string user, string password, string repository, string remote_path, string local_path, List ignoredPaths, bool syncAtStartup ) : void
name string
address System.Uri
user string
password string
repository string
remote_path string
local_path string
ignoredPaths List
syncAtStartup bool
return void

CreateStartupItem() public abstract method

Add CmisSync to the list of programs to be started up when the user logs into Windows.
public abstract CreateStartupItem ( ) : void
return void

DisableRepositorySynchronization() public method

Disable synchronization for a particular folder.
public DisableRepositorySynchronization ( string repoName ) : void
repoName string the folder to disable sync for
return void

EnableOrDisableRepositorySynchronization() public method

Eanble or disable synchronization for a particular folder.
public EnableOrDisableRepositorySynchronization ( string repoName ) : void
repoName string the folder to pause/unpause
return void

EnableRepositorySynchronization() public method

Enable synchronization for a particular folder.
public EnableRepositorySynchronization ( string repoName ) : void
repoName string the folder to enable sync for
return void

Initialize() public method

Initialize the controller.
public Initialize ( System.Boolean firstRun ) : void
firstRun System.Boolean Whether it is the first time that CmisSync is being run.
return void

ManualSync() public method

Run a sync manually.
public ManualSync ( string reponame ) : void
reponame string
return void

Quit() public method

Quit CmisSync.
public Quit ( ) : void
return void

RemoveRepositoryFromSync() public method

Remove repository from sync.
public RemoveRepositoryFromSync ( string reponame ) : void
reponame string
return void

ShowAboutWindow() public method

Show info about CmisSync
public ShowAboutWindow ( ) : void
return void

ShowAlert() public method

Show an alert to the user.
public ShowAlert ( string title, string message ) : void
title string
message string
return void

ShowSetupWindow() public method

Show first-time wizard.
public ShowSetupWindow ( PageType page_type ) : void
page_type PageType
return void

UIHasLoaded() public method

Once the GUI has loaded, show setup window if it is the first run, or check the repositories.
public UIHasLoaded ( ) : void
return void

UpdateRepositorySettings() public method

Update settings for repository.
public UpdateRepositorySettings ( string repoName, string password, int pollInterval, bool syncAtStartup ) : void
repoName string
password string
pollInterval int
syncAtStartup bool
return void

Property Details

Logger protected_oe static_oe property

Log.
protected static ILog,log4net Logger
return log4net.ILog