Statistics
| Branch: | Revision:

root / trunk / Pithos.Interfaces / PithosSettingsData.cs @ f734ab5b

History | View | Annotate | Download (2.3 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
            IconsPath = other.IconsPath;
49
            UserName = other.UserName;
50
            ApiKey = other.ApiKey;
51
            Accounts = other.Accounts;
52
            UseDefaultProxy = other.UseDefaultProxy;
53
            UseManualProxy = other.UseManualProxy;
54
            UseNoProxy = other.UseNoProxy;
55
            ProxyServer = other.ProxyServer;
56
            ProxyPort = other.ProxyPort;
57
            ProxyUsername = other.ProxyUsername;
58
            ProxyPassword = other.ProxyPassword;
59
            ProxyAuthentication = other.ProxyAuthentication;
60
            ExtensionsActivated = other.ExtensionsActivated;
61
        }
62

    
63
        public virtual void Save()
64
        {
65
            
66
        }
67

    
68
        public virtual void Reload()
69
        {
70
            
71
        }
72
    }
73
}