1999-02-11 03:43:57 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
*
|
1999-11-06 06:43:54 +03:00
|
|
|
* The contents of this file are subject to the Netscape Public
|
|
|
|
* License Version 1.1 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.mozilla.org/NPL/
|
1999-02-11 03:43:57 +03:00
|
|
|
*
|
1999-11-06 06:43:54 +03:00
|
|
|
* Software distributed under the License is distributed on an "AS
|
|
|
|
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
|
|
* implied. See the License for the specific language governing
|
|
|
|
* rights and limitations under the License.
|
1999-02-11 03:43:57 +03:00
|
|
|
*
|
1999-11-06 06:43:54 +03:00
|
|
|
* The Original Code is mozilla.org code.
|
|
|
|
*
|
|
|
|
* The Initial Developer of the Original Code is Netscape
|
1999-02-11 03:43:57 +03:00
|
|
|
* Communications Corporation. Portions created by Netscape are
|
1999-11-06 06:43:54 +03:00
|
|
|
* Copyright (C) 1998 Netscape Communications Corporation. All
|
|
|
|
* Rights Reserved.
|
|
|
|
*
|
|
|
|
* Contributor(s):
|
1999-02-11 03:43:57 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
1999-12-02 01:34:45 +03:00
|
|
|
#include "nsIMsgRecipientArray.idl"
|
1999-02-11 03:43:57 +03:00
|
|
|
|
|
|
|
|
1999-06-11 02:03:28 +04:00
|
|
|
[scriptable, uuid(3E89CAE3-BD2D-11d2-8293-000000000000)]
|
1999-02-11 03:43:57 +03:00
|
|
|
interface nsIMsgCompFields : nsISupports {
|
|
|
|
|
|
|
|
void Copy(in nsIMsgCompFields pMsgCompFields);
|
|
|
|
|
1999-07-04 01:40:38 +04:00
|
|
|
void SetHeader(in long header, in wstring value);
|
|
|
|
wstring GetHeader(in long header);
|
1999-02-11 03:43:57 +03:00
|
|
|
|
1999-07-04 01:40:38 +04:00
|
|
|
void SetBoolHeader(in long header, in boolean bValue);
|
1999-02-11 03:43:57 +03:00
|
|
|
boolean GetBoolHeader(in long header);
|
|
|
|
|
|
|
|
/* Convenience routines to get and set header's value... */
|
1999-07-04 01:40:38 +04:00
|
|
|
void SetFrom(in wstring value);
|
|
|
|
wstring GetFrom();
|
1999-02-11 03:43:57 +03:00
|
|
|
|
1999-07-04 01:40:38 +04:00
|
|
|
void SetReplyTo(in wstring value);
|
|
|
|
wstring GetReplyTo();
|
1999-02-11 03:43:57 +03:00
|
|
|
|
1999-07-04 01:40:38 +04:00
|
|
|
void SetTo(in wstring value);
|
|
|
|
wstring GetTo();
|
1999-02-11 03:43:57 +03:00
|
|
|
|
1999-07-04 01:40:38 +04:00
|
|
|
void SetCc(in wstring value);
|
|
|
|
wstring GetCc();
|
1999-02-11 03:43:57 +03:00
|
|
|
|
1999-07-04 01:40:38 +04:00
|
|
|
void SetBcc(in wstring value);
|
|
|
|
wstring GetBcc();
|
1999-02-11 03:43:57 +03:00
|
|
|
|
1999-07-04 01:40:38 +04:00
|
|
|
void SetFcc(in wstring value);
|
|
|
|
wstring GetFcc();
|
1999-02-11 03:43:57 +03:00
|
|
|
|
2000-02-07 06:06:51 +03:00
|
|
|
void SetFcc2(in wstring value);
|
|
|
|
wstring GetFcc2();
|
|
|
|
|
1999-07-04 01:40:38 +04:00
|
|
|
void SetNewsFcc(in wstring value);
|
|
|
|
wstring GetNewsFcc();
|
1999-02-11 03:43:57 +03:00
|
|
|
|
1999-07-04 01:40:38 +04:00
|
|
|
void SetNewsBcc(in wstring value);
|
|
|
|
wstring GetNewsBcc();
|
1999-02-11 03:43:57 +03:00
|
|
|
|
1999-07-04 01:40:38 +04:00
|
|
|
void SetNewsgroups(in wstring value);
|
|
|
|
wstring GetNewsgroups();
|
1999-02-11 03:43:57 +03:00
|
|
|
|
2000-07-10 06:38:22 +04:00
|
|
|
void SetNewshost(in wstring value);
|
|
|
|
wstring GetNewshost();
|
|
|
|
|
1999-07-04 01:40:38 +04:00
|
|
|
void SetFollowupTo(in wstring value);
|
|
|
|
wstring GetFollowupTo();
|
1999-02-11 03:43:57 +03:00
|
|
|
|
1999-07-04 01:40:38 +04:00
|
|
|
void SetSubject(in wstring value);
|
|
|
|
wstring GetSubject();
|
1999-02-11 03:43:57 +03:00
|
|
|
|
1999-07-04 01:40:38 +04:00
|
|
|
void SetAttachments(in wstring value);
|
|
|
|
wstring GetAttachments();
|
1999-02-11 03:43:57 +03:00
|
|
|
|
1999-07-04 01:40:38 +04:00
|
|
|
void SetOrganization(in wstring value);
|
|
|
|
wstring GetOrganization();
|
1999-02-11 03:43:57 +03:00
|
|
|
|
1999-07-04 01:40:38 +04:00
|
|
|
void SetReferences(in wstring value);
|
|
|
|
wstring GetReferences();
|
1999-02-11 03:43:57 +03:00
|
|
|
|
1999-07-04 01:40:38 +04:00
|
|
|
void SetOtherRandomHeaders(in wstring value);
|
|
|
|
wstring GetOtherRandomHeaders();
|
1999-02-11 03:43:57 +03:00
|
|
|
|
1999-07-04 01:40:38 +04:00
|
|
|
void SetNewspostUrl(in wstring value);
|
|
|
|
wstring GetNewspostUrl();
|
1999-02-11 03:43:57 +03:00
|
|
|
|
1999-07-04 01:40:38 +04:00
|
|
|
void SetDefaultBody(in wstring value);
|
|
|
|
wstring GetDefaultBody();
|
1999-02-11 03:43:57 +03:00
|
|
|
|
1999-07-04 01:40:38 +04:00
|
|
|
void SetPriority(in wstring value);
|
|
|
|
wstring GetPriority();
|
1999-02-11 03:43:57 +03:00
|
|
|
|
1999-07-04 01:40:38 +04:00
|
|
|
void SetMessageEncoding(in wstring value);
|
|
|
|
wstring GetMessageEncoding();
|
1999-02-11 03:43:57 +03:00
|
|
|
|
1999-07-04 01:40:38 +04:00
|
|
|
void SetCharacterSet(in wstring value);
|
|
|
|
wstring GetCharacterSet();
|
1999-02-11 03:43:57 +03:00
|
|
|
|
1999-07-04 01:40:38 +04:00
|
|
|
void SetMessageId(in wstring value);
|
|
|
|
wstring GetMessageId();
|
1999-02-11 03:43:57 +03:00
|
|
|
|
1999-07-04 01:40:38 +04:00
|
|
|
void SetHTMLPart(in wstring value);
|
|
|
|
wstring GetHTMLPart();
|
1999-02-11 03:43:57 +03:00
|
|
|
|
1999-07-04 01:40:38 +04:00
|
|
|
void SetTemplateName(in wstring value);
|
|
|
|
wstring GetTemplateName();
|
1999-02-11 03:43:57 +03:00
|
|
|
|
Fixes related to message compose UI, save attachment, edit message as new and draft message. Those changes fix bug 14868, 23627, 24185, 24864, 24930, 26087, 26733, 27171, 27762, 27931, 27932, 29119, 29176, 30279, 31546 and 28677. R=alecf, rhp, jefft
2000-03-23 09:39:19 +03:00
|
|
|
void SetDraftId(in wstring value);
|
|
|
|
wstring GetDraftId();
|
|
|
|
|
1999-07-04 01:40:38 +04:00
|
|
|
void SetReturnReceipt(in boolean value);
|
1999-02-11 03:43:57 +03:00
|
|
|
boolean GetReturnReceipt();
|
|
|
|
|
1999-07-04 01:40:38 +04:00
|
|
|
void SetAttachVCard(in boolean value);
|
1999-02-11 03:43:57 +03:00
|
|
|
boolean GetAttachVCard();
|
1999-02-17 22:43:26 +03:00
|
|
|
|
1999-07-04 01:40:38 +04:00
|
|
|
void SetBody(in wstring value);
|
|
|
|
wstring GetBody();
|
1999-06-25 03:54:34 +04:00
|
|
|
|
1999-07-04 01:40:38 +04:00
|
|
|
void SetUUEncodeAttachments(in boolean value);
|
1999-06-25 03:54:34 +04:00
|
|
|
boolean GetUUEncodeAttachments();
|
|
|
|
|
1999-11-12 05:58:22 +03:00
|
|
|
void SetUseMultipartAlternativeFlag(in boolean value);
|
|
|
|
boolean GetUseMultipartAlternativeFlag();
|
|
|
|
|
1999-07-04 01:40:38 +04:00
|
|
|
void SetTheForcePlainText(in boolean value);
|
1999-06-25 03:54:34 +04:00
|
|
|
boolean GetTheForcePlainText();
|
1999-12-02 01:34:45 +03:00
|
|
|
|
2000-01-28 09:20:44 +03:00
|
|
|
/* some utility functions */
|
2000-02-15 09:48:13 +03:00
|
|
|
nsIMsgRecipientArray SplitRecipients(in wstring recipients, in boolean emailAddressOnly);
|
2000-01-28 09:20:44 +03:00
|
|
|
void ConvertBodyToPlainText();
|
1999-02-11 03:43:57 +03:00
|
|
|
};
|
|
|
|
|