Statistics
| Branch: | Revision:

root / trunk / Pithos.Interfaces / PithosSettingsData.cs @ 8d2b4fa3

History | View | Annotate | Download (4.3 kB)

1 255f5f86 Panagiotis Kanavos
#region
2 255f5f86 Panagiotis Kanavos
/* -----------------------------------------------------------------------
3 255f5f86 Panagiotis Kanavos
 * <copyright file="PithosSettingsData.cs" company="GRNet">
4 255f5f86 Panagiotis Kanavos
 * 
5 255f5f86 Panagiotis Kanavos
 * Copyright 2011-2012 GRNET S.A. All rights reserved.
6 255f5f86 Panagiotis Kanavos
 *
7 255f5f86 Panagiotis Kanavos
 * Redistribution and use in source and binary forms, with or
8 255f5f86 Panagiotis Kanavos
 * without modification, are permitted provided that the following
9 255f5f86 Panagiotis Kanavos
 * conditions are met:
10 255f5f86 Panagiotis Kanavos
 *
11 255f5f86 Panagiotis Kanavos
 *   1. Redistributions of source code must retain the above
12 255f5f86 Panagiotis Kanavos
 *      copyright notice, this list of conditions and the following
13 255f5f86 Panagiotis Kanavos
 *      disclaimer.
14 255f5f86 Panagiotis Kanavos
 *
15 255f5f86 Panagiotis Kanavos
 *   2. Redistributions in binary form must reproduce the above
16 255f5f86 Panagiotis Kanavos
 *      copyright notice, this list of conditions and the following
17 255f5f86 Panagiotis Kanavos
 *      disclaimer in the documentation and/or other materials
18 255f5f86 Panagiotis Kanavos
 *      provided with the distribution.
19 255f5f86 Panagiotis Kanavos
 *
20 255f5f86 Panagiotis Kanavos
 *
21 255f5f86 Panagiotis Kanavos
 * THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS
22 255f5f86 Panagiotis Kanavos
 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
23 255f5f86 Panagiotis Kanavos
 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
24 255f5f86 Panagiotis Kanavos
 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR
25 255f5f86 Panagiotis Kanavos
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 255f5f86 Panagiotis Kanavos
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 255f5f86 Panagiotis Kanavos
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
28 255f5f86 Panagiotis Kanavos
 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
29 255f5f86 Panagiotis Kanavos
 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 255f5f86 Panagiotis Kanavos
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
31 255f5f86 Panagiotis Kanavos
 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32 255f5f86 Panagiotis Kanavos
 * POSSIBILITY OF SUCH DAMAGE.
33 255f5f86 Panagiotis Kanavos
 *
34 255f5f86 Panagiotis Kanavos
 * The views and conclusions contained in the software and
35 255f5f86 Panagiotis Kanavos
 * documentation are those of the authors and should not be
36 255f5f86 Panagiotis Kanavos
 * interpreted as representing official policies, either expressed
37 255f5f86 Panagiotis Kanavos
 * or implied, of GRNET S.A.
38 255f5f86 Panagiotis Kanavos
 * </copyright>
39 255f5f86 Panagiotis Kanavos
 * -----------------------------------------------------------------------
40 255f5f86 Panagiotis Kanavos
 */
