C# Class CmisSync.ControllerBase

Platform-independant part of the main CmisSync controller.
Inheritance: IActivityListener
Afficher le fichier Open project: aegif/CmisSync

Protected Properties

Свойство Type Description
Logger log4net.ILog

Méthodes publiques

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

Méthode 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 méthode

Error occured.
public ActivityError ( Exception>.Tuple error ) : void
error Exception>.Tuple
Résultat void

ActivityStarted() public méthode

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

ActivityStopped() public méthode

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

AddToBookmarks() public abstract méthode

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

ControllerBase() public méthode

Constructor.
public ControllerBase ( ) : CmisSync.Lib
Résultat CmisSync.Lib

CreateCmisSyncFolder() public abstract méthode

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

CreateRepository() public méthode

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

CreateStartupItem() public abstract méthode

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

DisableRepositorySynchronization() public méthode

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

EnableOrDisableRepositorySynchronization() public méthode

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

EnableRepositorySynchronization() public méthode

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

Initialize() public méthode

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

ManualSync() public méthode

Run a sync manually.
public ManualSync ( string reponame ) : void
reponame string
Résultat void

Quit() public méthode

Quit CmisSync.
public Quit ( ) : void
Résultat void

RemoveRepositoryFromSync() public méthode

Remove repository from sync.
public RemoveRepositoryFromSync ( string reponame ) : void
reponame string
Résultat void

ShowAboutWindow() public méthode

Show info about CmisSync
public ShowAboutWindow ( ) : void
Résultat void

ShowAlert() public méthode

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

ShowSetupWindow() public méthode

Show first-time wizard.
public ShowSetupWindow ( PageType page_type ) : void
page_type PageType
Résultat void

UIHasLoaded() public méthode

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

UpdateRepositorySettings() public méthode

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

Property Details

Logger protected_oe static_oe property

Log.
protected static ILog,log4net Logger
Résultat log4net.ILog