Update of /cvsroot/mahogany/M/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13213/include

Modified Files:
        MimePart.h 
Log Message:
added IsAttachment() helper

Index: MimePart.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/MimePart.h,v
retrieving revision 1.13
retrieving revision 1.14
diff -b -u -2 -r1.13 -r1.14
--- MimePart.h  21 Jun 2005 19:39:02 -0000      1.13
+++ MimePart.h  23 Jun 2005 23:45:03 -0000      1.14
@@ -168,4 +168,10 @@
    virtual const MimeParameterList& GetDispositionParameters() const = 0;
 
+   /// return true if this part must be shown as attachment
+   bool IsAttachment() const
+   {
+      return GetDisposition().CmpNoCase(_T("attachment")) == 0;
+   }
+
    //@}
 



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to