[Csmail-patches] CVS: csmail/src/CSMail BodyPart.cs,1.2,1.3 BodyPartList.cs,1.1,1.2 ChangeLog,1.26,1
Status: Pre-Alpha
Brought to you by:
mastergaurav
From: Gaurav V. <mas...@us...> - 2002-09-04 07:06:13
|
Update of /cvsroot/csmail/csmail/src/CSMail In directory usw-pr-cvs1:/tmp/cvs-serv24609 Modified Files: BodyPart.cs BodyPartList.cs ChangeLog Multipart.cs Log Message: 2002-09-04 * BodyPart.cs : ParentProperty - Not virtual, internal * Multipart.cs : Part => Parent : Several methods - Stubbed Looks like I am through with it. Completed? * BodyPartList.cs : Count { get; } - Stubbed Index: BodyPart.cs =================================================================== RCS file: /cvsroot/csmail/csmail/src/CSMail/BodyPart.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- BodyPart.cs 4 Sep 2002 06:35:42 -0000 1.2 +++ BodyPart.cs 4 Sep 2002 07:06:08 -0000 1.3 @@ -28,7 +28,7 @@ } } - protected virtual Multipart ParentProperty + internal Multipart ParentProperty { get { Index: BodyPartList.cs =================================================================== RCS file: /cvsroot/csmail/csmail/src/CSMail/BodyPartList.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- BodyPartList.cs 20 Jun 2002 02:43:24 -0000 1.1 +++ BodyPartList.cs 4 Sep 2002 07:06:08 -0000 1.2 @@ -8,25 +8,48 @@ * (C) Gaurav Vaish (2002) */ +using System; using System.Collections; namespace CSMail { public class BodyPartList { + private ArrayList parts; + + public BodyPartList() + { + parts = new ArrayList(); + } + public BodyPartList(BodyPart part) { //TODO } - + public BodyPartList(BodyPart[] parts) { //TODO } - + public BodyPartList(BodyPartList parts) { //TODO } + + [MailTODO] + public int Count + { + get + { + throw new NotImplementedException(); + } + } + + /** + * Have to allow only Add(BodyPart body) etc. + * No Add(object generic) sort of thing. + * So, not deriving class from ArrayList. + */ } } Index: ChangeLog =================================================================== RCS file: /cvsroot/csmail/csmail/src/CSMail/ChangeLog,v retrieving revision 1.26 retrieving revision 1.27 diff -u -r1.26 -r1.27 --- ChangeLog 4 Sep 2002 06:35:42 -0000 1.26 +++ ChangeLog 4 Sep 2002 07:06:08 -0000 1.27 @@ -1,6 +1,14 @@ 2002-09-04 Gaurav Vaish <mastergaurav AT users DOT sf DOT net> + * BodyPart.cs : ParentProperty - Not virtual, internal + * Multipart.cs : Part => Parent + : Several methods - Stubbed + Looks like I am through with it. Completed? + * BodyPartList.cs : Count { get; } - Stubbed + +2002-09-04 Gaurav Vaish <mastergaurav AT users DOT sf DOT net> + * BodyPart.cs : ParentProperty - Marked "virtual" * Folder.cs : URL { get; } - Removed MailTODO * Message.cs : IsExpunged {get; set;} - Implemented Index: Multipart.cs =================================================================== RCS file: /cvsroot/csmail/csmail/src/CSMail/Multipart.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- Multipart.cs 20 Jun 2002 02:43:25 -0000 1.1 +++ Multipart.cs 4 Sep 2002 07:06:08 -0000 1.2 @@ -8,22 +8,51 @@ * (C) Gaurav Vaish (2002) */ +using System.IO; + namespace CSMail { public abstract class Multipart { - private IPart part; + private IPart parent; + private BodyPartList bodyParts; + + protected ContentType CType; + + protected Multipart() + { + this.CType = new ContentType("multipart", "mixed"); + this.bodyParts = new BodyPartList(); + } + + public ContentType ContentType + { + get + { + return CType; + } + } - public IPart Part + public IPart Parent { get { - return part; + return parent; } set { - part = value; + parent = value; } } + + public BodyPartList BodyParts + { + get + { + return bodyParts; + } + } + + public abstract void WriteTo(StreamWriter writer); } } |