using System; using System.Collections.Generic; using System.ComponentModel.Composition; using System.Linq; using System.Text; using Pithos.Client.Properties; using Pithos.Interfaces; namespace Pithos.Client { [Export(typeof(IPithosSettings))] public class PithosSettings:IPithosSettings { public string PithosPath { get { return Settings.Default.PithosPath; } set { Settings.Default.PithosPath=value; } } public string PithosSite { get { return Settings.Default.PithosSite; } } public string IconsPath { get { return Settings.Default.IconPath; } set { Settings.Default.IconPath=value; } } public string UserName { get { return Settings.Default.UserName; } set { Settings.Default.UserName=value; } } public string ApiKey { get { return Settings.Default.ApiKey; } set { Settings.Default.ApiKey=value; } } public AccountsCollection Accounts { get { return Settings.Default.Accounts; } set { Settings.Default.Accounts = value; } } public bool UseDefaultProxy { get { return Settings.Default.UseDefaultProxy; } set { Settings.Default.UseDefaultProxy = value; } } public bool UseManualProxy { get { return Settings.Default.UseManualProxy; } set { Settings.Default.UseManualProxy = value; } } public bool UseNoProxy { get { return Settings.Default.UseNoProxy; } set { Settings.Default.UseNoProxy = value; } } public bool ExtensionsActivated { get { return Settings.Default.ExtensionsActivated; } set { Settings.Default.ExtensionsActivated = value; } } public void Save() { Settings.Default.Save(); } public void Reload() { Settings.Default.Reload(); } public string ProxyServer { get { return Settings.Default.ProxyServer; } set { Settings.Default.ProxyServer = value; } } public int ProxyPort { get { return Settings.Default.ProxyPort; } set { Settings.Default.ProxyPort = value; } } public string ProxyUsername { get { return Settings.Default.ProxyUsername; } set { Settings.Default.ProxyUsername = value; } } public string ProxyPassword { get { return Settings.Default.ProxyPassword; } set { Settings.Default.ProxyPassword = value; } } public bool ProxyAuthentication { get { return Settings.Default.ProxyAuthentication; } set { Settings.Default.ProxyAuthentication = value; } } } }