root / trunk / Pithos.Client / PithosSettings.cs @ 5bcf6d70
History | View | Annotate | Download (2.9 kB)
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 PithosSite |
21 |
{ |
22 |
get { return Settings.Default.PithosSite; } |
23 |
} |
24 |
|
25 |
public string IconsPath |
26 |
{ |
27 |
get { return Settings.Default.IconPath; } |
28 |
set { Settings.Default.IconPath=value; } |
29 |
} |
30 |
|
31 |
public string UserName |
32 |
{ |
33 |
get { return Settings.Default.UserName; } |
34 |
set { Settings.Default.UserName=value; } |
35 |
} |
36 |
|
37 |
public string ApiKey |
38 |
{ |
39 |
get { return Settings.Default.ApiKey; } |
40 |
set { Settings.Default.ApiKey=value; } |
41 |
} |
42 |
|
43 |
public AccountsCollection Accounts |
44 |
{ |
45 |
get { return Settings.Default.Accounts; } |
46 |
set { Settings.Default.Accounts = value; } |
47 |
} |
48 |
|
49 |
public bool UseDefaultProxy |
50 |
{ |
51 |
get { return Settings.Default.UseDefaultProxy; } |
52 |
set { Settings.Default.UseDefaultProxy = value; } |
53 |
} |
54 |
|
55 |
public bool UseManualProxy |
56 |
{ |
57 |
get { return Settings.Default.UseManualProxy; } |
58 |
set { Settings.Default.UseManualProxy = value; } |
59 |
} |
60 |
|
61 |
public bool UseNoProxy |
62 |
{ |
63 |
get { return Settings.Default.UseNoProxy; } |
64 |
set { Settings.Default.UseNoProxy = value; } |
65 |
} |
66 |
|
67 |
public bool ExtensionsActivated |
68 |
{ |
69 |
|
70 |
get { return Settings.Default.ExtensionsActivated; } |
71 |
set { Settings.Default.ExtensionsActivated = value; } |
72 |
} |
73 |
|
74 |
public void Save() |
75 |
{ |
76 |
Settings.Default.Save(); |
77 |
} |
78 |
|
79 |
public void Reload() |
80 |
{ |
81 |
Settings.Default.Reload(); |
82 |
} |
83 |
|
84 |
|
85 |
public string ProxyServer |
86 |
{ |
87 |
get { return Settings.Default.ProxyServer; } |
88 |
set { Settings.Default.ProxyServer = value; } |
89 |
} |
90 |
|
91 |
public int ProxyPort |
92 |
{ |
93 |
get { return Settings.Default.ProxyPort; } |
94 |
set { Settings.Default.ProxyPort = value; } |
95 |
} |
96 |
|
97 |
public string ProxyUsername |
98 |
{ |
99 |
get { return Settings.Default.ProxyUsername; } |
100 |
set { Settings.Default.ProxyUsername = value; } |
101 |
} |
102 |
|
103 |
|
104 |
public string ProxyPassword |
105 |
{ |
106 |
get { return Settings.Default.ProxyPassword; } |
107 |
set { Settings.Default.ProxyPassword = value; } |
108 |
} |
109 |
|
110 |
public bool ProxyAuthentication |
111 |
{ |
112 |
|
113 |
get { return Settings.Default.ProxyAuthentication; } |
114 |
set { Settings.Default.ProxyAuthentication = value; } |
115 |
} |
116 |
|
117 |
} |
118 |
} |