Added SQLite status storage
[pithos-ms-client] / trunk / Pithos.Client / PithosSettings.cs
1 using System;
2 using System.Collections.Generic;
3 using System.ComponentModel.Composition;
4 using System.Linq;
5 using System.Text;
6 using Pithos.Client.Properties;
7 using Pithos.Interfaces;
8
9 namespace Pithos.Client
10 {
11     [Export(typeof(IPithosSettings))]
12     public class PithosSettings:IPithosSettings
13     {
14         public string PithosPath
15         {
16             get { return Settings.Default.PithosPath; }
17             set { Settings.Default.PithosPath=value; }
18         }
19
20         public string IconsPath
21         {
22             get { return Settings.Default.IconPath; }
23             set { Settings.Default.IconPath=value; }
24         }
25
26         public string UserName
27         {
28             get { return Settings.Default.UserName; }
29             set { Settings.Default.UserName=value; }
30         }
31
32         public string ApiKey
33         {
34             get { return Settings.Default.ApiKey; }
35             set { Settings.Default.ApiKey=value; }
36         }
37
38         public AccountsCollection Accounts
39         {
40             get { return Settings.Default.Accounts; }
41             set { Settings.Default.Accounts = value; }
42         }
43
44         public bool ExtensionsActivated
45         {
46
47             get { return Settings.Default.ExtensionsActivated; }
48             set { Settings.Default.ExtensionsActivated = value; }
49         }
50
51         public void Save()
52         {
53             Settings.Default.Save();
54         }
55
56         public void Reload()
57         {
58             Settings.Default.Reload();
59         }
60
61
62         public string ProxyServer
63         {
64             get { return Settings.Default.ProxyServer; }
65             set { Settings.Default.ProxyServer = value; }
66         }
67
68         public string ProxyPort
69         {
70             get { return Settings.Default.ProxyPort; }
71             set { Settings.Default.ProxyPort = value; }
72         }
73
74         public string ProxyUsername
75         {
76             get { return Settings.Default.ProxyUsername; }
77             set { Settings.Default.ProxyUsername = value; }
78         }
79
80
81         public string ProxyPassword
82         {
83             get { return Settings.Default.ProxyPassword; }
84             set { Settings.Default.ProxyPassword = value; }
85         }
86
87         public bool ProxyAuthentication
88         {
89
90             get { return Settings.Default.ProxyAuthentication; }
91             set { Settings.Default.ProxyAuthentication = value; }
92         }
93
94     }
95 }