From fea3e607d4c79a7a1d1b8ddd3851d2743a599ec8 Mon Sep 17 00:00:00 2001 From: "alecf%netscape.com" Date: Thu, 11 Mar 1999 21:04:57 +0000 Subject: [PATCH] rev this interface: char* -> const char* --- mailnews/compose/public/nsIMsgCompFields.h | 55 ++++++++++------------ mailnews/compose/src/nsMsgCompFields.cpp | 50 ++++++++++---------- mailnews/compose/src/nsMsgCompFields.h | 50 ++++++++++---------- 3 files changed, 75 insertions(+), 80 deletions(-) diff --git a/mailnews/compose/public/nsIMsgCompFields.h b/mailnews/compose/public/nsIMsgCompFields.h index ba0556192d5..47e4c3ecd9f 100644 --- a/mailnews/compose/public/nsIMsgCompFields.h +++ b/mailnews/compose/public/nsIMsgCompFields.h @@ -11,11 +11,6 @@ #ifdef XPIDL_JS_STUBS #include "jsapi.h" #endif -#include "nsDebug.h" -#include "nsTraceRefcnt.h" -#include "nsID.h" -#include "nsError.h" - /* starting interface nsIMsgCompFields */ @@ -36,7 +31,7 @@ class nsIMsgCompFields : public nsISupports { NS_IMETHOD Copy(nsIMsgCompFields *pMsgCompFields) = 0; /* long SetHeader (in long header, in string value); */ - NS_IMETHOD SetHeader(PRInt32 header, char *value, PRInt32 *_retval) = 0; + NS_IMETHOD SetHeader(PRInt32 header, const char *value, PRInt32 *_retval) = 0; /* string GetHeader (in long header); */ NS_IMETHOD GetHeader(PRInt32 header, char **_retval) = 0; @@ -48,139 +43,139 @@ class nsIMsgCompFields : public nsISupports { NS_IMETHOD GetBoolHeader(PRInt32 header, PRBool *_retval) = 0; /* long SetFrom (in string value); */ - NS_IMETHOD SetFrom(char *value, PRInt32 *_retval) = 0; + NS_IMETHOD SetFrom(const char *value, PRInt32 *_retval) = 0; /* string GetFrom (); */ NS_IMETHOD GetFrom(char **_retval) = 0; /* long SetReplyTo (in string value); */ - NS_IMETHOD SetReplyTo(char *value, PRInt32 *_retval) = 0; + NS_IMETHOD SetReplyTo(const char *value, PRInt32 *_retval) = 0; /* string GetReplyTo (); */ NS_IMETHOD GetReplyTo(char **_retval) = 0; /* long SetTo (in string value); */ - NS_IMETHOD SetTo(char *value, PRInt32 *_retval) = 0; + NS_IMETHOD SetTo(const char *value, PRInt32 *_retval) = 0; /* string GetTo (); */ NS_IMETHOD GetTo(char **_retval) = 0; /* long SetCc (in string value); */ - NS_IMETHOD SetCc(char *value, PRInt32 *_retval) = 0; + NS_IMETHOD SetCc(const char *value, PRInt32 *_retval) = 0; /* string GetCc (); */ NS_IMETHOD GetCc(char **_retval) = 0; /* long SetBcc (in string value); */ - NS_IMETHOD SetBcc(char *value, PRInt32 *_retval) = 0; + NS_IMETHOD SetBcc(const char *value, PRInt32 *_retval) = 0; /* string GetBcc (); */ NS_IMETHOD GetBcc(char **_retval) = 0; /* long SetFcc (in string value); */ - NS_IMETHOD SetFcc(char *value, PRInt32 *_retval) = 0; + NS_IMETHOD SetFcc(const char *value, PRInt32 *_retval) = 0; /* string GetFcc (); */ NS_IMETHOD GetFcc(char **_retval) = 0; /* long SetNewsFcc (in string value); */ - NS_IMETHOD SetNewsFcc(char *value, PRInt32 *_retval) = 0; + NS_IMETHOD SetNewsFcc(const char *value, PRInt32 *_retval) = 0; /* string GetNewsFcc (); */ NS_IMETHOD GetNewsFcc(char **_retval) = 0; /* long SetNewsBcc (in string value); */ - NS_IMETHOD SetNewsBcc(char *value, PRInt32 *_retval) = 0; + NS_IMETHOD SetNewsBcc(const char *value, PRInt32 *_retval) = 0; /* string GetNewsBcc (); */ NS_IMETHOD GetNewsBcc(char **_retval) = 0; /* long SetNewsgroups (in string value); */ - NS_IMETHOD SetNewsgroups(char *value, PRInt32 *_retval) = 0; + NS_IMETHOD SetNewsgroups(const char *value, PRInt32 *_retval) = 0; /* string GetNewsgroups (); */ NS_IMETHOD GetNewsgroups(char **_retval) = 0; /* long SetFollowupTo (in string value); */ - NS_IMETHOD SetFollowupTo(char *value, PRInt32 *_retval) = 0; + NS_IMETHOD SetFollowupTo(const char *value, PRInt32 *_retval) = 0; /* string GetFollowupTo (); */ NS_IMETHOD GetFollowupTo(char **_retval) = 0; /* long SetSubject (in string value); */ - NS_IMETHOD SetSubject(char *value, PRInt32 *_retval) = 0; + NS_IMETHOD SetSubject(const char *value, PRInt32 *_retval) = 0; /* string GetSubject (); */ NS_IMETHOD GetSubject(char **_retval) = 0; /* long SetAttachments (in string value); */ - NS_IMETHOD SetAttachments(char *value, PRInt32 *_retval) = 0; + NS_IMETHOD SetAttachments(const char *value, PRInt32 *_retval) = 0; /* string GetAttachments (); */ NS_IMETHOD GetAttachments(char **_retval) = 0; /* long SetOrganization (in string value); */ - NS_IMETHOD SetOrganization(char *value, PRInt32 *_retval) = 0; + NS_IMETHOD SetOrganization(const char *value, PRInt32 *_retval) = 0; /* string GetOrganization (); */ NS_IMETHOD GetOrganization(char **_retval) = 0; /* long SetReferences (in string value); */ - NS_IMETHOD SetReferences(char *value, PRInt32 *_retval) = 0; + NS_IMETHOD SetReferences(const char *value, PRInt32 *_retval) = 0; /* string GetReferences (); */ NS_IMETHOD GetReferences(char **_retval) = 0; /* long SetOtherRandomHeaders (in string value); */ - NS_IMETHOD SetOtherRandomHeaders(char *value, PRInt32 *_retval) = 0; + NS_IMETHOD SetOtherRandomHeaders(const char *value, PRInt32 *_retval) = 0; /* string GetOtherRandomHeaders (); */ NS_IMETHOD GetOtherRandomHeaders(char **_retval) = 0; /* long SetNewspostUrl (in string value); */ - NS_IMETHOD SetNewspostUrl(char *value, PRInt32 *_retval) = 0; + NS_IMETHOD SetNewspostUrl(const char *value, PRInt32 *_retval) = 0; /* string GetNewspostUrl (); */ NS_IMETHOD GetNewspostUrl(char **_retval) = 0; /* long SetDefaultBody (in string value); */ - NS_IMETHOD SetDefaultBody(char *value, PRInt32 *_retval) = 0; + NS_IMETHOD SetDefaultBody(const char *value, PRInt32 *_retval) = 0; /* string GetDefaultBody (); */ NS_IMETHOD GetDefaultBody(char **_retval) = 0; /* long SetPriority (in string value); */ - NS_IMETHOD SetPriority(char *value, PRInt32 *_retval) = 0; + NS_IMETHOD SetPriority(const char *value, PRInt32 *_retval) = 0; /* string GetPriority (); */ NS_IMETHOD GetPriority(char **_retval) = 0; /* long SetMessageEncoding (in string value); */ - NS_IMETHOD SetMessageEncoding(char *value, PRInt32 *_retval) = 0; + NS_IMETHOD SetMessageEncoding(const char *value, PRInt32 *_retval) = 0; /* string GetMessageEncoding (); */ NS_IMETHOD GetMessageEncoding(char **_retval) = 0; /* long SetCharacterSet (in string value); */ - NS_IMETHOD SetCharacterSet(char *value, PRInt32 *_retval) = 0; + NS_IMETHOD SetCharacterSet(const char *value, PRInt32 *_retval) = 0; /* string GetCharacterSet (); */ NS_IMETHOD GetCharacterSet(char **_retval) = 0; /* long SetMessageId (in string value); */ - NS_IMETHOD SetMessageId(char *value, PRInt32 *_retval) = 0; + NS_IMETHOD SetMessageId(const char *value, PRInt32 *_retval) = 0; /* string GetMessageId (); */ NS_IMETHOD GetMessageId(char **_retval) = 0; /* long SetHTMLPart (in string value); */ - NS_IMETHOD SetHTMLPart(char *value, PRInt32 *_retval) = 0; + NS_IMETHOD SetHTMLPart(const char *value, PRInt32 *_retval) = 0; /* string GetHTMLPart (); */ NS_IMETHOD GetHTMLPart(char **_retval) = 0; /* long SetTemplateName (in string value); */ - NS_IMETHOD SetTemplateName(char *value, PRInt32 *_retval) = 0; + NS_IMETHOD SetTemplateName(const char *value, PRInt32 *_retval) = 0; /* string GetTemplateName (); */ NS_IMETHOD GetTemplateName(char **_retval) = 0; @@ -198,7 +193,7 @@ class nsIMsgCompFields : public nsISupports { NS_IMETHOD GetAttachVCard(PRBool *_retval) = 0; /* long SetBody (in string value); */ - NS_IMETHOD SetBody(char *value, PRInt32 *_retval) = 0; + NS_IMETHOD SetBody(const char *value, PRInt32 *_retval) = 0; /* string GetBody (); */ NS_IMETHOD GetBody(char **_retval) = 0; diff --git a/mailnews/compose/src/nsMsgCompFields.cpp b/mailnews/compose/src/nsMsgCompFields.cpp index 706ec00de2f..0e3b37a2570 100644 --- a/mailnews/compose/src/nsMsgCompFields.cpp +++ b/mailnews/compose/src/nsMsgCompFields.cpp @@ -114,7 +114,7 @@ nsresult nsMsgCompFields::Copy(nsIMsgCompFields* pMsgCompFields) -nsresult nsMsgCompFields::SetHeader(PRInt32 header, char *value, PRInt32 *_retval) +nsresult nsMsgCompFields::SetHeader(PRInt32 header, const char *value, PRInt32 *_retval) { int status = 0; @@ -214,7 +214,7 @@ PRBool nsMsgCompFields::GetBoolHeader(PRInt32 header) return m_boolHeaders[header]; } -nsresult nsMsgCompFields::SetFrom(char *value, PRInt32 *_retval) +nsresult nsMsgCompFields::SetFrom(const char *value, PRInt32 *_retval) { return SetHeader(MSG_FROM_HEADER_MASK, value, _retval); } @@ -224,7 +224,7 @@ nsresult nsMsgCompFields::GetFrom(char **_retval) return GetHeader(MSG_FROM_HEADER_MASK, _retval); } -nsresult nsMsgCompFields::SetReplyTo(char *value, PRInt32 *_retval) +nsresult nsMsgCompFields::SetReplyTo(const char *value, PRInt32 *_retval) { return SetHeader(MSG_REPLY_TO_HEADER_MASK, value, _retval); } @@ -234,7 +234,7 @@ nsresult nsMsgCompFields::GetReplyTo(char **_retval) return GetHeader(MSG_REPLY_TO_HEADER_MASK, _retval); } -nsresult nsMsgCompFields::SetTo(char *value, PRInt32 *_retval) +nsresult nsMsgCompFields::SetTo(const char *value, PRInt32 *_retval) { return SetHeader(MSG_TO_HEADER_MASK, value, _retval); } @@ -244,7 +244,7 @@ nsresult nsMsgCompFields::GetTo(char **_retval) return GetHeader(MSG_TO_HEADER_MASK, _retval); } -nsresult nsMsgCompFields::SetCc(char *value, PRInt32 *_retval) +nsresult nsMsgCompFields::SetCc(const char *value, PRInt32 *_retval) { return SetHeader(MSG_CC_HEADER_MASK, value, _retval); } @@ -254,7 +254,7 @@ nsresult nsMsgCompFields::GetCc(char **_retval) return GetHeader(MSG_CC_HEADER_MASK, _retval); } -nsresult nsMsgCompFields::SetBcc(char *value, PRInt32 *_retval) +nsresult nsMsgCompFields::SetBcc(const char *value, PRInt32 *_retval) { return SetHeader(MSG_BCC_HEADER_MASK, value, _retval); } @@ -264,7 +264,7 @@ nsresult nsMsgCompFields::GetBcc(char **_retval) return GetHeader(MSG_BCC_HEADER_MASK, _retval); } -nsresult nsMsgCompFields::SetFcc(char *value, PRInt32 *_retval) +nsresult nsMsgCompFields::SetFcc(const char *value, PRInt32 *_retval) { return SetHeader(MSG_NEWS_FCC_HEADER_MASK, value, _retval); } @@ -274,7 +274,7 @@ nsresult nsMsgCompFields::GetFcc(char **_retval) return GetHeader(MSG_NEWS_FCC_HEADER_MASK, _retval); } -nsresult nsMsgCompFields::SetNewsFcc(char *value, PRInt32 *_retval) +nsresult nsMsgCompFields::SetNewsFcc(const char *value, PRInt32 *_retval) { return SetHeader(MSG_NEWS_FCC_HEADER_MASK, value, _retval); } @@ -284,7 +284,7 @@ nsresult nsMsgCompFields::GetNewsFcc(char **_retval) return GetHeader(MSG_NEWS_FCC_HEADER_MASK, _retval); } -nsresult nsMsgCompFields::SetNewsBcc(char *value, PRInt32 *_retval) +nsresult nsMsgCompFields::SetNewsBcc(const char *value, PRInt32 *_retval) { return SetHeader(MSG_NEWS_BCC_HEADER_MASK, value, _retval); } @@ -294,7 +294,7 @@ nsresult nsMsgCompFields::GetNewsBcc(char **_retval) return GetHeader(MSG_NEWS_BCC_HEADER_MASK, _retval); } -nsresult nsMsgCompFields::SetNewsgroups(char *value, PRInt32 *_retval) +nsresult nsMsgCompFields::SetNewsgroups(const char *value, PRInt32 *_retval) { return SetHeader(MSG_NEWSGROUPS_HEADER_MASK, value, _retval); } @@ -304,7 +304,7 @@ nsresult nsMsgCompFields::GetNewsgroups(char **_retval) return GetHeader(MSG_NEWSGROUPS_HEADER_MASK, _retval); } -nsresult nsMsgCompFields::SetFollowupTo(char *value, PRInt32 *_retval) +nsresult nsMsgCompFields::SetFollowupTo(const char *value, PRInt32 *_retval) { return SetHeader(MSG_FOLLOWUP_TO_HEADER_MASK, value, _retval); } @@ -314,7 +314,7 @@ nsresult nsMsgCompFields::GetFollowupTo(char **_retval) return GetHeader(MSG_FOLLOWUP_TO_HEADER_MASK, _retval); } -nsresult nsMsgCompFields::SetSubject(char *value, PRInt32 *_retval) +nsresult nsMsgCompFields::SetSubject(const char *value, PRInt32 *_retval) { return SetHeader(MSG_SUBJECT_HEADER_MASK, value, _retval); } @@ -324,7 +324,7 @@ nsresult nsMsgCompFields::GetSubject(char **_retval) return GetHeader(MSG_SUBJECT_HEADER_MASK, _retval); } -nsresult nsMsgCompFields::SetAttachments(char *value, PRInt32 *_retval) +nsresult nsMsgCompFields::SetAttachments(const char *value, PRInt32 *_retval) { return SetHeader(MSG_ATTACHMENTS_HEADER_MASK, value, _retval); } @@ -334,7 +334,7 @@ nsresult nsMsgCompFields::GetAttachments(char **_retval) return GetHeader(MSG_ATTACHMENTS_HEADER_MASK, _retval); } -nsresult nsMsgCompFields::SetOrganization(char *value, PRInt32 *_retval) +nsresult nsMsgCompFields::SetOrganization(const char *value, PRInt32 *_retval) { return SetHeader(MSG_ORGANIZATION_HEADER_MASK, value, _retval); } @@ -344,7 +344,7 @@ nsresult nsMsgCompFields::GetOrganization(char **_retval) return GetHeader(MSG_ORGANIZATION_HEADER_MASK, _retval); } -nsresult nsMsgCompFields::SetReferences(char *value, PRInt32 *_retval) +nsresult nsMsgCompFields::SetReferences(const char *value, PRInt32 *_retval) { return SetHeader(MSG_REFERENCES_HEADER_MASK, value, _retval); } @@ -354,7 +354,7 @@ nsresult nsMsgCompFields::GetReferences(char **_retval) return GetHeader(MSG_REFERENCES_HEADER_MASK, _retval); } -nsresult nsMsgCompFields::SetOtherRandomHeaders(char *value, PRInt32 *_retval) +nsresult nsMsgCompFields::SetOtherRandomHeaders(const char *value, PRInt32 *_retval) { return SetHeader(MSG_OTHERRANDOMHEADERS_HEADER_MASK, value, _retval); } @@ -364,7 +364,7 @@ nsresult nsMsgCompFields::GetOtherRandomHeaders(char **_retval) return GetHeader(MSG_OTHERRANDOMHEADERS_HEADER_MASK, _retval); } -nsresult nsMsgCompFields::SetNewspostUrl(char *value, PRInt32 *_retval) +nsresult nsMsgCompFields::SetNewspostUrl(const char *value, PRInt32 *_retval) { return SetHeader(MSG_NEWSPOSTURL_HEADER_MASK, value, _retval); } @@ -374,7 +374,7 @@ nsresult nsMsgCompFields::GetNewspostUrl(char **_retval) return GetHeader(MSG_NEWSPOSTURL_HEADER_MASK, _retval); } -nsresult nsMsgCompFields::SetDefaultBody(char *value, PRInt32 *_retval) +nsresult nsMsgCompFields::SetDefaultBody(const char *value, PRInt32 *_retval) { return SetHeader(MSG_DEFAULTBODY_HEADER_MASK, value, _retval); } @@ -384,7 +384,7 @@ nsresult nsMsgCompFields::GetDefaultBody(char **_retval) return GetHeader(MSG_DEFAULTBODY_HEADER_MASK, _retval); } -nsresult nsMsgCompFields::SetPriority(char *value, PRInt32 *_retval) +nsresult nsMsgCompFields::SetPriority(const char *value, PRInt32 *_retval) { return SetHeader(nsMsgPriority_HEADER_MASK, value, _retval); } @@ -394,7 +394,7 @@ nsresult nsMsgCompFields::GetPriority(char **_retval) return GetHeader(nsMsgPriority_HEADER_MASK, _retval); } -nsresult nsMsgCompFields::SetMessageEncoding(char *value, PRInt32 *_retval) +nsresult nsMsgCompFields::SetMessageEncoding(const char *value, PRInt32 *_retval) { return SetHeader(MSG_MESSAGE_ENCODING_HEADER_MASK, value, _retval); } @@ -404,7 +404,7 @@ nsresult nsMsgCompFields::GetMessageEncoding(char **_retval) return GetHeader(MSG_MESSAGE_ENCODING_HEADER_MASK, _retval); } -nsresult nsMsgCompFields::SetCharacterSet(char *value, PRInt32 *_retval) +nsresult nsMsgCompFields::SetCharacterSet(const char *value, PRInt32 *_retval) { return SetHeader(MSG_CHARACTER_SET_HEADER_MASK, value, _retval); } @@ -414,7 +414,7 @@ nsresult nsMsgCompFields::GetCharacterSet(char **_retval) return GetHeader(MSG_CHARACTER_SET_HEADER_MASK, _retval); } -nsresult nsMsgCompFields::SetMessageId(char *value, PRInt32 *_retval) +nsresult nsMsgCompFields::SetMessageId(const char *value, PRInt32 *_retval) { return SetHeader(MSG_MESSAGE_ID_HEADER_MASK, value, _retval); } @@ -424,7 +424,7 @@ nsresult nsMsgCompFields::GetMessageId(char **_retval) return GetHeader(MSG_MESSAGE_ID_HEADER_MASK, _retval); } -nsresult nsMsgCompFields::SetHTMLPart(char *value, PRInt32 *_retval) +nsresult nsMsgCompFields::SetHTMLPart(const char *value, PRInt32 *_retval) { return SetHeader(MSG_HTML_PART_HEADER_MASK, value, _retval); } @@ -434,7 +434,7 @@ nsresult nsMsgCompFields::GetHTMLPart(char **_retval) return GetHeader(MSG_HTML_PART_HEADER_MASK, _retval); } -nsresult nsMsgCompFields::SetTemplateName(char *value, PRInt32 *_retval) +nsresult nsMsgCompFields::SetTemplateName(const char *value, PRInt32 *_retval) { return SetHeader(MSG_X_TEMPLATE_HEADER_MASK, value, _retval); } @@ -530,7 +530,7 @@ PRInt16 nsMsgCompFields::ParseNewsgroupsForUrls (const char *value) return status; } -nsresult nsMsgCompFields::SetBody(char *value, PRInt32 *_retval) +nsresult nsMsgCompFields::SetBody(const char *value, PRInt32 *_retval) { long retval = 0; diff --git a/mailnews/compose/src/nsMsgCompFields.h b/mailnews/compose/src/nsMsgCompFields.h index 3b4c530b59f..efdbc26db83 100644 --- a/mailnews/compose/src/nsMsgCompFields.h +++ b/mailnews/compose/src/nsMsgCompFields.h @@ -46,7 +46,7 @@ public: NS_IMETHOD Copy(nsIMsgCompFields* pMsgCompFields); - NS_IMETHOD SetHeader(PRInt32 header, char *value, PRInt32 *_retval); + NS_IMETHOD SetHeader(PRInt32 header, const char *value, PRInt32 *_retval); NS_IMETHOD GetHeader(PRInt32 header, char **_retval); const char* GetHeader(PRInt32 header); @@ -55,95 +55,95 @@ public: PRBool GetBoolHeader(PRInt32 header); /* Convenience routines to get and set header's value... */ - NS_IMETHOD SetFrom(char *value, PRInt32 *_retval); + NS_IMETHOD SetFrom(const char *value, PRInt32 *_retval); NS_IMETHOD GetFrom(char **_retval); const char* GetFrom(void) {return GetHeader(MSG_FROM_HEADER_MASK);} - NS_IMETHOD SetReplyTo(char *value, PRInt32 *_retval); + NS_IMETHOD SetReplyTo(const char *value, PRInt32 *_retval); NS_IMETHOD GetReplyTo(char **_retval); const char* GetReplyTo() {return GetHeader(MSG_REPLY_TO_HEADER_MASK);} - NS_IMETHOD SetTo(char *value, PRInt32 *_retval); + NS_IMETHOD SetTo(const char *value, PRInt32 *_retval); NS_IMETHOD GetTo(char **_retval); const char* GetTo() {return GetHeader(MSG_TO_HEADER_MASK);} - NS_IMETHOD SetCc(char *value, PRInt32 *_retval); + NS_IMETHOD SetCc(const char *value, PRInt32 *_retval); NS_IMETHOD GetCc(char **_retval); const char* GetCc() {return GetHeader(MSG_CC_HEADER_MASK);} - NS_IMETHOD SetBcc(char *value, PRInt32 *_retval); + NS_IMETHOD SetBcc(const char *value, PRInt32 *_retval); NS_IMETHOD GetBcc(char **_retval); const char* GetBcc() {return GetHeader(MSG_BCC_HEADER_MASK);} - NS_IMETHOD SetFcc(char *value, PRInt32 *_retval); + NS_IMETHOD SetFcc(const char *value, PRInt32 *_retval); NS_IMETHOD GetFcc(char **_retval); const char* GetFcc() {return GetHeader(MSG_FCC_HEADER_MASK);} - NS_IMETHOD SetNewsFcc(char *value, PRInt32 *_retval); + NS_IMETHOD SetNewsFcc(const char *value, PRInt32 *_retval); NS_IMETHOD GetNewsFcc(char **_retval); const char* GetNewsFcc() {return GetHeader(MSG_NEWS_FCC_HEADER_MASK);} - NS_IMETHOD SetNewsBcc(char *value, PRInt32 *_retval); + NS_IMETHOD SetNewsBcc(const char *value, PRInt32 *_retval); NS_IMETHOD GetNewsBcc(char **_retval); const char* GetNewsBcc() {return GetHeader(MSG_NEWS_BCC_HEADER_MASK);} - NS_IMETHOD SetNewsgroups(char *value, PRInt32 *_retval); + NS_IMETHOD SetNewsgroups(const char *value, PRInt32 *_retval); NS_IMETHOD GetNewsgroups(char **_retval); const char* GetNewsgroups() {return GetHeader(MSG_NEWSGROUPS_HEADER_MASK);} - NS_IMETHOD SetFollowupTo(char *value, PRInt32 *_retval); + NS_IMETHOD SetFollowupTo(const char *value, PRInt32 *_retval); NS_IMETHOD GetFollowupTo(char **_retval); const char* GetFollowupTo() {return GetHeader(MSG_FOLLOWUP_TO_HEADER_MASK);} - NS_IMETHOD SetSubject(char *value, PRInt32 *_retval); + NS_IMETHOD SetSubject(const char *value, PRInt32 *_retval); NS_IMETHOD GetSubject(char **_retval); const char* GetSubject() {return GetHeader(MSG_SUBJECT_HEADER_MASK);} - NS_IMETHOD SetAttachments(char *value, PRInt32 *_retval); + NS_IMETHOD SetAttachments(const char *value, PRInt32 *_retval); NS_IMETHOD GetAttachments(char **_retval); const char* GetAttachments() {return GetHeader(MSG_ATTACHMENTS_HEADER_MASK);} - NS_IMETHOD SetOrganization(char *value, PRInt32 *_retval); + NS_IMETHOD SetOrganization(const char *value, PRInt32 *_retval); NS_IMETHOD GetOrganization(char **_retval); const char* GetOrganization() {return GetHeader(MSG_ORGANIZATION_HEADER_MASK);} - NS_IMETHOD SetReferences(char *value, PRInt32 *_retval); + NS_IMETHOD SetReferences(const char *value, PRInt32 *_retval); NS_IMETHOD GetReferences(char **_retval); const char* GetReferences() {return GetHeader(MSG_REFERENCES_HEADER_MASK);} - NS_IMETHOD SetOtherRandomHeaders(char *value, PRInt32 *_retval); + NS_IMETHOD SetOtherRandomHeaders(const char *value, PRInt32 *_retval); NS_IMETHOD GetOtherRandomHeaders(char **_retval); const char* GetOtherRandomHeaders() {return GetHeader(MSG_OTHERRANDOMHEADERS_HEADER_MASK);} - NS_IMETHOD SetNewspostUrl(char *value, PRInt32 *_retval); + NS_IMETHOD SetNewspostUrl(const char *value, PRInt32 *_retval); NS_IMETHOD GetNewspostUrl(char **_retval); const char* GetNewspostUrl() {return GetHeader(MSG_NEWSPOSTURL_HEADER_MASK);} - NS_IMETHOD SetDefaultBody(char *value, PRInt32 *_retval); + NS_IMETHOD SetDefaultBody(const char *value, PRInt32 *_retval); NS_IMETHOD GetDefaultBody(char **_retval); const char* GetDefaultBody() {return GetHeader(MSG_DEFAULTBODY_HEADER_MASK);} - NS_IMETHOD SetPriority(char *value, PRInt32 *_retval); + NS_IMETHOD SetPriority(const char *value, PRInt32 *_retval); NS_IMETHOD GetPriority(char **_retval); const char* GetPriority() {return GetHeader(nsMsgPriority_HEADER_MASK);} - NS_IMETHOD SetMessageEncoding(char *value, PRInt32 *_retval); + NS_IMETHOD SetMessageEncoding(const char *value, PRInt32 *_retval); NS_IMETHOD GetMessageEncoding(char **_retval); const char* GetMessageEncoding() {return GetHeader(MSG_MESSAGE_ENCODING_HEADER_MASK);} - NS_IMETHOD SetCharacterSet(char *value, PRInt32 *_retval); + NS_IMETHOD SetCharacterSet(const char *value, PRInt32 *_retval); NS_IMETHOD GetCharacterSet(char **_retval); const char* GetCharacterSet() {return GetHeader(MSG_CHARACTER_SET_HEADER_MASK);} - NS_IMETHOD SetMessageId(char *value, PRInt32 *_retval); + NS_IMETHOD SetMessageId(const char *value, PRInt32 *_retval); NS_IMETHOD GetMessageId(char **_retval); const char* GetMessageId() {return GetHeader(MSG_MESSAGE_ID_HEADER_MASK);} - NS_IMETHOD SetHTMLPart(char *value, PRInt32 *_retval); + NS_IMETHOD SetHTMLPart(const char *value, PRInt32 *_retval); NS_IMETHOD GetHTMLPart(char **_retval); const char* GetHTMLPart() {return GetHeader(MSG_HTML_PART_HEADER_MASK);} - NS_IMETHOD SetTemplateName(char *value, PRInt32 *_retval); + NS_IMETHOD SetTemplateName(const char *value, PRInt32 *_retval); NS_IMETHOD GetTemplateName(char **_retval); const char* GetTemplateName() {return GetHeader(MSG_X_TEMPLATE_HEADER_MASK);} @@ -155,7 +155,7 @@ public: NS_IMETHOD GetAttachVCard(PRBool *_retval); PRBool GetAttachVCard() {return GetBoolHeader(MSG_RETURN_RECEIPT_BOOL_HEADER_MASK);} - NS_IMETHOD SetBody(char *value, PRInt32 *_retval); + NS_IMETHOD SetBody(const char *value, PRInt32 *_retval); NS_IMETHOD GetBody(char **_retval); const char* GetBody();