root / trunk / Pithos.Interfaces / PithosSettingsData.cs @ cfed7823
History | View | Annotate | Download (2.4 kB)
1 |
// ----------------------------------------------------------------------- |
---|---|
2 |
// <copyright file="PithosSettingsData.cs" company="Microsoft"> |
3 |
// TODO: Update copyright text. |
4 |
// </copyright> |
5 |
// ----------------------------------------------------------------------- |
6 |
|
7 |
using System.Diagnostics.Contracts; |
8 |
|
9 |
namespace Pithos.Interfaces |
10 |
{ |
11 |
using System; |
12 |
using System.Collections.Generic; |
13 |
using System.Linq; |
14 |
using System.Text; |
15 |
|
16 |
/// <summary> |
17 |
/// TODO: Update summary. |
18 |
/// </summary> |
19 |
public class PithosSettingsData:IPithosSettings |
20 |
{ |
21 |
public string PithosPath { get; set; } |
22 |
public string PithosSite { get; set; } |
23 |
public string IconsPath { get; set; } |
24 |
public string UserName { get; set; } |
25 |
public string ApiKey { get; set; } |
26 |
public AccountsCollection Accounts { get; set; } |
27 |
public bool UseDefaultProxy { get; set; } |
28 |
public bool UseManualProxy { get; set; } |
29 |
public bool UseNoProxy { get; set; } |
30 |
public string ProxyServer { get; set; } |
31 |
public int ProxyPort { get; set; } |
32 |
public string ProxyUsername { get; set; } |
33 |
public string ProxyPassword { get; set; } |
34 |
public bool ProxyAuthentication { get; set; } |
35 |
public bool ExtensionsActivated { get; set; } |
36 |
|
37 |
public PithosSettingsData() |
38 |
{ |
39 |
|
40 |
} |
41 |
public PithosSettingsData(IPithosSettings other) |
42 |
{ |
43 |
if (other == null) |
44 |
throw new ArgumentNullException("other"); |
45 |
Contract.EndContractBlock(); |
46 |
|
47 |
PithosPath = other.PithosPath; |
48 |
PithosSite = other.PithosSite; |
49 |
IconsPath = other.IconsPath; |
50 |
UserName = other.UserName; |
51 |
ApiKey = other.ApiKey; |
52 |
Accounts = other.Accounts; |
53 |
UseDefaultProxy = other.UseDefaultProxy; |
54 |
UseManualProxy = other.UseManualProxy; |
55 |
UseNoProxy = other.UseNoProxy; |
56 |
ProxyServer = other.ProxyServer; |
57 |
ProxyPort = other.ProxyPort; |
58 |
ProxyUsername = other.ProxyUsername; |
59 |
ProxyPassword = other.ProxyPassword; |
60 |
ProxyAuthentication = other.ProxyAuthentication; |
61 |
ExtensionsActivated = other.ExtensionsActivated; |
62 |
} |
63 |
|
64 |
public virtual void Save() |
65 |
{ |
66 |
|
67 |
} |
68 |
|
69 |
public virtual void Reload() |
70 |
{ |
71 |
|
72 |
} |
73 |
} |
74 |
} |