C# Класс CmisSync.ControllerBase

Platform-independant part of the main CmisSync controller.
Наследование: IActivityListener
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
Logger log4net.ILog

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

Метод Описание
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.

Приватные методы

Метод Описание
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.

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

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

Error occured.
public ActivityError ( Exception>.Tuple error ) : void
error Exception>.Tuple
Результат void

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

A download or upload has started, so run task icon animation.
public ActivityStarted ( ) : void
Результат void

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

No download nor upload, so no task icon animation.
public ActivityStopped ( ) : void
Результат void

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

Add CmisSync to the user's Windows Explorer bookmarks.
public abstract AddToBookmarks ( ) : void
Результат void

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

Constructor.
public ControllerBase ( ) : CmisSync.Lib
Результат CmisSync.Lib

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

Creates the CmisSync folder in the user's home folder.
public abstract CreateCmisSyncFolder ( ) : bool
Результат bool

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

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
Результат void

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

Add CmisSync to the list of programs to be started up when the user logs into Windows.
public abstract CreateStartupItem ( ) : void
Результат void

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

Disable synchronization for a particular folder.
public DisableRepositorySynchronization ( string repoName ) : void
repoName string the folder to disable sync for
Результат void

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

Eanble or disable synchronization for a particular folder.
public EnableOrDisableRepositorySynchronization ( string repoName ) : void
repoName string the folder to pause/unpause
Результат void

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

Enable synchronization for a particular folder.
public EnableRepositorySynchronization ( string repoName ) : void
repoName string the folder to enable sync for
Результат void

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

Initialize the controller.
public Initialize ( System.Boolean firstRun ) : void
firstRun System.Boolean Whether it is the first time that CmisSync is being run.
Результат void

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

Run a sync manually.
public ManualSync ( string reponame ) : void
reponame string
Результат void

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

Quit CmisSync.
public Quit ( ) : void
Результат void

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

Remove repository from sync.
public RemoveRepositoryFromSync ( string reponame ) : void
reponame string
Результат void

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

Show info about CmisSync
public ShowAboutWindow ( ) : void
Результат void

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

Show an alert to the user.
public ShowAlert ( string title, string message ) : void
title string
message string
Результат void

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

Show first-time wizard.
public ShowSetupWindow ( PageType page_type ) : void
page_type PageType
Результат void

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

Once the GUI has loaded, show setup window if it is the first run, or check the repositories.
public UIHasLoaded ( ) : void
Результат void

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

Update settings for repository.
public UpdateRepositorySettings ( string repoName, string password, int pollInterval, bool syncAtStartup ) : void
repoName string
password string
pollInterval int
syncAtStartup bool
Результат void

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

Logger защищенное статическое свойство

Log.
protected static ILog,log4net Logger
Результат log4net.ILog