Update of /cvsroot/mahogany/M/include
In directory usw-pr-cvs1:/tmp/cvs-serv567/include
Modified Files:
MessageEditor.h
Log Message:
EditorContentPart::GetMimeType() returns the MimeType object, not string
Index: MessageEditor.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/MessageEditor.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -b -u -2 -r1.5 -r1.6
--- MessageEditor.h 2 Sep 2002 00:44:07 -0000 1.5
+++ MessageEditor.h 2 Sep 2002 18:40:01 -0000 1.6
@@ -231,7 +231,4 @@
//@{
- /// set the MIME type for this attachment, must be called if !Type_Text
- void SetMimeType(const String& mimeType);
-
/// give us the data to attach, we will free() it (must be !NULL)
void SetData(void *data, size_t length, const char *filename = NULL);
@@ -246,4 +243,20 @@
/**
+ @name Other setters
+ */
+ //@{
+
+ /// set the MIME type for this attachment, must be called if !Type_Text
+ void SetMimeType(const String& mimeType);
+
+ /// set the name for Content-Disposition (same as filename by default)
+ void SetName(const String& name);
+
+ /// set disposition parameter of Content-Disposition header
+ void SetDisposition(const String& disposition);
+
+ //@}
+
+ /**
@name Accessors
*/
@@ -253,13 +266,16 @@
EditorContentType GetType() const { return m_Type; }
- /// get the full attachment MIME type
- String GetMimeType() const { return m_MimeType.GetFull(); }
-
- /// get the first part of the attachment MIME type
- MimeType::Primary GetMimeCategory() const { return m_MimeType.GetPrimary(); }
+ /// get the MIME type object
+ const MimeType& GetMimeType() const { return m_MimeType; }
/// get the filename, may be empty
const String& GetFileName() const { return m_FileName; }
+ /// get the name, may be empty
+ const String& GetName() const { return m_Name; }
+
+ /// get our disposition string
+ const String& GetDisposition() const { return m_Disposition; }
+
/// get our text, only valid for text parts
const String& GetText() const
@@ -308,4 +324,6 @@
size_t m_Length;
String m_FileName,
+ m_Name,
+ m_Disposition,
m_Text;
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates