فهرست منبع

2006-10-25 Igor Zelmanovich <[email protected]>

	* EmbeddedMailObject.cs: new class was implemented.
	* EmbeddedMailObjectsCollection.cs: new class was implemented.
	* MailDefinition.cs: new class was implemented.


svn path=/trunk/mcs/; revision=66950
Igor Zelmanovich 19 سال پیش
والد
کامیت
d321befdb2

+ 6 - 0
mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog

@@ -1,3 +1,9 @@
+2006-10-25 Igor Zelmanovich <[email protected]>
+
+	* EmbeddedMailObject.cs: new class was implemented.
+	* EmbeddedMailObjectsCollection.cs: new class was implemented.
+	* MailDefinition.cs: new class was implemented.
+
 2006-10-24 Igor Zelmanovich <[email protected]>
 
 	* PagerSettings.cs: fixed: CreatePagerControl.

+ 66 - 0
mcs/class/System.Web/System.Web.UI.WebControls/EmbeddedMailObject.cs

@@ -0,0 +1,66 @@
+//
+// System.Web.UI.WebControls.EmbeddedMailObject.cs
+//
+// Authors:
+//	Igor Zelmanovich ([email protected])
+//
+// (C) 2006 Mainsoft, Inc (http://www.mainsoft.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.
+//
+
+#if NET_2_0
+
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.ComponentModel;
+
+namespace System.Web.UI.WebControls
+{
+	public sealed class EmbeddedMailObject
+	{
+		string _name;
+		string _path;
+
+		public EmbeddedMailObject () { }
+
+		public EmbeddedMailObject (string name, string path) {
+			_name = name;
+			_path = path;
+		}
+
+		[NotifyParentProperty (true)]
+		[DefaultValue ("")]
+		public string Name {
+			get { return _name; }
+			set { _name = value; }
+		}
+
+		[DefaultValue ("")]
+		[NotifyParentProperty (true)]
+		public string Path {
+			get { return _path; }
+			set { _path = value; }
+		}
+	}
+}
+
+#endif

+ 83 - 0
mcs/class/System.Web/System.Web.UI.WebControls/EmbeddedMailObjectsCollection.cs

