* ProtectedConfigurationProvider.cs:
authorDuncan Mak <duncan@mono-cvs.ximian.com>
Wed, 11 Aug 2004 19:28:55 +0000 (19:28 -0000)
committerDuncan Mak <duncan@mono-cvs.ximian.com>
Wed, 11 Aug 2004 19:28:55 +0000 (19:28 -0000)
* ProviderBase.cs: Implemented.

* ConfigurationPropertyAttribute.cs: Implemented attribute.

* ConfigurationAllowDefinition.cs:
* ConfigurationUserLevel.cs:
* PathLevel.cs: Added enumerations.

svn path=/trunk/mcs/; revision=32233

mcs/class/System/System.Configuration/ChangeLog
mcs/class/System/System.Configuration/ConfigurationAllowDefinition.cs [new file with mode: 0644]
mcs/class/System/System.Configuration/ConfigurationProperty.cs
mcs/class/System/System.Configuration/ConfigurationPropertyAttribute.cs [new file with mode: 0644]
mcs/class/System/System.Configuration/ConfigurationUserLevel.cs [new file with mode: 0644]
mcs/class/System/System.Configuration/PathLevel.cs [new file with mode: 0644]
mcs/class/System/System.Configuration/ProtectedConfigurationProvider.cs [new file with mode: 0644]
mcs/class/System/System.Configuration/ProviderBase.cs [new file with mode: 0644]
mcs/class/System/System.dll.sources

index f8dd57b0d444b7dab181709535083aea0efdac27..d3714e4038bc08400e86715c7e7e4546de8e8f85 100644 (file)
@@ -1,3 +1,14 @@
+2004-08-11  Duncan Mak  <duncan@ximian.com>
+
+       * ProtectedConfigurationProvider.cs:
+       * ProviderBase.cs: Implemented.
+
+       * ConfigurationPropertyAttribute.cs: Implemented attribute.
+
+       * ConfigurationAllowDefinition.cs:
+       * ConfigurationUserLevel.cs:
+       * PathLevel.cs: Added enumerations.
+
 2004-08-07  Atsushi Enomoto  <atsushi@ximian.com>
 
        * ConfigurationElement.cs,
diff --git a/mcs/class/System/System.Configuration/ConfigurationAllowDefinition.cs b/mcs/class/System/System.Configuration/ConfigurationAllowDefinition.cs
new file mode 100644 (file)
index 0000000..23a7eb8
--- /dev/null
@@ -0,0 +1,39 @@
+//
+// System.Configuration.ConfigurationAllowDefinition.cs
+//
+// Authors:
+//     Duncan Mak (duncan@ximian.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+//
+
+#if NET_2_0
+namespace System.Configuration
+{
+        public enum ConfigurationAllowDefinition
+        {
+                Everywhere = 0,
+                MachineOnly = 1,
+                MachineToApplication = 2
+        }
+}
+#endif
index b6c9b8b54f247ac5db4eab09a24249dc3a55445f..6130973dfa30e2cc1ba992dbf693ef1ab6d0876c 100644 (file)
@@ -1,5 +1,5 @@
 //
-// System.Configuration.ConfigurationUpdateMode.cs
+// System.Configuration.ConfigurationProperty.cs
 //
 // Authors:
 //     Duncan Mak (duncan@ximian.com)