41 255f5f86 Panagiotis Kanavos
#endregion
42 cfed7823 Panagiotis Kanavos
using System.Diagnostics.Contracts;
43 cfed7823 Panagiotis Kanavos
44 5bcf6d70 Panagiotis Kanavos
namespace Pithos.Interfaces
45 5bcf6d70 Panagiotis Kanavos
{
46 5bcf6d70 Panagiotis Kanavos
    using System;
47 5bcf6d70 Panagiotis Kanavos
    using System.Collections.Generic;
48 5bcf6d70 Panagiotis Kanavos
    using System.Linq;
49 5bcf6d70 Panagiotis Kanavos
    using System.Text;
50 5bcf6d70 Panagiotis Kanavos
51 5bcf6d70 Panagiotis Kanavos
    /// <summary>
52 5bcf6d70 Panagiotis Kanavos
    /// TODO: Update summary.
53 5bcf6d70 Panagiotis Kanavos
    /// </summary>
54 5bcf6d70 Panagiotis Kanavos
    public class PithosSettingsData:IPithosSettings
55 5bcf6d70 Panagiotis Kanavos
    {
56 5bcf6d70 Panagiotis Kanavos
        public string PithosPath { get; set; }
57 5bcf6d70 Panagiotis Kanavos
        public string PithosSite { get; set; }
58 5bcf6d70 Panagiotis Kanavos
        public string IconsPath { get; set; }
59 5bcf6d70 Panagiotis Kanavos
        public string UserName { get; set; }
60 5bcf6d70 Panagiotis Kanavos
        public string ApiKey { get; set; }
61 5bcf6d70 Panagiotis Kanavos
        public AccountsCollection Accounts { get; set; }
62 5bcf6d70 Panagiotis Kanavos
        public bool UseDefaultProxy { get; set; }
63 5bcf6d70 Panagiotis Kanavos
        public bool UseManualProxy { get; set; }
64 5bcf6d70 Panagiotis Kanavos
        public bool UseNoProxy { get; set; }
65 5bcf6d70 Panagiotis Kanavos
        public string ProxyServer { get; set; }
66 5bcf6d70 Panagiotis Kanavos
        public int ProxyPort { get; set; }
67 5bcf6d70 Panagiotis Kanavos
        public string ProxyUsername { get; set; }
68 5bcf6d70 Panagiotis Kanavos
        public string ProxyPassword { get; set; }
69 65282d58 Panagiotis Kanavos
        public string ProxyDomain { get; set; }
70 5bcf6d70 Panagiotis Kanavos
        public bool ProxyAuthentication { get; set; }
71 5bcf6d70 Panagiotis Kanavos
        public bool ExtensionsActivated { get; set; }
72 759bd3c4 Panagiotis Kanavos
        public TimeSpan StartupDelay { get; set; }
73 133f83c2 Panagiotis Kanavos
        public int PollingInterval { get; set; }
74 422c9598 Panagiotis Kanavos
        public byte HashingParallelism { get; set; }
75 bb679ec8 Panagiotis Kanavos
        public TimeSpan FileIdleTimeout { get; set; }
76 5bcf6d70 Panagiotis Kanavos
77 5bcf6d70 Panagiotis Kanavos
        public PithosSettingsData()
78 5bcf6d70 Panagiotis Kanavos
        {
79 5bcf6d70 Panagiotis Kanavos
            
80 5bcf6d70 Panagiotis Kanavos
        }
81 5bcf6d70 Panagiotis Kanavos
        public PithosSettingsData(IPithosSettings other)
82 5bcf6d70 Panagiotis Kanavos
        {
83 cfed7823 Panagiotis Kanavos
            if (other == null)
84 cfed7823 Panagiotis Kanavos
                throw new ArgumentNullException("other");
85 cfed7823 Panagiotis Kanavos
            Contract.EndContractBlock();
86 cfed7823 Panagiotis Kanavos
87 5bcf6d70 Panagiotis Kanavos
            PithosPath = other.PithosPath;
88 5bcf6d70 Panagiotis Kanavos
            IconsPath = other.IconsPath;
89 5bcf6d70 Panagiotis Kanavos
            UserName = other.UserName;
90 5bcf6d70 Panagiotis Kanavos
            ApiKey = other.ApiKey;
91 5bcf6d70 Panagiotis Kanavos
            Accounts = other.Accounts;
92 5bcf6d70 Panagiotis Kanavos
            UseDefaultProxy = other.UseDefaultProxy;
93 5bcf6d70 Panagiotis Kanavos
            UseManualProxy = other.UseManualProxy;
94 5bcf6d70 Panagiotis Kanavos
            UseNoProxy = other.UseNoProxy;
95 5bcf6d70 Panagiotis Kanavos
            ProxyServer = other.ProxyServer;
96 5bcf6d70 Panagiotis Kanavos
            ProxyPort = other.ProxyPort;
97 5bcf6d70 Panagiotis Kanavos
            ProxyUsername = other.ProxyUsername;
98 5bcf6d70 Panagiotis Kanavos
            ProxyPassword = other.ProxyPassword;
99 65282d58 Panagiotis Kanavos
            ProxyDomain = other.ProxyDomain;
100 5bcf6d70 Panagiotis Kanavos
            ProxyAuthentication = other.ProxyAuthentication;
101 5bcf6d70 Panagiotis Kanavos
            ExtensionsActivated = other.ExtensionsActivated;
102 133f83c2 Panagiotis Kanavos
            PollingInterval = other.PollingInterval;
103 759bd3c4 Panagiotis Kanavos
            StartupDelay = other.StartupDelay;
104 bb679ec8 Panagiotis Kanavos
            FileIdleTimeout = other.FileIdleTimeout;
105 5bcf6d70 Panagiotis Kanavos
        }
106 5bcf6d70 Panagiotis Kanavos
107 5bcf6d70 Panagiotis Kanavos
        public virtual void Save()
108 5bcf6d70 Panagiotis Kanavos
        {
109 5bcf6d70 Panagiotis Kanavos
            
110 5bcf6d70 Panagiotis Kanavos
        }
111 5bcf6d70 Panagiotis Kanavos
112 5bcf6d70 Panagiotis Kanavos
        public virtual void Reload()
113 5bcf6d70 Panagiotis Kanavos
        {
114 5bcf6d70 Panagiotis Kanavos
            
115 5bcf6d70 Panagiotis Kanavos
        }
116 5bcf6d70 Panagiotis Kanavos
    }
117 5bcf6d70 Panagiotis Kanavos
}