[Csmail-patches] CVS: csmail/src/CSMail MimeBodyPart.cs,NONE,1.1 MimeMultipart.cs,NONE,1.1 BodyPart.
Status: Pre-Alpha
Brought to you by:
mastergaurav
From: Gaurav V. <mas...@us...> - 2002-09-09 09:37:57
|
Update of /cvsroot/csmail/csmail/src/CSMail In directory usw-pr-cvs1:/tmp/cvs-serv16680 Modified Files: BodyPart.cs ChangeLog IPart.cs Added Files: MimeBodyPart.cs MimeMultipart.cs Log Message: 2002-09-09 * MimeBodyPart.cs : Stubbed new class. * MimeMultipart.cs : Stubbed new class. * BodyPart.cs : Size { get; set; } - Removed { set; } * IPart.cs : Size { get; set; } - Removed { set; } : AddHeader(Header) : AddHeaders(HeaderList) - Removed. --- NEW FILE --- /** * Namespace: CSMail * Class: MimeBodyPart * * Author: Gaurav Vaish * Maintainer: mastergaurav AT users DOT sf DOT net * * (C) Gaurav Vaish (2002) */ using System; using System.IO; namespace CSMail { public class MimeBodyPart : BodyPart, IMimePart { protected HeaderList headers; protected byte[] content; public MimeBodyPart() { headers = new HeaderList(); } [MailTODO] public MimeBodyPart(StreamReader reader) { throw new NotImplementedException(); } public MimeBodyPart(HeaderList headers, byte[] content) { this.headers = headers; this.content = content; } [MailTODO] public override int Size { get { throw new NotImplementedException(); } } [MailTODO] public override HeaderList Headers { get { return this.headers; } set { this.headers = value; } } [MailTODO] public override Multipart Content { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } [MailTODO] public override ContentType ContentType { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } [MailTODO] public override string Description { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } [MailTODO] public override ContentDisposition Disposition { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } [MailTODO] public override string Filename { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } [MailTODO] public string ContentID { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } [MailTODO] public string ContentLanguage { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } [MailTODO] public string ContentMD5 { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } [MailTODO] public string Text { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } [MailTODO] public TransferEncoding TransferEncoding { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } [MailTODO] public override void Write(TextWriter writer) { throw new NotImplementedException(); } } } --- NEW FILE --- /** * Namespace: CSMail * Class: MimeMultipart * * Author: Gaurav Vaish * Maintainer: mastergaurav AT users DOT sf DOT net * * (C) Gaurav Vaish (2002) */ using System; using System.IO; namespace CSMail { public class MimeMultipart : Multipart { [MailTODO] public MimeMultipart() { throw new NotImplementedException(); } [MailTODO] public MimeMultipart(string subPart) { throw new NotImplementedException(); } [MailTODO] public string SubType { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } [MailTODO] public int Count { get { throw new NotImplementedException(); } } [MailTODO] public BodyPart GetBodyPart(int index) { throw new NotImplementedException(); } [MailTODO] public BodyPart GetBodyPart(string contentID) { throw new NotImplementedException(); } [MailTODO] protected void UpdateHeaders() { throw new NotImplementedException(); } [MailTODO] public override void WriteTo(StreamWriter writer) { throw new NotImplementedException(); } [MailTODO] protected MimeBodyPart CreateMimeBodyPart(StreamReader reader) { throw new NotImplementedException(); } [MailTODO] protected MimeBodyPart CreateMimeBodyPart(HeaderList headers, byte[] content) { throw new NotImplementedException(); } [MailTODO] protected MimeBodyPart CreateHeaders(StreamReader reader) { throw new NotImplementedException(); } [MailTODO] protected void Parse() { throw new NotImplementedException(); } } } Index: BodyPart.cs =================================================================== RCS file: /cvsroot/csmail/csmail/src/CSMail/BodyPart.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- BodyPart.cs 5 Sep 2002 05:24:21 -0000 1.4 +++ BodyPart.cs 9 Sep 2002 09:37:54 -0000 1.5 @@ -91,10 +91,11 @@ /// </summary> public abstract HeaderList Headers { get; set; } /// <summary> - /// When implemented by a class, gets or sets the size. + /// When implemented by a class, gets the siz of content. /// </summary> - public abstract int Size { get; set; } + public abstract int Size { get; } +/** /// <summary> /// When implemented by a class, adds an header for this part. /// </summary> @@ -103,6 +104,7 @@ /// When implemented by a class, adds headers for this part. /// </summary> public abstract int AddHeaders(HeaderList headers); +*/ /// <summary> /// When implemented by a class, writes the content to the writer. /// </summary> Index: ChangeLog =================================================================== RCS file: /cvsroot/csmail/csmail/src/CSMail/ChangeLog,v retrieving revision 1.32 retrieving revision 1.33 diff -u -r1.32 -r1.33 --- ChangeLog 6 Sep 2002 11:52:29 -0000 1.32 +++ ChangeLog 9 Sep 2002 09:37:54 -0000 1.33 @@ -1,4 +1,14 @@ +2002-09-09 Gaurav Vaish <mastergaurav AT users DOT sf DOT net> + + * MimeBodyPart.cs : Stubbed new class. + * MimeMultipart.cs : Stubbed new class. + * BodyPart.cs : Size { get; set; } - Removed { set; } + * IPart.cs : Size { get; set; } - Removed { set; } + : AddHeader(Header) + : AddHeaders(HeaderList) + - Removed. + 2002-09-06 Gaurav Vaish <mastergaurav AT users DOT sf DOT net> * Message.cs : IsSet(MessageFlags) Index: IPart.cs =================================================================== RCS file: /cvsroot/csmail/csmail/src/CSMail/IPart.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- IPart.cs 5 Sep 2002 05:17:49 -0000 1.2 +++ IPart.cs 9 Sep 2002 09:37:54 -0000 1.3 @@ -43,10 +43,11 @@ /// </summary> HeaderList Headers { get; set; } /// <summary> - /// When implemented, gets or sets the size of the part. + /// When implemented, gets the size of the part. /// </summary> - int Size { get; set; } + int Size { get; } +/** /// <summary> /// When implemented, adds a header to the part. /// </summary> @@ -55,6 +56,7 @@ /// When implemented, adds headers to the part. /// </summary> int AddHeaders(HeaderList headers); +*/ /// <summary> /// When implemented, writes the content. /// </summary> |