pjs/mailnews/compose/public/nsIMsgCompFields.idl

134 строки
3.4 KiB
Plaintext

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* 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/
*
* 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.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "nsISupports.idl"
#include "nsIMsgRecipientArray.idl"
[scriptable, uuid(3E89CAE3-BD2D-11d2-8293-000000000000)]
interface nsIMsgCompFields : nsISupports {
void Copy(in nsIMsgCompFields pMsgCompFields);
void SetHeader(in long header, in wstring value);
wstring GetHeader(in long header);
void SetBoolHeader(in long header, in boolean bValue);
boolean GetBoolHeader(in long header);
/* Convenience routines to get and set header's value... */
void SetFrom(in wstring value);
wstring GetFrom();
void SetReplyTo(in wstring value);
wstring GetReplyTo();
void SetTo(in wstring value);
wstring GetTo();
void SetCc(in wstring value);
wstring GetCc();
void SetBcc(in wstring value);
wstring GetBcc();
void SetFcc(in wstring value);
wstring GetFcc();
void SetFcc2(in wstring value);
wstring GetFcc2();
void SetNewsFcc(in wstring value);
wstring GetNewsFcc();
void SetNewsBcc(in wstring value);
wstring GetNewsBcc();
void SetNewsgroups(in wstring value);
wstring GetNewsgroups();
void SetFollowupTo(in wstring value);
wstring GetFollowupTo();
void SetSubject(in wstring value);
wstring GetSubject();
void SetAttachments(in wstring value);
wstring GetAttachments();
void SetOrganization(in wstring value);
wstring GetOrganization();
void SetReferences(in wstring value);
wstring GetReferences();
void SetOtherRandomHeaders(in wstring value);
wstring GetOtherRandomHeaders();
void SetNewspostUrl(in wstring value);
wstring GetNewspostUrl();
void SetDefaultBody(in wstring value);
wstring GetDefaultBody();
void SetPriority(in wstring value);
wstring GetPriority();
void SetMessageEncoding(in wstring value);
wstring GetMessageEncoding();
void SetCharacterSet(in wstring value);
wstring GetCharacterSet();
void SetMessageId(in wstring value);
wstring GetMessageId();
void SetHTMLPart(in wstring value);
wstring GetHTMLPart();
void SetTemplateName(in wstring value);
wstring GetTemplateName();
void SetReturnReceipt(in boolean value);
boolean GetReturnReceipt();
void SetAttachVCard(in boolean value);
boolean GetAttachVCard();
void SetBody(in wstring value);
wstring GetBody();
void SetUUEncodeAttachments(in boolean value);
boolean GetUUEncodeAttachments();
void SetUseMultipartAlternativeFlag(in boolean value);
boolean GetUseMultipartAlternativeFlag();
void SetTheForcePlainText(in boolean value);
boolean GetTheForcePlainText();
/* some utility functions */
nsIMsgRecipientArray SplitRecipients(in wstring recipients, in boolean emailAddressOnly);
void ConvertBodyToPlainText();
};