@@ -0,0 +1,83 @@
+//
+// System.Web.UI.WebControls.EmbeddedMailObjectsCollection.cs
+//
+// Authors:
+//	Igor Zelmanovich ([email protected])
+//
+// (C) 2006 Mainsoft, Inc (http://www.mainsoft.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.
+//
+
+#if NET_2_0
+
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Collections;
+
+namespace System.Web.UI.WebControls
+{
+	public sealed class EmbeddedMailObjectsCollection : CollectionBase
+	{
+		[MonoTODO]
+		public EmbeddedMailObject this [int index] {
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
+
+		[MonoTODO]
+		public int Add (EmbeddedMailObject value) {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public bool Contains (EmbeddedMailObject value) {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public void CopyTo (EmbeddedMailObject [] array, int index) {
+			throw new NotImplementedException ();
+		}
+		
+		[MonoTODO]
+		public int IndexOf (EmbeddedMailObject value) {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public void Insert (int index, EmbeddedMailObject value) {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		protected override void OnValidate (object value) {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public void Remove (EmbeddedMailObject value) {
+			throw new NotImplementedException ();
+		}
+	}
+}
+
+#endif

+ 126 - 0
mcs/class/System.Web/System.Web.UI.WebControls/MailDefinition.cs

@@ -0,0 +1,126 @@
+//
+// System.Web.UI.WebControls.MailDefinition.cs
+//
+// Authors:
+//	Igor Zelmanovich ([email protected])
+//
+// (C) 2006 Mainsoft, Inc (http://www.mainsoft.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.
+//
+
+#if NET_2_0
+
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.ComponentModel;
+using System.Web.UI;
+using System.Net.Mail;
+using System.Collections;
+
+namespace System.Web.UI.WebControls
+{
+	[BindableAttribute (false)]
+	public sealed class MailDefinition : IStateManager
+	{
+		StateBag _bag = new StateBag ();
+
+		[DefaultValue ("")]
+		[NotifyParentProperty (true)]
+		public string BodyFileName {
+			get { return _bag.GetString ("BodyFileName", String.Empty); }
+			set { _bag ["BodyFileName"] = value; }
+		}
+
+		[DefaultValue ("")]
+		[NotifyParentProperty (true)]
+		public string CC {
+			get { return _bag.GetString ("CC", String.Empty); }
+			set { _bag ["CC"] = value; }
+		}
+
+		[PersistenceMode (PersistenceMode.InnerProperty)]
+		[DefaultValue ("")]
+		[NotifyParentProperty (true)]
+		public EmbeddedMailObjectsCollection EmbeddedObjects {
+			get { throw new NotImplementedException (); }
+		}
+
+		[NotifyParentProperty (true)]
+		[DefaultValue ("")]
+		public string From {
+			get { return _bag.GetString ("From", String.Empty); }
+			set { _bag ["From"] = value; }
+		}
+
+		[DefaultValue (false)]
+		[NotifyParentProperty (true)]
+		public bool IsBodyHtml {
+			get { return _bag.GetBool ("IsBodyHtml", false); }
+			set { _bag ["IsBodyHtml"] = value; }
+		}
+
+		[NotifyParentProperty (true)]
+		public MailPriority Priority {
+			get { return _bag ["Priority"] == null ? MailPriority.Normal : (MailPriority) _bag ["Priority"]; }
+			set { _bag ["Priority"] = value; }
+		}
+
+		[DefaultValue ("")]
+		[NotifyParentProperty (true)]
+		public string Subject {
+			get { return _bag.GetString ("Subject", String.Empty); }
+			set { _bag ["Subject"] = value; }
+		}
+
+		[MonoTODO]
+		public MailMessage CreateMailMessage (string recipients, IDictionary replacements, Control owner) {
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public MailMessage CreateMailMessage (string recipients, IDictionary replacements, string body, Control owner) {
+			throw new NotImplementedException ();
+		}
+
+#region IStateManager Members
+
+		void IStateManager.LoadViewState (object state) {
+			_bag.LoadViewState (state);
+		}
+
+		object IStateManager.SaveViewState () {
+			return _bag.SaveViewState ();
+		}
+
+		void IStateManager.TrackViewState () {
+			_bag.TrackViewState ();
+		}
+
+		bool IStateManager.IsTrackingViewState {
+			get { return _bag.IsTrackingViewState; }
+		}
+
+#endregion
+	}
+}
+
+#endif

+ 3 - 0
mcs/class/System.Web/System.Web.dll.sources

@@ -761,6 +761,8 @@ System.Web.UI.WebControls/DetailsViewUpdateEventArgs.cs
 System.Web.UI.WebControls/DetailsViewUpdateEventHandler.cs
 System.Web.UI.WebControls/DropDownList.cs
 System.Web.UI.WebControls/EditCommandColumn.cs
+System.Web.UI.WebControls/EmbeddedMailObject.cs
+System.Web.UI.WebControls/EmbeddedMailObjectsCollection.cs
 System.Web.UI.WebControls/FileUpload.cs
 System.Web.UI.WebControls/FirstDayOfWeek.cs
 System.Web.UI.WebControls/FontInfo.cs
@@ -863,6 +865,7 @@ System.Web.UI.WebControls/LoginStatus.cs
 System.Web.UI.WebControls/LoginTextLayout.cs
 System.Web.UI.WebControls/LoginView.cs
 System.Web.UI.WebControls/LogoutAction.cs
+System.Web.UI.WebControls/MailDefinition.cs
 System.Web.UI.WebControls/MailMessageEventArgs.cs
 System.Web.UI.WebControls/MailMessageEventHandler.cs
 System.Web.UI.WebControls/Menu.cs

+ 3 - 0
mcs/class/System.Web/System.Web20.vmwcsproj

@@ -551,6 +551,8 @@
 		<Compile Include="System.Web.UI.WebControls\DetailsViewUpdateEventHandler.cs"/>
 		<Compile Include="System.Web.UI.WebControls\DropDownList.cs"/>
 		<Compile Include="System.Web.UI.WebControls\EditCommandColumn.cs"/>
+		<Compile Include="System.Web.UI.WebControls\EmbeddedMailObject.cs"/>
+		<Compile Include="System.Web.UI.WebControls\EmbeddedMailObjectsCollection.cs"/>
 		<Compile Include="System.Web.UI.WebControls\FileUpload.cs"/>
 		<Compile Include="System.Web.UI.WebControls\FirstDayOfWeek.cs"/>
 		<Compile Include="System.Web.UI.WebControls\FontInfo.cs"/>
@@ -648,6 +650,7 @@
 		<Compile Include="System.Web.UI.WebControls\LoginTextLayout.cs"/>
 		<Compile Include="System.Web.UI.WebControls\LoginView.cs"/>
 		<Compile Include="System.Web.UI.WebControls\LogoutAction.cs"/>
+		<Compile Include="System.Web.UI.WebControls\MailDefinition.cs"/>
 		<Compile Include="System.Web.UI.WebControls\MailMessageEventArgs.cs"/>
 		<Compile Include="System.Web.UI.WebControls\MailMessageEventHandler.cs"/>
 		<Compile Include="System.Web.UI.WebControls\Menu.cs"/>