C# 클래스 CmisSync.ControllerBase

Platform-independant part of the main CmisSync controller.
상속: IActivityListener
파일 보기 프로젝트 열기: aegif/CmisSync

보호된 프로퍼티들

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