C# Class Sparkles.Configuration

Inheritance: System.Xml.XmlDocument
ファイルを表示 Open project: hbons/SparkleShare Class Usage Examples

Public Properties

Property Type Description
BinPath string
DebugMode bool
DefaultConfiguration Configuration
DirectoryPath string
FilePath string
LogFilePath string
TmpPath string

Public Methods

Method Description
AddFolder ( string name, string identifier, string url, string backend ) : void
BackendByName ( string name ) : string
Configuration ( string config_path, string config_file_name ) : System
GetConfigOption ( string name ) : string
GetFolderOptionalAttribute ( string folder_name, string key ) : string
IdentifierByName ( string name ) : string
IdentifierExists ( string identifier ) : bool
RemoveFolder ( string name ) : void
RenameFolder ( string identifier, string new_name ) : void
SetConfigOption ( string name, string content ) : void
SetFolderOptionalAttribute ( string folder_name, string key, string value ) : bool
UrlByName ( string name ) : string

Private Methods

Method Description
CreateInitialConfig ( ) : void
FolderByName ( string name ) : XmlNode
FolderValueByKey ( string name, string key ) : string
Save ( ) : void

Method Details

AddFolder() public method

public AddFolder ( string name, string identifier, string url, string backend ) : void
name string
identifier string
url string
backend string
return void

BackendByName() public method

public BackendByName ( string name ) : string
name string
return string

Configuration() public method

public Configuration ( string config_path, string config_file_name ) : System
config_path string
config_file_name string
return System

GetConfigOption() public method

public GetConfigOption ( string name ) : string
name string
return string

GetFolderOptionalAttribute() public method

public GetFolderOptionalAttribute ( string folder_name, string key ) : string
folder_name string
key string
return string

IdentifierByName() public method

public IdentifierByName ( string name ) : string
name string
return string

IdentifierExists() public method

public IdentifierExists ( string identifier ) : bool
identifier string
return bool

RemoveFolder() public method

public RemoveFolder ( string name ) : void
name string
return void

RenameFolder() public method

public RenameFolder ( string identifier, string new_name ) : void
identifier string
new_name string
return void

SetConfigOption() public method

public SetConfigOption ( string name, string content ) : void
name string
content string
return void

SetFolderOptionalAttribute() public method

public SetFolderOptionalAttribute ( string folder_name, string key, string value ) : bool
folder_name string
key string
value string
return bool

UrlByName() public method

public UrlByName ( string name ) : string
name string
return string

Property Details

BinPath public_oe property

public string BinPath
return string

DebugMode public_oe static_oe property

public static bool DebugMode
return bool

DefaultConfiguration public_oe static_oe property

public static Configuration,Sparkles DefaultConfiguration
return Configuration

DirectoryPath public_oe property

public string DirectoryPath
return string

FilePath public_oe property

public string FilePath
return string

LogFilePath public_oe property

public string LogFilePath
return string

TmpPath public_oe property

public string TmpPath
return string