diff --git a/mcs/class/System/System.Configuration/ConfigurationPropertyAttribute.cs b/mcs/class/System/System.Configuration/ConfigurationPropertyAttribute.cs
new file mode 100644 (file)
index 0000000..a6d0345
--- /dev/null
@@ -0,0 +1,76 @@
+//
+// System.Configuration.ConfigurationPropertyAttribute.cs
+//
+// Authors:
+//     Duncan Mak (duncan@ximian.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+//
+
+#if NET_2_0
+
+namespace System.Configuration
+{
+        public sealed class ConfigurationPropertyAttribute : Attribute
+        {
+                string name;
+                bool collection_key, default_collection_property, required_value;
+                object default_value;
+                ConfigurationPropertyFlags flags;
+                
+                public ConfigurationPropertyAttribute (string name)
+                {
+                        this.name = name;
+                }
+
+                public bool CollectionKey {
+                        get { return collection_key; }
+                        set { collection_key = value; }
+                }
+
+                public bool DefaultCollectionProperty {
+                        get { return default_collection_property; }
+                        set { default_collection_property = value; }
+                }
+
+                public object DefaultValue {
+                        get { return default_value; }
+                        set { default_value = value; }
+                }
+                
+                public ConfigurationPropertyFlags Flags {
+                        get { return flags; }
+                        set { flags = value; }
+                }
+
+                public string Name {
+                        get { return name; }
+                        set { name = value; }
+                }
+
+                public bool RequiredValue {
+                        get { return required_value; }
+                        set { required_value = value; }
+                }                        
+        }
+}
+#endif
diff --git a/mcs/class/System/System.Configuration/ConfigurationUserLevel.cs b/mcs/class/System/System.Configuration/ConfigurationUserLevel.cs
new file mode 100644 (file)
index 0000000..ff411f0
--- /dev/null
@@ -0,0 +1,41 @@
+//
+// System.Configuration.ConfigurationUserLevel.cs
+//
+// Authors:
+//     Duncan Mak (duncan@ximian.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+//
+#if NET_2_0
+using System;
+
+namespace System.Configuration {
+
+        [Serializable]
+        public enum ConfigurationUserLevel
+        {
+                None = 1,
+                PerUserRoaming = 10,
+                PerUserRoamingAndLocal = 20
+        }
+}
+#endif
diff --git a/mcs/class/System/System.Configuration/PathLevel.cs b/mcs/class/System/System.Configuration/PathLevel.cs
new file mode 100644 (file)
index 0000000..37b3b4e
--- /dev/null
@@ -0,0 +1,40 @@
+//
+// System.Configuration.PathLevel.cs
+//
+// Authors:
+//     Duncan Mak (duncan@ximian.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+//
+#if NET_2_0
+using System;
+
+namespace System.Configuration {
+
+        [Serializable]
+        public enum PathLevel {
+                App = 0,
+                MachineToApp = 1,
+                BelowApp = -1
+        }
+}
+#endif
diff --git a/mcs/class/System/System.Configuration/ProtectedConfigurationProvider.cs b/mcs/class/System/System.Configuration/ProtectedConfigurationProvider.cs
new file mode 100644 (file)
index 0000000..3942ce6
--- /dev/null
@@ -0,0 +1,45 @@
+//
+// System.Configuration.ProtectedConfigurationProvider.cs
+//
+// Authors:
+//     Duncan Mak (duncan@ximian.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+//
+
+#if NET_2_0
+using System.Xml;
+
+namespace System.Configuration
+{
+        public abstract class ProtectedConfigurationProvider
+        {
+                protected ProtectedConfigurationProvider ()
+                {
+                }
+
+                public abstract XmlNode Decrypt (XmlNode encrypted_node);
+
+                public abstract XmlNode Encrypt (XmlNode node);
+        }
+}
+#endif
diff --git a/mcs/class/System/System.Configuration/ProviderBase.cs b/mcs/class/System/System.Configuration/ProviderBase.cs
new file mode 100644 (file)
index 0000000..9c9fb82
--- /dev/null
@@ -0,0 +1,54 @@
+//
+// System.Configuration.ProviderBase.cs
+//
+// Authors:
+//     Duncan Mak (duncan@ximian.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+//
+
+#if NET_2_0
+using System.Collections.Specialized;
+
+namespace System.Configuration
+{
+        public abstract class ProviderBase
+        {
+                string name;
+                NameValueCollection configuration;
+                
+                protected ProviderBase ()
+                {
+                }
+
+                public virtual string Name {
+                        get { return name; }
+                }
+
+                public virtual void Initialize (string anme, NameValueCollection configuration)
+                {
+                        this.name = name;
+                        this.configuration = configuration;
+                }
+        }
+}
+#endif
index 636cf4f5c9b593f044afbd73c4b10dc9640c8299..8bc9716ea30291558ab865fb6b06d0eff305a00a 100755 (executable)
@@ -323,13 +323,16 @@ System.ComponentModel.Design.Serialization/IDesignerLoaderService.cs
 System.ComponentModel.Design.Serialization/InstanceDescriptor.cs
 System.Configuration/AppSettingsReader.cs
 System.Configuration/ConfigHelper.cs
+System.Configuration/ConfigurationAllowDefinition.cs
 System.Configuration/ConfigurationElement.cs
 System.Configuration/ConfigurationException.cs
 System.Configuration/ConfigurationProperty.cs
+System.Configuration/ConfigurationPropertyAttribute.cs
 System.Configuration/ConfigurationPropertyCollection.cs
 System.Configuration/ConfigurationPropertyFlags.cs
 System.Configuration/ConfigurationSettings.cs
 System.Configuration/ConfigurationUpdateMode.cs
+System.Configuration/ConfigurationUserLevel.cs
 System.Configuration/ConfigurationValidationAttribute.cs
 System.Configuration/ConfigXmlDocument.cs
 System.Configuration/DictionarySectionHandler.cs
@@ -339,6 +342,9 @@ System.Configuration/IConfigXmlNode.cs
 System.Configuration/IgnoreSectionHandler.cs
 System.Configuration/NameValueFileSectionHandler.cs
 System.Configuration/NameValueSectionHandler.cs
+System.Configuration/PathLevel.cs
+System.Configuration/ProtectedConfigurationProvider.cs
+System.Configuration/ProviderBase.cs
 System.Configuration/SingleTagSectionHandler.cs
 System.Diagnostics/AlphabeticalEnumConverter.cs
 System.Diagnostics/BooleanSwitch.cs